/* Intimacy — ourintimacy.app
   Light, airy luxury. One stylesheet, no build step. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Chillax";
  src: url("/fonts/chillax-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Chillax";
  src: url("/fonts/chillax-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Chillax";
  src: url("/fonts/chillax-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Chillax";
  src: url("/fonts/chillax-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2-variations"), url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #FDFCFA;
  --card: #F5F1EA;
  --line: #E6DFD3;
  --ink: #161412;
  --muted: #6F6A63;
  --gold: #A8843F;          /* decorative: rules, icons */
  --gold-text: #876629;     /* gold for small text (AA on paper and cards) */
  --gold-pale: #E7D7B1;
  --on-gold: #1E1810;
  --metal: linear-gradient(135deg, #8C6A2F 0%, #C9A96E 30%, #F0DFAE 50%, #C9A96E 70%, #8C6A2F 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: 16px;
  --max: 1120px;
  --prose: 70ch;
  --font-display: "Chillax", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(22, 20, 18, .04), 0 12px 32px -12px rgba(140, 106, 47, .18);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 9vw, 4.75rem); letter-spacing: -.02em; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 5.2vw, 2.75rem); }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
h4 { font-weight: 600; font-size: 1.0625rem; }
p { margin: 0 0 1em; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-pale); color: var(--on-gold); }
hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--paper); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 24px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: .75em; transform: translateY(-2px);
}
.center .eyebrow::after {
  content: ""; display: inline-block; width: 24px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-left: .75em; transform: translateY(-2px);
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 40rem; }
@media (min-width: 768px) { .lead { font-size: 1.25rem; } }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.gold-text {
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; border-bottom: 1px solid transparent; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: .01em; }
.wordmark:hover { color: var(--ink); }
.wordmark svg { width: 34px; height: 22px; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { display: inline-block; padding: .35rem 0; color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); }
@media (max-width: 559px) {
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: .25rem .75rem; }
}

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-gold { background: var(--metal); background-size: 160% 160%; background-position: 50% 50%; color: var(--on-gold); box-shadow: 0 8px 24px -10px rgba(140, 106, 47, .55), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold:hover { color: var(--on-gold); transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(140, 106, 47, .65), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); background: var(--card); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.center .actions { justify-content: center; }
@media (max-width: 479px) { .actions .btn { width: 100%; } }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--gold-pale);
  background: rgba(231, 215, 177, .25); color: var(--on-gold); font-size: .8125rem; font-weight: 500;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--metal); box-shadow: 0 0 0 3px rgba(201, 169, 110, .25); }

/* ---------- Glows ---------- */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -10% -20% auto -20%; height: 120%;
  background:
    radial-gradient(40% 45% at 70% 30%, rgba(240, 223, 174, .55), transparent 70%),
    radial-gradient(35% 40% at 20% 60%, rgba(231, 215, 177, .35), transparent 70%);
}
.page-wrap { overflow: hidden; } /* keeps glows from causing horizontal scroll */

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { max-width: 22ch; }
.center.section-head h2 { margin-left: auto; margin-right: auto; }
.rule { border-top: 1px solid var(--line); }

