/* Velle — velleapp.com
   Built from the "Velle Homepage v2" design (Claude Design). */

@font-face {
  font-family: 'SwilyBright';
  src: url('fonts/SwilyBright-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F4EFE6;
  --vellum: #EDE6D8;
  --tint: #E6DDCB;
  --ink: #1B1A17;
  --smoke: #5A554B;
  --quill: #8A8275;
  --linen: #C9C0AE;
  --accent: #7A5A2E;
  --block-bg: #1B1A17;
  --block-fg: #F4EFE6;
  --block-accent: #B89866;
  --nav: rgba(244, 239, 230, .88);
  --grain: 1;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --script: 'SwilyBright', Georgia, serif;

  --gutter: clamp(20px, 5vw, 80px);
  --pad: clamp(80px, 10vw, 144px);
  --hair: 0.5px solid var(--linen);
  --radius: 12px;

  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15140F; --vellum: #1E1C17; --tint: #27241D; --ink: #EDE6D8;
    --smoke: #B4AB9B; --quill: #8F877A; --linen: #3A362E; --accent: #B89866;
    --block-bg: #EDE6D8; --block-fg: #1B1A17; --block-accent: #7A5A2E;
    --nav: rgba(21, 20, 15, .86); --grain: .6;
  }
}
:root[data-theme="dark"] {
  --paper: #15140F; --vellum: #1E1C17; --tint: #27241D; --ink: #EDE6D8;
  --smoke: #B4AB9B; --quill: #8F877A; --linen: #3A362E; --accent: #B89866;
  --block-bg: #EDE6D8; --block-fg: #1B1A17; --block-accent: #7A5A2E;
  --nav: rgba(21, 20, 15, .86); --grain: .6;
}

/* ---------- Base ---------- */
html { scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 30; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--ink); }
a:hover { color: var(--accent); }
p { margin: 0; }
h1, h2 { margin: 0; padding-bottom: 4px; font-family: var(--serif); font-weight: 300; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 40;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper);
}
.skip:focus { top: 12px; }

/* ---------- Shared pieces ---------- */
.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--pad) var(--gutter); border-top: var(--hair); }
.section--vellum { background: var(--vellum); }

/* Accent word inside a serif headline: SwilyBright upright, sized to Fraunces x-height */
.acc {
  font-family: var(--script); font-weight: 400; font-style: normal;
  font-size: .84em; color: var(--accent);
}

.eyebrow, .mono {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--smoke);
}

