/* Support and privacy pages. Same tokens, type and nav as the landing page
   (index.html keeps its own inline copy); long-form reading layout on top. */
:root{
  --ink:#171628;
  --dusk:#201d31;
  --shadow:#2a2338;
  --haze:#594760;
  --ridge:#77586e;
  --water:#c48593;
  --sky:#30B0C7;
  --glow:#7FD3DF;
  --lantern:#fae9bb;
  --paper:#f3e3e2;

  --display:"Bricolage Grotesque",system-ui,sans-serif;
  --body:"Instrument Sans",system-ui,sans-serif;
  --mono:"DM Mono",ui-monospace,monospace;

  --gutter:clamp(20px,5vw,64px);
  --maxw:1180px;
  --measure:68ch;
  --rule:rgba(119,88,110,.3);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--ink);color:var(--paper);
  font-family:var(--body);font-size:17px;line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--glow);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:var(--paper)}
:focus-visible{outline:2px solid var(--glow);outline-offset:3px;border-radius:4px}
.wrap{max-width:var(--maxw);margin:0 auto;padding-inline:var(--gutter)}
.skip{position:absolute;left:-9999px}
.skip:focus{left:var(--gutter);top:12px;z-index:60;background:var(--lantern);color:var(--ink);padding:8px 14px;border-radius:8px}

/* ── The menu: the home page's own, so the site has one. index.html keeps its copy of these
   styles inline; change both together. Here the bar is always solid. The line under a link slides
   in on hover and stays under the page you are on. ── */
.nav{position:sticky;top:0;z-index:50;background:rgba(23,22,40,.82);backdrop-filter:blur(14px) saturate(1.2);border-bottom:1px solid rgba(119,88,110,.4)}
.nav-in{max-width:var(--maxw);margin:0 auto;padding:16px var(--gutter);display:flex;align-items:center;gap:28px}
.brand{
  font-family:var(--display);font-weight:800;font-size:20px;letter-spacing:-.04em;color:var(--paper);
  text-decoration:none;display:flex;align-items:center;gap:10px;margin-right:auto;white-space:nowrap;padding-block:7px;
}
.brand:hover{color:var(--paper)}
/* The app icon beside the name, in the header and footer. iOS-style corners; the file itself is
   square. The name is one color, as in the official lockup. */
.brand-icon{width:30px;height:30px;border-radius:22.4%;flex:none;display:block}
.nav-links{display:flex;gap:26px;align-items:center}
.nav-links a{text-decoration:none;font-size:15px;font-weight:500;color:var(--paper);opacity:.82;padding:11px 0;position:relative;transition:opacity .2s}
.nav-links a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.5px;background:var(--sky);transform:scaleX(0);transform-origin:left;transition:transform .28s ease}
.nav-links a:hover,.nav-links a[aria-current="page"]{opacity:1}
.nav-links a:hover::after,.nav-links a[aria-current="page"]::after{transform:scaleX(1)}
/* Apple's "Download on the App Store" badge, Apple's own file (img/app-store-badge.svg), never
   redrawn or recolored. Apple asks for at least 40 pixels tall on screen; -lg is the larger one in
   a page. The link lifts on hover, the badge itself stays as Apple made it. */
.btn-badge{display:inline-block;flex:none;line-height:0;border-radius:8px;transition:transform .2s ease}
.btn-badge:hover{transform:translateY(-2px)}
.btn-badge img{display:block;height:40px;width:auto}
.btn-badge.-lg img{height:52px}
/* Between a phone and a laptop the five links and the badge only fit on one row with less air.
   Below 680 the menu wraps to two rows instead. */
@media (max-width:860px){
  .nav-in{column-gap:16px}
  .nav-links{gap:16px}
  .nav-links a{font-size:14.5px;white-space:nowrap}
}
/* The QR code beside the badge, for someone on a computer: it opens ferrygood.app/get, which sends
   an iPhone to the App Store (vercel.json). Shown only with a mouse or trackpad on a wide screen,
   since a phone can't scan its own screen. White around the code, so every scanner reads it. */
