@font-face { font-family: "Playfair"; src: url("fonts/PlayfairDisplay-Regular.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("fonts/PlayfairDisplay-Italic.ttf") format("truetype"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --night: #0a1428;
  --navy: #12264a;
  --navy-2: #1a3260;
  --gold: #b08850;
  --gold-light: #d4b27a;
  --bronze: #7a5528;
  --cream: #f7f0e6;
  --paper: #fffbf5;
  --beige: #e9dccb;
  --ink: #2a2622;
  --muted: #6e6457;
  --on-night: #f7f0e6;
  --on-night-soft: #c9c2d6;
  --serif: "Playfair", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold-light); color: var(--night); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }

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

/* Header */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  position: relative; z-index: 2;
}
.bar-legal { background: var(--night); }
.bar-home { position: absolute; inset: 0 0 auto 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; font: 400 22px/1 var(--serif); letter-spacing: 0.04em; }
.brand:hover { color: var(--gold-light); }
.bar nav { display: flex; gap: 22px; }
.bar nav a { color: var(--on-night-soft); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 0; }
.bar nav a:hover { color: var(--gold-light); }

/* Buttons */
.store, .ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.store { background: var(--gold-light); color: var(--night); }
a.store:hover { background: var(--paper); color: var(--night); }
.store-soon { cursor: default; }
.ghost { color: var(--on-night); border: 1px solid rgba(212, 178, 122, 0.5); }
.ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* Phone frame */
.phone {
  margin: 0;
  width: min(300px, 72vw);
  padding: 9px;
  border-radius: 46px;
  background: #05090f;
  box-shadow: 0 40px 80px -30px rgba(5, 9, 15, 0.55), 0 0 0 1px rgba(212, 178, 122, 0.22);
  justify-self: center;
}
.phone img { border-radius: 37px; aspect-ratio: 1100 / 2390; object-fit: cover; width: 100%; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 75% 20%, #1a3260 0%, var(--navy) 38%, var(--night) 100%);
  color: var(--on-night);
  min-height: 100svh;
  display: grid; align-items: center;
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky .trace { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.7; animation: trace 2.6s var(--ease) var(--d) forwards; }
.sky .tw { animation: twinkle 5s ease-in-out infinite alternate; }
.sky .tw:nth-child(3n) { animation-delay: -2s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 0.95; } }
.hero-in {
  position: relative;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 120px var(--gutter) 72px;
  display: grid; gap: 56px;
  grid-template-columns: 1.15fr 0.85fr; align-items: center;
}
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-lead { max-width: 34ch; margin: 28px 0 36px; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-night-soft); }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .phone { animation: rise 1.2s var(--ease) both; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* Feature rows */
.feature { padding: clamp(80px, 11vw, 140px) var(--gutter); }
.feature-in {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center;
}
.feature-in.flip { grid-template-columns: 1.2fr 0.8fr; }
.feature-in.flip .phone { order: 2; }
.feature h2 { font-size: clamp(34px, 4.4vw, 58px); color: var(--navy); margin-bottom: 24px; }
.feature-copy { max-width: 52ch; }
.feature-copy p { margin: 0 0 16px; color: var(--muted); font-size: 18px; }
.feature-night { background: var(--night); color: var(--on-night); }
.feature-night h2 { color: var(--on-night); }
.feature-night .feature-copy p { color: var(--on-night-soft); }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--beige); }
.ticks li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--beige); position: relative; font-weight: 600; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Promise */
.promise { background: var(--navy); color: var(--on-night); padding: clamp(80px, 10vw, 130px) var(--gutter); }
.promise-in { max-width: 900px; margin: 0 auto; text-align: center; }
.promise h2 { font-size: clamp(34px, 5vw, 64px); }
.promise p { max-width: 58ch; margin: 28px auto 24px; color: var(--on-night-soft); font-size: 18px; }
.promise a { color: var(--gold-light); font-weight: 600; }
.promise a:hover { color: var(--paper); }

/* Close */
.close { padding: clamp(80px, 10vw, 120px) var(--gutter); display: grid; justify-items: center; gap: 22px; text-align: center; }
.close img { width: 150px; }
.close p { margin: 0; font: 400 22px/1.3 var(--serif); color: var(--navy); }
.close .store { background: var(--navy); color: var(--cream); }
.close a.store:hover { background: var(--night); }

/* Footer */
.foot { background: var(--night); color: var(--on-night-soft); padding: 56px var(--gutter) 40px; font-size: 15px; }
.foot-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
.foot-brand { display: inline-flex; gap: 12px; align-items: center; color: var(--on-night); text-decoration: none; font: 400 22px/1.1 var(--serif); }
.foot-brand small { display: block; font: 600 12px/1.6 var(--sans); letter-spacing: 0.12em; color: var(--gold-light); text-transform: uppercase; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: flex-end; }
.foot a { color: var(--on-night); }
.foot a:hover { color: var(--gold-light); }
.foot-links a { text-decoration: none; font-weight: 600; display: inline-block; padding: 6px 0; }
.foot-note, .foot-legal { grid-column: 1 / -1; margin: 0; max-width: 70ch; }
.foot-note { border-top: 1px solid rgba(212, 178, 122, 0.2); padding-top: 24px; }

/* Documents */
.doc {
  max-width: 1100px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 96px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start;
}
.doc-single { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.toc { position: sticky; top: 24px; font-size: 14px; }
.toc summary { font-weight: 600; color: var(--navy); cursor: pointer; padding: 6px 0; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; border-left: 1px solid var(--beige); }
.toc li a { display: block; padding: 6px 0 6px 16px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--navy); }
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); color: var(--navy); margin-bottom: 24px; }
.prose h2 { font-size: clamp(23px, 2.4vw, 28px); color: var(--navy); margin: 56px 0 14px; scroll-margin-top: 24px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--gold); }
.lede p { font-size: 19px; color: var(--muted); }
.mailto { font: 400 clamp(22px, 3vw, 30px)/1.3 var(--serif); margin: 20px 0 8px !important; overflow-wrap: anywhere; }
.mailto a { color: var(--navy); }
.faq { border-bottom: 1px solid var(--beige); }
.faq:first-of-type { border-top: 1px solid var(--beige); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--serif); color: var(--gold); transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* Narrow screens */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 104px; gap: 48px; text-align: left; }
  .hero .phone { width: min(260px, 70vw); }
  .feature-in, .feature-in.flip { grid-template-columns: 1fr; }
  .feature-in .phone, .feature-in.flip .phone { order: 2; width: min(260px, 70vw); }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--paper); border: 1px solid var(--beige); border-radius: 14px; padding: 6px 16px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .bar nav { gap: 16px; }
  .hero-act .store, .hero-act .ghost { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sky .trace { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