.h2 {
  font-size: clamp(34px, 4.2vw, 56px); line-height: 1.12;
  letter-spacing: -.015em; text-wrap: balance;
}
.h-display {
  font-size: clamp(44px, 6vw, 88px); line-height: 1.1;
  letter-spacing: -.02em; text-wrap: balance;
}
.body { font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.stack { display: flex; flex-direction: column; gap: 24px; }

.wordmark {
  font-family: var(--script); font-weight: 400; font-size: 24px;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.wordmark em { font-style: normal; color: var(--accent); }

/* App Store badge (text version, per design) */
.store {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 2px; height: 54px; padding: 0 22px; border-radius: 10px;
  background: #1B1A17; color: #F4EFE6; border: 1px solid var(--quill);
  box-sizing: border-box; text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.store:hover { opacity: .92; color: #F4EFE6; }
.store:active { transform: scale(.98); }
.store span:first-child { font-size: 11px; line-height: 1; }
.store span:last-child { font-weight: 500; font-size: 22px; line-height: 1; letter-spacing: -.01em; }
.store--sm { height: 40px; padding: 0 14px; border-radius: 8px; gap: 1px; }
.store--sm span:first-child { font-size: 9px; }
.store--sm span:last-child { font-size: 16px; letter-spacing: 0; }

/* Phone frame with placeholder screen */
.phone-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone {
  width: 100%; max-width: 280px; aspect-ratio: 9 / 19.5;
  border-radius: 46px; background: #1B1A17; padding: 10px; box-sizing: border-box;
  box-shadow: 0 0 0 .5px var(--linen);
}
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; background: var(--paper);
  padding: 54px 16px 16px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 12px; background: #1B1A17; z-index: 1;
}
.phone__title { font-family: var(--serif); font-weight: 300; font-size: 28px; color: var(--ink); }
.phone__slot {
  flex: 1; border-radius: 12px; border: .5px dashed var(--linen);
  display: flex; align-items: center; justify-content: center;
}
.phone .mono, .phone-fig figcaption { font-size: 10px; }

/* Photo placeholder */
.photo-slot {
  border-radius: var(--radius); border: .5px dashed var(--linen); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box; text-align: center;
}
.photo-slot .mono { font-size: 10px; line-height: 1.7; max-width: 44ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: var(--hair);
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav__links a { text-decoration: none; }
.nav__end { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none;
  height: 40px; padding: 0 14px; border: .5px solid var(--linen); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.nav__toggle:active { transform: scale(.98); }
.mobile-menu {
  list-style: none; margin: 0; padding: 8px 20px 20px;
  flex-direction: column; border-top: var(--hair);
  font-family: var(--serif); font-weight: 300; font-size: 26px;
}
.mobile-menu li { border-bottom: var(--hair); }
.mobile-menu li:last-child { border-bottom: 0; }
.mobile-menu a { display: block; padding: 14px 0; text-decoration: none; }
.mobile-menu:not([hidden]) { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(64px, 7vw, 104px); }
.hero .wrap, .split {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(48px, 6vw, 96px);
}
.hero__copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero h1 {
  font-size: clamp(44px, 5.4vw, 76px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance;
}
.hero__sub { max-width: 30ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; text-wrap: pretty; }
.hero .phone-fig, .split .phone-fig { flex: 1 1 300px; }

/* ---------- Intro ---------- */
.intro { padding: clamp(56px, 7vw, 96px) var(--gutter); }
.intro p { max-width: 880px; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.55; text-wrap: pretty; }

/* ---------- Recognition ---------- */
.recognition .wrap { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.recognition .stack { max-width: 65ch; }
.recognition .photo-slot { aspect-ratio: 21 / 9; min-height: 220px; }

/* ---------- Name ---------- */
.name { padding: clamp(112px, 14vw, 200px) var(--gutter); }
.centered {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center;
}
.rule { width: 48px; border-top: var(--hair); }
.name p {
  max-width: 720px; font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; text-wrap: pretty;
}

/* ---------- Households ---------- */
.split--rev { flex-direction: row-reverse; }
.split__copy { flex: 1 1 440px; }
.split__copy .body { max-width: 60ch; }

/* ---------- Dates ---------- */
.dates .wrap { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.dates h2 { text-align: center; }
.dates__grid {
  display: grid; gap: clamp(32px, 4vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
  grid-template-areas: "a p b";
}
.dates__a { grid-area: a; }
.dates__b { grid-area: b; }
.dates__grid .phone-fig { grid-area: p; }

/* ---------- Gifts ---------- */
.gifts__card {
  background: var(--vellum); border: var(--hair); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: stretch;
}
.gifts__copy {
  flex: 1 1 420px; padding: clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.gifts__copy .body { max-width: 52ch; }
.gifts__phone { flex: 1 1 320px; display: flex; justify-content: center; align-items: flex-end; padding: 56px 24px 0; }
.gifts__crop { width: 100%; max-width: 280px; height: 460px; overflow: hidden; }
.gifts__crop .phone__slot { align-items: flex-start; padding-top: 120px; }

/* ---------- Hosting ---------- */
.hosting__grid {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "p t" "p n";
}
.hosting__copy {
  grid-area: t; padding: clamp(8px, 2vw, 24px) clamp(0px, 2vw, 24px);
  display: flex; flex-direction: column; gap: 24px; justify-content: center;
}
.hosting__copy .body { max-width: 58ch; }
.hosting__phone {
  grid-area: p; background: var(--vellum); border: var(--hair); border-radius: var(--radius);
  padding: clamp(32px, 4vw, 56px) 24px; justify-content: center;
}
.hosting__phone .phone { max-width: 260px; border-radius: 44px; }
.hosting__phone .phone__screen { border-radius: 34px; }
.hosting__phone .phone__title { font-size: 26px; }
.hosting__names {
  grid-area: n; background: var(--tint); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; justify-content: center;
}
.hosting__names span {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15;
}
.hosting__names hr { margin: 0; border: 0; border-top: var(--hair); }

/* ---------- Privacy block ---------- */
.privacy-block {
  padding: clamp(96px, 12vw, 176px) var(--gutter);
  background: var(--block-bg); color: var(--block-fg);
}
.privacy-block .wrap { display: flex; flex-direction: column; gap: 32px; }
.privacy-block .acc { color: var(--block-accent); }
.privacy-block p { max-width: 56ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; text-wrap: pretty; }

/* ---------- Kinkeeper ---------- */
.kinkeeper { border-top: 0; }
.kinkeeper .wrap { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.kinkeeper .stack { max-width: 65ch; }
.tiles { display: flex; flex-direction: column; gap: 16px; }
.tiles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tiles__lg { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tiles__sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { border-radius: var(--radius); display: flex; flex-direction: column; }
.tile span { color: var(--smoke); line-height: 1.55; }
.tiles__lg .tile {
  padding: clamp(28px, 3vw, 40px); gap: 12px; min-height: 150px; justify-content: flex-end;
}
.tiles__lg strong { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.15; }
.tiles__lg span { font-size: 16px; }
.tiles__sm .tile { padding: 24px 22px 28px; gap: 10px; }
.tiles__sm strong { font-weight: 500; font-size: 16px; }
.tiles__sm span { font-size: 15px; }
.tile--vellum { background: var(--vellum); }
.tile--tint { background: var(--tint); }
.tile--line { border: var(--hair); }

/* ---------- Founder ---------- */
.founder { padding: clamp(88px, 11vw, 160px) var(--gutter); }
.founder article { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.founder .photo-slot { aspect-ratio: 3 / 2; margin-bottom: 20px; }
.founder .photo-slot .mono { max-width: 36ch; }
.founder h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; letter-spacing: -.015em; }
.founder p {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(19px, 1.6vw, 22px); line-height: 1.65; text-wrap: pretty;
}
.founder .sig { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sig__name { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 40px; line-height: 1.1; }
.sig__role { font-family: var(--sans); font-size: 14px; color: var(--smoke); }

/* ---------- Pricing ---------- */
.pricing__card {
  max-width: 520px; margin: 0 auto; background: var(--vellum); border: var(--hair);
  border-radius: var(--radius); padding: clamp(32px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.pricing__card h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.12; }
.pricing__card p { font-size: 17px; line-height: 1.65; text-wrap: pretty; }

/* ---------- FAQ ---------- */
.faq .wrap { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 96px); align-items: flex-start; }
.faq h2 { flex: 1 1 260px; }
.faq__list { flex: 2 1 560px; }
.faq details { border-bottom: var(--hair); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; font-weight: 500; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--smoke); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--smoke); }

/* ---------- Closing ---------- */
.closing { padding: clamp(112px, 14vw, 200px) var(--gutter); }
.closing h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px var(--gutter) 48px; border-top: var(--hair); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .wordmark { font-size: 27px; }
.footer__meta { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--smoke); }
.footer__meta p { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__meta a { color: var(--smoke); }
.footer__meta a:hover { color: var(--accent); }
.footer__meta .mono { text-decoration: none; }

/* ---------- Policy page ---------- */
.policy { padding: clamp(56px, 8vw, 112px) var(--gutter) var(--pad); }
.policy .wrap { max-width: 680px; display: flex; flex-direction: column; gap: 24px; }
.policy h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.1; letter-spacing: -.02em; }
.policy .lede { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.55; }
.policy h2 { margin-top: 24px; font-size: 28px; line-height: 1.2; }
.policy p { font-size: 17px; line-height: 1.7; }
.policy__meta { margin-top: 32px; padding-top: 24px; border-top: var(--hair); }
.policy__meta p { font-size: 14px; color: var(--smoke); }

/* ---------- Mobile (< 860px) ---------- */
@media (max-width: 859px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-block; }
  .dates__grid { grid-template-columns: 1fr; grid-template-areas: "a" "b" "p"; }
  .hosting__grid { grid-template-columns: 1fr; grid-template-areas: "t" "n" "p"; }
}
@media (min-width: 860px) {
  .mobile-menu { display: none !important; }
}