.qr{display:none}
@media (hover:hover) and (pointer:fine) and (min-width:681px){
  .qr{display:flex;align-items:center;gap:14px}
}
.qr img{display:block;width:88px;height:88px;flex:none;border-radius:10px;background:#fff;padding:4px}
.qr p{font-size:14px;line-height:1.45;color:rgba(243,227,226,.76);max-width:19ch;margin:0}

/* ── Page head ───────────────────────────────────────────── */
.doc-head{padding-block:clamp(56px,9vh,96px) clamp(28px,4vh,40px);border-bottom:1px solid var(--rule)}
.eyebrow{font-family:var(--mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--water);margin:0 0 16px}
.doc-head h1{font-family:var(--display);font-weight:800;font-size:clamp(40px,6vw,68px);letter-spacing:-.04em;line-height:1.02;margin:0 0 18px}
.lede{font-size:clamp(18px,2vw,21px);line-height:1.55;max-width:44ch;margin:0;color:rgba(243,227,226,.86)}
.meta{font-family:var(--mono);font-size:12.5px;color:var(--ridge);margin:22px 0 0}

/* ── Body: optional sticky contents on the left, prose on the right ── */
.doc{display:grid;grid-template-columns:220px minmax(0,1fr);gap:clamp(32px,6vw,88px);padding-block:clamp(40px,6vh,64px) clamp(64px,10vh,110px)}
.toc{position:sticky;top:92px;align-self:start;font-size:14px}
.toc p{font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--ridge);margin:0 0 12px}
.toc ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--rule)}
.toc a{display:block;padding:5px 0 5px 14px;color:rgba(243,227,226,.7);text-decoration:none;line-height:1.35}
.toc a:hover{color:var(--paper)}

.prose{max-width:var(--measure);min-width:0}
.prose>*+*{margin-top:1em}
.prose h2{
  font-family:var(--display);font-weight:700;font-size:clamp(24px,2.6vw,30px);letter-spacing:-.03em;line-height:1.15;
  margin:2.2em 0 .6em;scroll-margin-top:92px;
}
.prose h2:first-child{margin-top:0}
.prose h3{font-family:var(--display);font-weight:700;font-size:19px;letter-spacing:-.02em;line-height:1.3;margin:1.8em 0 .4em}
.prose p,.prose li{color:rgba(243,227,226,.84)}
.prose strong{color:var(--paper);font-weight:600}
.prose ul{padding-left:1.2em}
.prose li+li{margin-top:.45em}
.prose li::marker{color:var(--ridge)}
.prose code{font-family:var(--mono);font-size:.88em;background:rgba(255,255,255,.06);padding:.1em .35em;border-radius:4px}
/* A Settings path stays on one line where the column is wide enough to hold the longest one. On
   narrower screens it must wrap, or it pushes the whole page sideways; each arrow is tied to the step
   after it (a no-break space in the markup), so a wrapped line starts "→ Step". */
.path{font-family:var(--mono);font-size:.86em;color:var(--paper);white-space:nowrap}

/* Summary card at the top of the privacy policy */
.card{border:1px solid var(--rule);border-radius:14px;background:linear-gradient(180deg,var(--shadow),var(--dusk));padding:22px 24px}
.card h2{margin-top:0 !important;font-size:20px}
.card ul{margin:10px 0 0}

/* Data table */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-size:15px;min-width:520px}
th,td{text-align:left;vertical-align:top;padding:12px 14px 12px 0;border-bottom:1px solid var(--rule)}
th{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ridge)}
td{color:rgba(243,227,226,.84)}
td:first-child{color:var(--paper);font-weight:500}

/* FAQ */
.faq details{border-bottom:1px solid var(--rule)}
.faq details:first-of-type{border-top:1px solid var(--rule)}
.faq summary{
  list-style:none;cursor:pointer;padding:18px 36px 18px 0;position:relative;
  font-family:var(--display);font-weight:700;font-size:19px;letter-spacing:-.02em;line-height:1.3;color:var(--paper);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";position:absolute;right:6px;top:50%;width:10px;height:10px;margin-top:-7px;
  border-right:1.5px solid var(--sky);border-bottom:1.5px solid var(--sky);transform:rotate(45deg);transition:transform .2s ease;
}
.faq details[open] summary::after{transform:rotate(225deg);margin-top:-2px}
.faq .answer{padding:0 0 20px}
.faq .answer>*+*{margin-top:.8em}

