/* ==========================================================================
   Fullwear — "Prototype Air"
   Shared stylesheet. Plain CSS, no build step.
   ========================================================================== */

/* Syne is loaded with a <link> in each page's <head>. */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --canvas: #FCFCFB;
  --ink: #161616;
  /* Derived tint of --ink, used where secondary copy must stay readable. */
  --ink-soft: #55554F;
  --muted: #A8A8A4;
  --faint: #B9B9B5;
  /* Darkened sibling of --faint, used wherever a caption carries real
     information and must clear WCAG AA against the canvas. */
  --label: #6E6E68;
  --line-soft: #F0F0ED;
  --line-hard: #E2E2DE;
  --accent: #E0A63C;
  --surface: #FFFFFF;

  --font-display: 'Syne', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1060px;
  --wrap-text: 720px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --canvas: #131312;
    --ink: #F4F4F1;
    --ink-soft: #B6B6AF;
    --muted: #91918B;
    --faint: #83837D;
    --label: #9E9E97;
    --line-soft: #232321;
    --line-hard: #33332F;
    --accent: #E8B45A;
    --surface: #1A1A18;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* One ink colour, so links are marked by a real underline rather than by hue. */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--label);
  transition: text-decoration-color 140ms ease, color 140ms ease;
}

a:hover { text-decoration-color: var(--ink); }

/* Links that sit in an obvious list or button context carry their own affordance. */
.wordmark,
.site-nav a,
.badge,
.skip-link,
.footer-grid a,
.notfound li a,
.toc a {
  text-decoration: none;
}

.footer-grid a:hover,
.toc a:hover,
.notfound li a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--line-hard);
  margin: 3rem 0;
}

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }
li:last-child { margin-bottom: 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--text { max-width: var(--wrap-text); }

main { display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 0.7rem 1rem;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 20;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* Signature detail: shouted monospace labels. */
.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--label);
  margin: 0 0 1rem;
}

.kicker--ink { color: var(--ink-soft); }

.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
}

.note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--label);
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line-hard);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 56ch;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* --------------------------------------------------------------------------
   Header / footer
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line-hard);
  background: var(--canvas);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.75rem;
  padding: 1.1rem var(--gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 0;
  margin-right: auto;
  white-space: nowrap;
}

.wordmark:hover { color: var(--ink); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li { margin: 0; }

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-soft);
  border: 0;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line-hard);
  margin-top: 4rem;
  padding: 3rem 0 4rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-grid h2 {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--label);
  margin-bottom: 0.9rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
}

.footer-grid li { margin-bottom: 0.5rem; }

.footer-mark {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.footer-legal {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--label);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

/* Longhand only: .hero also carries .wrap, whose horizontal gutter must survive. */
.hero {
  padding-top: 5rem;
  padding-bottom: 4.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 9vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.hero__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.35;
  margin: 1.75rem 0 1.5rem;
  max-width: 34ch;
}

.hero__body {
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}

/* App Store badge placeholder */
.badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
}

.badge:hover { border-color: var(--ink); background: var(--ink); }

/* Pre-launch: rendered as a <span>, not an <a>, so it reads as a statement
   rather than a link that does nothing. Outlined instead of filled, since a
   solid button invites a click it can't honour. */
.badge--pending {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-hard);
  cursor: default;
}

.badge__small {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.badge__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; }
}

.feature {
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 760px) {
  .feature { padding: 2.1rem 2.5rem 2.1rem 0; }
  .feature:nth-child(even) {
    padding-right: 0;
    padding-left: 2.5rem;
    border-left: 1px solid var(--line-soft);
  }
}

.feature__index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--label);
  display: block;
  margin-bottom: 0.85rem;
}

.feature h3 { margin-bottom: 0.55rem; }

.feature p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

.step:last-child { border-bottom: 1px solid var(--line-soft); }

.step__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--label);
  padding-top: 0.35rem;
}

.step h3 { margin-bottom: 0.35rem; }

.step p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Plans
   -------------------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.plan {
  border: 1px solid var(--line-hard);
  border-radius: 14px;
  padding: 1.9rem 1.6rem;
  background: var(--surface);
}

.plan--pro { border-color: var(--ink); }

.plan h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.plan__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.plan__price-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--label);
  margin-bottom: 1.4rem;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.plan li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}

.plan li::before {
  content: '—';
  color: var(--label);
  font-family: var(--font-mono);
  flex: none;
}

.plan__tail {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Privacy panel (home)
   -------------------------------------------------------------------------- */

.privacy-panel {
  border: 1px solid var(--line-hard);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  background: var(--surface);
}

.privacy-panel h2 { margin-bottom: 1rem; }

.privacy-panel p { color: var(--ink-soft); }

.fact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 760px) {
  .fact-list { grid-template-columns: 1fr 1fr; gap: 0.9rem 2rem; }
}

.fact-list li {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 1rem;
}

.fact-list strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   Text pages (privacy / terms / support / delete)
   -------------------------------------------------------------------------- */

.page-head {
  padding: 4rem 0 2.25rem;
  border-bottom: 1px solid var(--line-hard);
  margin-bottom: 2.75rem;
}

.page-head p {
  color: var(--ink-soft);
  margin-top: 1.1rem;
  max-width: 56ch;
}

.updated {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--label);
  margin-top: 1.5rem;
}

.prose h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-hard);
  font-size: 1.5rem;
}

/* The page-head already draws a rule above the first heading. */
.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.08rem;
}

.prose > p,
.prose > ul,
.prose > ol { max-width: 68ch; }

.prose ul { padding-left: 1.15em; }

.prose li { line-height: 1.6; }

.callout {
  border: 1px solid var(--line-hard);
  border-radius: 10px;
  background: var(--surface);
  padding: 1.4rem 1.5rem;
  margin: 1.75rem 0;
}

.callout--accent { border-left: 3px solid var(--accent); border-radius: 4px; }

.callout p:last-child { margin-bottom: 0; }

.toc {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
  font-size: 1rem;
}

.toc li { margin-bottom: 0.5rem; break-inside: avoid; }

@media (max-width: 520px) {
  .toc { columns: 1; }
}

.contact-block {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-hard);
}

.contact-block .kicker { margin-bottom: 0.5rem; }

.email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* Tables */

.table-scroll {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-top: 1px solid var(--line-hard);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 1rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1.25rem 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}

th {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--label);
  white-space: nowrap;
}

td:last-child, th:last-child { padding-right: 0; }

/* FAQ */

.faq {
  border-top: 1px solid var(--line-hard);
  margin-top: 1rem;
}

.faq-item {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.faq-item h3 { margin: 0 0 0.5rem; }

.faq-item p { color: var(--ink-soft); }

.faq-item p:last-child { margin-bottom: 0; }

/* Numbered instruction path */

.path {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  counter-reset: path;
}

.path li {
  counter-increment: path;
  position: relative;
  padding: 0.75rem 0 0.75rem 2.6rem;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}

.path li:first-child { border-top: 1px solid var(--line-soft); }

.path li::before {
  content: counter(path, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--label);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

/* Longhand only: .notfound also carries .wrap (see .hero). */
.notfound {
  padding-top: 6rem;
  padding-bottom: 5rem;
  text-align: left;
}

.notfound .code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--label);
  margin-bottom: 1.5rem;
}

.notfound h1 { max-width: 24ch; }

.notfound p {
  color: var(--ink-soft);
  margin-top: 1.25rem;
  max-width: 44ch;
}

.notfound ul {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  max-width: 24rem;
}

.notfound li {
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
}

.notfound li a {
  display: block;
  padding: 0.85rem 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