/* Hero */
.hero { padding: 3rem 0 4rem; }
@media (min-width: 768px) { .hero { padding: 5rem 0 6rem; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.hero h1 { margin-bottom: 1.25rem; }
.hero .pill { margin-bottom: 1.5rem; }
.hero-note { margin-top: 1.25rem; font-size: .875rem; color: var(--muted); }

/* Hero visual: an abstract vault, no photos of people */
.vault {
  position: relative; max-width: 420px; margin: 0 auto; width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 18px;
  box-shadow: var(--shadow);
}
.vault-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 14px; }
.vault-top span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.vault-top small { color: var(--muted); font-size: .75rem; display: inline-flex; align-items: center; gap: .35rem; }
.vault-top small svg { width: 14px; height: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card); }
.tile::before { content: ""; position: absolute; inset: -10%; }
.t1::before { background: radial-gradient(60% 60% at 30% 30%, #F0DFAE, transparent), linear-gradient(160deg, #E7D7B1, #C9A96E); }
.t2::before { background: radial-gradient(50% 60% at 70% 40%, #F5F1EA, transparent), linear-gradient(200deg, #D8C6A0, #A8843F); }
.t3::before { background: radial-gradient(70% 50% at 50% 80%, #F0DFAE, transparent), linear-gradient(120deg, #EFE6D6, #CDB78A); }
.t4::before { background: radial-gradient(60% 60% at 60% 30%, #FFF8E8, transparent), linear-gradient(30deg, #B89558, #E7D7B1); }
.t5::before { background: radial-gradient(50% 50% at 40% 60%, #EADBB8, transparent), linear-gradient(90deg, #C9A96E, #8C6A2F); }
.t6::before { background: radial-gradient(60% 60% at 50% 50%, #F5F1EA, transparent), linear-gradient(180deg, #E6DFD3, #C9B48A); }
.tile.soft::before { filter: blur(10px); }
.tile .eye {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.tile .eye span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(253, 252, 250, .82); color: var(--on-gold); }
.tile .eye svg { width: 16px; height: 16px; }
.vault-foot { display: flex; align-items: center; gap: .6rem; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: .8125rem; color: var(--muted); }
.vault-foot svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* Cards & feature grid */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 1.25rem; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.card h3 { margin-top: 1.1rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--gold-pale); color: var(--gold);
}
.icon svg { width: 24px; height: 24px; }
.card .tag { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-top: 1.1rem; }
.card .tag + h3 { margin-top: .35rem; }

/* Split layout with check list */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checks li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.checks .icon { width: 44px; height: 44px; border-radius: 12px; }
.checks .icon svg { width: 22px; height: 22px; }
.checks h3 { font-size: 1.0625rem; margin: .1rem 0 .25rem; }
.checks p { margin: 0; color: var(--muted); font-size: .9375rem; }

.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .checks li { background: var(--paper); }

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; border: 1px solid var(--gold-pale); background: var(--paper);
  padding: 3rem 1.5rem; text-align: center; box-shadow: var(--shadow);
}
@media (min-width: 768px) { .cta { padding: 4.5rem 3rem; } }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, rgba(240, 223, 174, .6), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(231, 215, 177, .35), transparent 70%);
}
.cta h2 { margin-left: auto; margin-right: auto; max-width: 20ch; }
.cta .lead { margin-left: auto; margin-right: auto; }
.age-note { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.75rem; font-size: .875rem; color: var(--muted); }
.age-note b { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--gold); color: var(--on-gold); font-family: var(--font-display); font-weight: 600; font-size: .8125rem; }

/* ---------- Document pages ---------- */
.doc-hero { padding: 3rem 0 2rem; }
@media (min-width: 768px) { .doc-hero { padding: 4.5rem 0 2.5rem; } }
.doc-hero h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); max-width: 18ch; }
.doc-meta { color: var(--muted); font-size: .9375rem; margin: 0; }
.doc { padding: 1rem 0 5rem; }
.doc-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1040px) { .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; } .toc { position: sticky; top: 24px; align-self: start; } }
.toc { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-sm); padding: 1.25rem 1.25rem 1rem; font-size: .9375rem; }
.toc h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .75rem; }
.toc ol { margin: 0; padding-left: 1.25rem; color: var(--muted); }
.toc li { margin: 0 0 .4rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold-text); text-decoration: underline; }
.prose { max-width: var(--prose); min-width: 0; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 1.875rem); margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose > h2:first-child, .prose > .summary + h2 { margin-top: 0; }
.prose h3 { margin: 2rem 0 .6rem; font-size: 1.1875rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }
.summary {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; margin: 0 0 3rem;
}
.summary h2 { border: 0; padding: 0; margin: 0 0 .5rem; font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.summary ul { margin-bottom: 0; }
.callout { border: 1px solid var(--gold-pale); background: rgba(231, 215, 177, .18); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
th { background: var(--card); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--metal); color: var(--on-gold); font: 600 .875rem/1 var(--font-display);
}
.path { font-weight: 600; white-space: nowrap; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); margin-bottom: .75rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--gold); font: 400 1.5rem/1 var(--font-body); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }
.contact-card { display: grid; gap: .25rem; }
.contact-card .big { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 5vw, 1.75rem); word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 3.5rem 0 2rem; font-size: .9375rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--gold-text); text-decoration: underline; }
.footer-grid p { color: var(--muted); margin: .75rem 0 0; max-width: 32ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { padding: 5rem 0 6rem; text-align: center; }
.notfound h1 { font-size: clamp(2.25rem, 8vw, 3.5rem); }