/* Contact block */
.contact{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;border:1px solid var(--rule);border-radius:14px;padding:22px 24px;background:linear-gradient(180deg,var(--shadow),var(--dusk));scroll-margin-top:92px}
.contact h2{margin:0 !important;font-size:22px;flex-basis:100%}
.contact p{margin:0 !important}
.btn{
  display:inline-flex;align-items:center;gap:8px;text-decoration:none;background:var(--lantern);color:var(--ink);
  padding:11px 20px;border-radius:999px;font-weight:600;font-size:15px;white-space:nowrap;
}
.btn:hover{color:var(--ink);box-shadow:0 10px 30px -8px rgba(250,233,187,.5)}

/* Support form, inside the contact block. Two columns, one on a phone. The controls are 16px so
   iOS doesn't zoom the page when one takes focus. */
.support-form{flex-basis:100%;display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;color-scheme:dark}
.support-form[hidden],.hint:empty,.form-note:empty,.check:empty{display:none}
.field{display:grid;gap:6px;align-content:start;min-width:0}
.field.-wide,.check,.send{grid-column:1/-1}
.field label{font-size:14px;font-weight:600;color:var(--paper)}
.field .opt{font-weight:400;color:rgba(243,227,226,.55)}
.field input,.field select,.field textarea{
  width:100%;font:inherit;font-size:16px;line-height:1.4;color:var(--paper);
  background:rgba(23,22,40,.55);border:1px solid var(--rule);border-radius:10px;padding:11px 12px;
}
.field textarea{min-height:150px;resize:vertical;line-height:1.55}
.field input[type="file"]{padding:8px;font-size:15px}
.field input::file-selector-button{
  font:inherit;font-size:14px;font-weight:600;color:var(--paper);background:rgba(255,255,255,.08);
  border:1px solid var(--rule);border-radius:999px;padding:6px 14px;margin-right:12px;cursor:pointer;
}
.field input::placeholder{color:rgba(243,227,226,.4)}
.field :focus-visible{outline-offset:1px;border-radius:10px}
.contact .hint{font-size:13.5px;line-height:1.45;color:rgba(243,227,226,.62)}
.trap{position:absolute;left:-9999px}
.send{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.send .btn{border:0;cursor:pointer;font-family:inherit}
.send .btn:disabled{opacity:.55;cursor:default;box-shadow:none}
.send a{font-size:13.5px}
.contact .form-note{flex-basis:100%;color:var(--lantern)}
.contact-alt{flex-basis:100%;font-size:15px}

/* ── Footer ──────────────────────────────────────────────── */
.foot{
  border-top:1px solid var(--rule);padding-top:30px;padding-bottom:40px;
  display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;font-size:13.5px;color:var(--ridge);
}
.foot .brand{font-size:16px;color:var(--paper)}
.foot .brand-icon{width:24px;height:24px}
.foot a{text-decoration:none;color:inherit;padding:11px 0}
.foot a:hover{color:var(--paper)}

@media (max-width:900px){
  .path{white-space:normal}
  .doc{grid-template-columns:minmax(0,1fr)}
  .toc{position:static;border:1px solid var(--rule);border-radius:12px;padding:16px 18px}
  .toc ol{columns:2;column-gap:24px}
}
@media (max-width:680px){
  .nav-in{flex-wrap:wrap;row-gap:0;padding-bottom:0}
  /* Five links fit one row down to 360 wide. Narrower than that a whole link moves to a second
     row; a link's own words never break. */
  .nav-links{order:3;flex-basis:100%;gap:0 clamp(12px,4.6vw,22px);flex-wrap:wrap;border-top:1px solid rgba(119,88,110,.28);margin-top:8px}
  .toc ol{columns:1}
  .support-form{grid-template-columns:minmax(0,1fr)}
  body{font-size:16.5px}
  /* The menu is two rows here (121px at 390 wide), so a jump to a heading or the form clears both. */
  .prose h2,.contact{scroll-margin-top:136px}
}
@media print{
  body{background:#fff;color:#111}
  .nav,.toc,.foot,.skip{display:none}
  .doc{display:block}
  .prose p,.prose li,td{color:#222}
  a{color:#111}
  .card,.contact{background:none}
}
