/* Ownfits website. Same brand as the app: bordeaux, warm paper, Archivo with Instrument Serif italic accents.
   Layout: a calm editorial page; the phones are fanned like the swipe cards of the app icon and show the whole screen. */
@import url('./fonts.css');

:root {
  --bg: #F5F1EB;
  --paper: #ECE3D6;
  --surface: #FFFDF9;
  --ink: #1B1815;
  --ink-2: #463F38;
  --muted: #6F655B;
  --line: #DED6CB;
  --brand: #7A2235;
  --brand-deep: #4A0E1D;
  --blush: #F3E1E5;
  --f-ui: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --shadow: 0 1px 1px rgba(27, 24, 21, .05), 0 24px 48px -24px rgba(74, 14, 29, .45);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 241, 235, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: baseline; font-size: 26px; line-height: 1; color: var(--ink); text-decoration: none; }
.wordmark i { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.16em; margin-right: 1px; color: var(--brand); }
.wordmark b { font-weight: 800; font-stretch: 108%; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font: 700 16px/1 var(--f-ui); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: scale(.98); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 760px) { .nav { display: none; } .top .btn.small { margin-left: auto; } }

/* hero */
.hero { padding: 48px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow { font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--blush); }
.hero h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: .98; font-weight: 800; font-stretch: 112%; margin: 18px 0 20px; }
.hero h1 .serif { color: var(--brand); font-size: 1.06em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 22px 0 0; padding: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) var(--check) center / 12px no-repeat; }

.join { margin-top: 28px; max-width: 520px; }
.join form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.join input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font: 16px var(--f-ui); color: var(--ink); outline: none; }
.join input[type="email"]::placeholder { color: var(--muted); }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join .fine { margin-top: 10px; font-size: 13.5px; color: var(--muted); padding-left: 18px; }
.join .msg { margin-top: 10px; font-size: 15px; font-weight: 600; padding-left: 18px; min-height: 1.2em; }
.join .msg.ok { color: #2D6A4F; }
.join .msg.err { color: #B3261E; }
.join.done form, .join.done .fine { display: none; }
@media (max-width: 480px) { .join form { flex-direction: column; border-radius: 24px; padding: 8px; } .join input[type="email"] { min-height: 48px; } }

/* phones: the whole screen, never cropped. Width comes from --w; the height follows from the screenshot. */
.phone { --w: 280px; position: relative; width: var(--w); padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .17);
  background: linear-gradient(150deg, #403b42 0%, #1a171c 34%, #0e0c10 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 0 3px #0b0a0c, 0 2px 4px rgba(27, 24, 21, .18), 0 44px 80px -34px rgba(74, 14, 29, .6); }
.phone::before { content: ''; position: absolute; right: -2px; top: 27%; width: 3px; height: 11%; border-radius: 0 3px 3px 0; background: #2b282d; }
.phone::after { content: ''; position: absolute; left: -2px; top: 21%; width: 3px; height: 6.5%; border-radius: 3px 0 0 3px; background: #2b282d; box-shadow: 0 calc(var(--w) * .2) 0 #2b282d; }
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * .14); background: var(--bg); }

.phones { position: relative; height: 650px; }
.phones .phone { position: absolute; }
.phones .back { --w: 256px; left: 3%; top: 62px; transform: rotate(-7deg); }
.phones .front { --w: 276px; right: 3%; top: 0; transform: rotate(5deg); z-index: 1; }
.phones .spark { position: absolute; right: 0; top: -8px; width: 44px; height: 44px; color: var(--brand); z-index: 2; }
.float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 32px -16px rgba(74, 14, 29, .5); }
.float i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--blush); }
.float.f1 { left: 0; bottom: 36px; }
.float.f2 { left: 0; top: 4px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 570px; max-width: 480px; width: 100%; margin: 8px auto 0; }
  .phones .back { --w: 222px; top: 48px; }
  .phones .front { --w: 240px; }
}
@media (max-width: 420px) {
  .phones { height: 476px; }
  .phones .back { --w: 186px; left: 0; top: 40px; }
  .phones .front { --w: 200px; right: 0; }
  .float { font-size: 12.5px; padding: 8px 12px; gap: 7px; }
  .float.f1 { bottom: 18px; }
  .float.f2 { display: none; }
}

/* sections */
.section { padding: 88px 0; }
.section.paper { background: var(--paper); }
.kicker { font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.section h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; font-weight: 800; font-stretch: 110%; margin: 14px 0 18px; max-width: 18ch; }
.section h2 .serif { color: var(--brand); }
.section .intro { font-size: 18px; color: var(--ink-2); max-width: 38em; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.pillar { background: var(--surface); border-radius: 24px; padding: 26px 24px 28px; box-shadow: inset 0 0 0 1px var(--line); }
.pillar .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--blush); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .ic svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 21px; font-weight: 800; font-stretch: 106%; margin-bottom: 8px; }
.pillar p { color: var(--ink-2); font-size: 16px; }
.pillar .free { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--brand); color: #fff; font: 500 11px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 3px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .shot { display: flex; justify-content: center; }
.split .shot .phone { --w: 280px; transform: rotate(-3deg); }
.split.flip .shot .phone { transform: rotate(3deg); }
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); }
.points li::before { content: ''; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--brand) var(--check) center / 14px no-repeat; }
.points b { color: var(--ink); }
.quote { margin-top: 28px; padding: 18px 20px; border-radius: 18px; background: var(--brand); color: #fff; font-weight: 700; font-size: 18px; max-width: 26em; }
.quote small { display: block; font-weight: 500; font-size: 14px; opacity: .8; margin-top: 2px; }
.quote.soft { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip > :first-child { order: 0; } .split .shot .phone { --w: 250px; } }

/* price promise */
.band { background: var(--brand); color: #fff; }
.band .kicker { color: rgba(255, 255, 255, .72); }
.band h2 { color: #fff; max-width: 20ch; }
.band h2 .serif { color: #F6D9DF; }
.band .intro { color: rgba(255, 255, 255, .9); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.facts div { border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 16px; }
.facts b { display: block; font-size: clamp(38px, 5vw, 56px); font-weight: 800; font-stretch: 112%; line-height: 1; }
.facts span { display: block; margin-top: 8px; font-size: 15.5px; color: rgba(255, 255, 255, .86); }
.band .small { margin-top: 30px; font-size: 15.5px; color: rgba(255, 255, 255, .84); max-width: 46em; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

.tryon { position: relative; max-width: 360px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.tryon img { width: 100%; }
.tryon .tag { position: absolute; left: 14px; top: 14px; background: rgba(27, 24, 21, .72); color: #fff; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }

.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.promise div { border-top: 2px solid var(--ink); padding-top: 16px; }
.promise h3 { font-size: 20px; font-weight: 800; font-stretch: 106%; margin-bottom: 6px; }
.promise p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }

.cta { text-align: center; }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta .intro { margin: 0 auto; }
.cta .join { margin: 28px auto 0; text-align: left; }

.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 24px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* footer */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot .wrap { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--brand); }
.foot p { max-width: 60em; }

/* legal and help pages */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; font-weight: 800; font-stretch: 110%; margin: 14px 0 12px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc h2 { font-size: 24px; font-weight: 800; font-stretch: 106%; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; font-weight: 800; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.doc .tbl { overflow-x: auto; margin: 14px 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
.doc thead th { border-top: 0; font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc .contact { margin-top: 16px; padding: 20px 22px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
