/* ShareMan — a simple page in the spirit of late-2000s Mac software sites:
   white sheet on soft grey, quiet typography, one glossy button, a reflection. */

:root {
  --text: #333;
  --muted: #777;
  --faint: #999;
  --rule: #e2e2e2;
  --blue: #0b6fd8;
  --blue-dark: #0a58b0;
  --sheet: #fff;
  --font: "Lucida Grande", "Lucida Sans Unicode", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: Menlo, Monaco, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

/* Bilingual: elements tagged lang="fr" / lang="en" show only in their language. */
html[lang="fr"] [lang="en"],
html[lang="en"] [lang="fr"] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 24px 16px 0;
  font: 14px/1.6 var(--font);
  color: var(--text);
  background: #dcdcdc linear-gradient(#f5f5f5, #dcdcdc 900px) no-repeat;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font: 0.92em var(--mono);
  color: #444;
  background: #f2f2f2;
  border: 1px solid #e4e4e4;
  border-radius: 3px;
  padding: 0 4px;
}

/* The white sheet */

.sheet {
  max-width: 980px;
  margin: 0 auto;
  background: var(--sheet);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 6px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px 36px;
  border-bottom: 1px solid var(--rule);
}

.brand img { display: block; height: 40px; width: auto; }

.topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 13px; }
.topbar nav a { color: #555; }
.topbar nav a:hover { color: var(--blue); text-decoration: none; }

.lang-switch {
  display: inline-flex;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 1px 0 #fff;
  font-size: 11px;
}
.topbar nav .lang-switch a {
  padding: 1px 8px;
  color: #666;
  background: linear-gradient(#fdfdfd, #e6e6e6);
}
.topbar nav .lang-switch a + a { border-left: 1px solid #c4c4c4; }
.topbar nav .lang-switch a.current {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
  background: linear-gradient(#8f9aa8, #6b7685);
}

/* Hero */

.hero {
  text-align: center;
  padding: 56px 24px 52px;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, #fff 40%, #f1f4f8 100%);
}

.icon-stage {
  position: relative;
  width: 200px;
  height: 270px;
  margin: 0 auto 8px;
}

.icon { display: block; width: 200px; height: 200px; }

.reflection {
  transform: scaleY(-1);
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 34%);
          mask-image: linear-gradient(to top, #000 0%, transparent 34%);
  margin-top: 2px;
}

h1, h2 {
  font-family: var(--display);
  color: #222;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 16px;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 300;
}

.lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.55;
  color: #555;
}

.actions {
  margin: 30px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
}

/* The one glossy button */

.button {
  display: inline-block;
  padding: 9px 26px 10px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
  border: 1px solid #0a5bb5;
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 51%, rgba(255, 255, 255, 0.12)),
    linear-gradient(#3d95ef, #0b6fd8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.25);
}
.button:hover { text-decoration: none; filter: brightness(1.06); }
.button:active { filter: brightness(0.94); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); }

.more { font-size: 15px; }

.requirements { margin: 20px 0 0; font-size: 12px; color: var(--faint); }

/* Three features */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 44px 48px 48px;
  border-top: 1px solid var(--rule);
  background: linear-gradient(#fafafa, #fff 60px);
}

.features article { text-align: center; }

.features svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #8a96a6;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h2 { margin: 10px 0 6px; font-size: 21px; font-weight: 400; }
.features p { margin: 0 auto; max-width: 260px; color: var(--muted); }

/* The app, shown first */

.showcase {
  text-align: center;
  padding: 52px 40px 60px;
  border-top: 1px solid var(--rule);
  background: linear-gradient(#fafafa, #fff 80px);
}
.showcase h2, .install h2 { margin: 0 0 10px; font-size: 32px; font-weight: 300; line-height: 1.2; }
.showcase .sub { margin: 0 auto 36px; max-width: 560px; color: var(--muted); font-size: 15px; }

/* The window is drawn at a fixed size; site.js scales it down on narrow screens. */
.app-frame { position: relative; text-align: left; }
.app-window {
  width: 860px;
  margin: 0 auto;
  transform-origin: top left;
  font: 12px/1.35 -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #262626;
  background: #fff;
  border: 1px solid #a8a8a8;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.18);
}
@media (max-width: 940px) { .app-window { margin: 0; } }

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  background: linear-gradient(#f2f2f2, #dcdcdc);
  border-bottom: 1px solid #b4b4b4;
}
.dots i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border-radius: 50%;
  background: linear-gradient(#d9d9d9, #ababab);
  border: 1px solid #959595;
}
.tb-spacer { flex: 1; }
.segmented, .tb-button, .tb-field {
  height: 24px;
  line-height: 22px;
  border: 1px solid #b0b0b0;
  border-radius: 5px;
  font-size: 11.5px;
}
.segmented { display: inline-flex; overflow: hidden; background: linear-gradient(#fff, #ececec); }
.segmented b { font-weight: 400; padding: 0 10px; }
.segmented b + b { border-left: 1px solid #c4c4c4; }
.segmented b.on { color: #fff; background: linear-gradient(#5a9df2, #2c74dc); }
.tb-button { padding: 0 10px; background: linear-gradient(#fff, #ececec); white-space: nowrap; }
.tb-field { padding: 0 8px; width: 150px; color: #9a9a9a; background: #fff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08); }

.app-body { display: flex; height: 400px; }

.app-sidebar {
  display: flex;
  flex-direction: column;
  width: 290px;
  padding: 10px 8px 0;
  background: #e9ecf0;
  border-right: 1px solid #c9ccd1;
}
.sb-section { margin: 6px 8px 4px; font-size: 11px; font-weight: 600; color: #8a8f97; }
.sb-section + .sb-row { margin-top: 2px; }
.sb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
}
.sb-row.selected { background: #d3d8df; }
.sb-row svg, .d-row svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #8a8f97; stroke-width: 1.3; }
svg.green { stroke: #2fa24a; }
svg.filled { fill: #2fa24a; }
.sb-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-name small, .d-path small { display: block; font-size: 10.5px; color: #8a8f97; }
.d-path small.green { color: #2fa24a; }
.sb-icons { color: #6f7680; }
.sb-bottom { margin-top: auto; padding: 8px 2px 10px; border-top: 1px solid #d0d3d8; }
.sb-add { display: flex; gap: 6px; }
.sb-add .tb-field { flex: 1; }
.sb-status { display: block; margin-top: 8px; font-size: 10.5px; color: #8a8f97; }

.badge {
  flex: none;
  font: 600 9.5px/1 -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  padding: 2px 5px;
  border-radius: 8px;
  margin-left: 3px;
}
.badge.nfs { color: #1f6fd8; background: rgba(31, 111, 216, 0.15); }
.badge.smb { color: #d27a00; background: rgba(240, 140, 0, 0.17); }

.app-detail { flex: 1; padding: 20px 22px; overflow: hidden; }
.d-title { font-size: 19px; font-weight: 600; }
.d-meta { margin: 3px 0 16px; color: #8a8f97; }
.d-meta small { font-size: 10.5px; }
.d-group { margin-bottom: 14px; }
.d-label { margin: 0 0 6px; font-weight: 600; font-size: 12.5px; }
.d-label .badge { margin: 0 4px 0 0; }
.d-box { padding: 2px 10px; background: #f4f5f7; border: 1px solid #e1e3e6; border-radius: 7px; }
.d-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; }
.d-row + .d-row { border-top: 1px solid #e1e3e6; }
.d-path { flex: 1; }
.btn {
  padding: 2px 10px;
  font-size: 11.5px;
  border: 1px solid #b8b8b8;
  border-radius: 5px;
  background: linear-gradient(#fff, #f0f0f0);
}
.btn.primary { color: #fff; border-color: #2565c9; background: linear-gradient(#5a9df2, #2c74dc); }

/* Three features */

.features { border-top: 0; background: #fff; padding-top: 8px; }

/* Command line, as an aside */

.cli-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 48px 44px;
  padding: 14px 20px;
  background: #f6f7f9;
  border: 1px solid #e3e5e8;
  border-radius: 8px;
  color: #555;
}
.cli-aside svg {
  width: 30px; height: 30px; flex: none;
  fill: none; stroke: #8a96a6; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.cli-aside p { margin: 0; }

/* Installation */

.install {
  padding: 48px 48px 52px;
  border-top: 1px solid var(--rule);
  background: linear-gradient(#fafafa, #fff 60px);
}

.install ol {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.install li { counter-increment: step; position: relative; padding-left: 40px; }
.install li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font: bold 13px/26px var(--font);
  text-align: center;
  color: #fff;
  background: linear-gradient(#9aa5b4, #6e7a8a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.install h3 { margin: 2px 0 6px; font-size: 14px; color: #222; }
.install li p { margin: 0; color: var(--muted); font-size: 13px; }

.cli-note { margin: 30px 0 0; font-size: 13px; color: var(--muted); }

/* Guide */

.guide { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.guide-nav {
  padding: 32px 20px;
  background: #f6f7f9;
  border-right: 1px solid var(--rule);
  font-size: 13px;
}
.guide-nav b { display: block; margin: 0 0 8px; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.guide-nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 20px; }
.guide-nav li { margin: 0 0 6px; }
.guide-nav a { color: #555; }
.guide-body { padding: 36px 48px 48px; }
.guide-body h1 { font-size: 34px; margin-bottom: 8px; }
.guide-body > p.sub { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.guide-body section { padding-top: 26px; }
.guide-body h2 { margin: 0 0 10px; font-size: 24px; font-weight: 300; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.guide-body h3 { margin: 22px 0 6px; font-size: 14px; color: #222; }
.guide-body p, .guide-body li { color: #444; }
.guide-body ul { padding-left: 20px; }

.guide-body pre {
  margin: 10px 0 14px;
  padding: 12px 14px;
  font: 12px/1.65 var(--mono);
  color: #e8e8e8;
  background: #1f2329;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  overflow-x: auto;
}
.guide-body pre .c { color: #8b939e; }

.guide-body table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 13px; }
.guide-body th, .guide-body td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid #ececec; }
.guide-body th { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; background: #fafafa; }
.guide-body td:first-child { white-space: nowrap; }

/* Footer */

footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 8px 32px;
  font-size: 11px;
  color: #888;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
footer p { margin: 0 0 4px; }
footer a { color: #666; }
footer .legal { color: #a0a0a0; }

/* Narrow screens */

@media (max-width: 760px) {
  body { padding-top: 0; }
  .sheet { border-radius: 0 0 8px 8px; margin: 0 -16px; }
  .topbar { padding: 14px 16px; justify-content: center; }
  .topbar nav { justify-content: center; gap: 4px 18px; }
  .hero { padding: 40px 16px 44px; }
  h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  br.wide { display: none; }
  .showcase { padding: 40px 16px 44px; }
  .features, .install, .guide-body { padding-left: 16px; padding-right: 16px; }
  .features, .install ol { grid-template-columns: minmax(0, 1fr); }
  .cli-aside { margin: 0 16px 36px; align-items: flex-start; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide-nav { border-right: 0; border-bottom: 1px solid var(--rule); padding: 16px; }
  .guide-nav ul { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .guide-body td:first-child { white-space: normal; }
  footer { text-align: center; }
}

.nw { white-space: nowrap; }
