@import url("../../colors_and_type.css");

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-100);
}
body { padding-top: var(--nav-h); }

/* --- Page shell ------------------------------------------------ */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
}
/* Default gap between top-level sections */
.page > * + * { margin-top: 48px; }
/* Hero gets extra breath after — it's the opening, deserves room */
.page > .hero + * { margin-top: 56px; }
/* CTAs and one-line sov-lines tighten to feel like punctuation, not a new chapter */
.page > * + .cta-band { margin-top: 32px; }
.page > * + .sov-line { margin-top: 32px; }
/* Last CTA before footer can sit a touch tighter */
.page > .cta-band:last-child { margin-top: 24px; }

/* --- Nav --------------------------------------------------------*/
.ys-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface-elev);
  border-bottom: var(--border-hair);
  z-index: 50;
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  gap: 28px;
}
.ys-nav .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink-100);
  cursor: pointer;
  background: transparent; border: 0;
  padding: 0;
}
.ys-nav .brand .e { color: var(--celf-amber); }
.ys-nav .links {
  display:flex; gap: 28px; margin-left: 28px;
  font-family: var(--font-body); font-size: 14px;
}
.ys-nav .links button {
  background: 0; border: 0; padding: 4px 0;
  color: var(--ink-70);
  font-family: inherit; font-size: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: opacity 120ms ease, color 120ms ease;
}
.ys-nav .links button:hover  { opacity: 0.92; color: var(--ink-100); }
.ys-nav .links button.active { color: var(--celf-amber); }
.ys-nav .spacer { flex: 1; }

/* --- Buttons ----------------------------------------------------*/
.ys-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 120ms ease;
  min-height: 44px;
  line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.ys-btn-primary {
  background: var(--celf-amber);
  color: var(--on-amber);
}
.ys-btn-secondary {
  background: transparent;
  color: var(--ink-100);
  border-color: var(--rule);
}
.ys-btn-text {
  background: transparent;
  color: var(--celf-amber);
  padding: 8px 6px;
  border: 0;
  font-weight: 500;
}
.ys-btn:hover  { opacity: 0.92; }
.ys-btn:active { opacity: 0.84; }
.ys-btn-primary.sm { padding: 8px 16px; font-size: 14px; min-height: 0; }

/* --- Hero -------------------------------------------------------*/
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  min-height: 70vh;
}
.hero-prose .eyebrow { margin-bottom: 18px; }
.hero-prose h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-100);
  margin: 0 0 18px;
}
.hero-prose .locked-promise {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-100);
  margin-bottom: 10px;
}
.hero-prose .em-line {
  font-style: italic;
  color: var(--ink-70);
  font-size: 18px;
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex; align-items: center; gap: 16px;
}
.hero-cta .micro {
  font-size: 12px; color: var(--ink-45);
}

/* --- Phone frame -------------------------------------------------*/
.phone {
  background: var(--surface-elev);
  border: var(--border-hair);
  border-radius: 32px;
  padding: 14px 10px 18px;
  max-width: 260px;
  min-height: 520px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.phone .status {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-45);
  text-align: center;
  letter-spacing: 0.04em;
}
.phone .photo {
  flex: 1;
  min-height: 280px;
  border-radius: 16px;
  background: linear-gradient(160deg, #1a2230, #2a1f15 70%, #4a311a);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 16px;
}
.phone .photo::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 60%, rgba(214,144,74,0.32), transparent 70%);
}
.phone .photo .cap {
  position: relative;
  color: #E8E2D5;
  font-style: italic;
  font-size: 13px;
  font-family: var(--font-body);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.phone .context {
  background: var(--surface-sunken);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-70);
  font-family: var(--font-body);
}
.phone .context .who { color: var(--celf-amber); font-weight: 500; }
.phone .context strong { color: var(--ink-100); font-weight: 600; }

.phone .photo-empty {
  background: var(--surface-sunken);
  border: 1px dashed var(--rule);
}
.phone .photo-empty::after { display: none; }

/* --- Real-photo phone-frame state -------------------------------*/
.phone .photo-real { background: #0a0e14; }
.phone .photo-real::after {
  /* soften the amber radial so it reads as a vignette over real photography */
  background: radial-gradient(80% 70% at 50% 65%, transparent 30%, rgba(0,0,0,0.45) 100%);
}
.phone .photo-real .cap {
  /* stronger shadow for legibility against varied photography */
  text-shadow: 0 1px 12px rgba(0,0,0,0.85);
}

/* --- Hero photo (Circles full-bleed) ----------------------------*/
.hero-photo {
  width: 100%;
  height: clamp(280px, 42vw, 480px);
  border-radius: var(--r-card-lg);
  background-color: #0a0e14;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
}
.hero-photo-cap {
  position: relative;
  color: #E8E2D5;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

/* --- Generic section --------------------------------------------*/
.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  color: var(--ink-100);
  margin: 0 0 12px;
  text-wrap: balance;
}
.section h2.lead-h {
  font-size: clamp(34px, 4.2vw, 48px);
}
.section .lede {
  text-align: center;
  font-size: 18px;
  color: var(--ink-70);
  max-width: 40ch;
  margin: 0 auto;
}
.section .lede em { font-style: italic; color: var(--ink-100); }

/* --- 3 preview cards (Home) -------------------------------------*/
.previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.preview-card {
  background: var(--surface-elev);
  border-radius: var(--r-card-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.preview-card .eyebrow { color: var(--celf-amber); }
.preview-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink-100);
  margin: 0;
}
.preview-card p { font-size: 14px; color: var(--ink-70); }
.preview-card .visual {
  height: 140px;
  border-radius: 12px;
  background: var(--surface-sunken);
  display:flex; align-items:flex-end;
  padding: 12px;
  font-style: italic;
  font-size: 12px;
  color: var(--ink-45);
  font-family: var(--font-body);
  margin-top: auto;
}

/* --- Founder note ----------------------------------------------*/
.founder {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.founder .portrait {
  aspect-ratio: 4/5;
  border-radius: 16px;
  background: var(--surface-sunken);
  border: 1px dashed var(--rule);
  display: flex; align-items: flex-end;
  padding: 14px;
  font-style: italic; font-size: 12px;
  color: var(--ink-45);
  font-family: var(--font-body);
}
.founder h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 12px;
}
.founder p { font-size: 16px; color: var(--ink-70); margin-bottom: 16px; }
.founder .sig { font-size: 14px; color: var(--ink-45); }

/* --- Five frames (See It) ---------------------------------------*/
.frames { display: grid; gap: 80px; }
.frame {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
}
.frame:nth-child(even) {
  grid-template-columns: 1fr 300px;
}
.frame:nth-child(even) .prose { order: -1; text-align: right; }
.frame:nth-child(even) .prose .body { margin-left: auto; }
.frame .step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-45);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.frame h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.frame .body { font-size: 17px; color: var(--ink-70); max-width: 32ch; }

/* --- Five People panel ------------------------------------------*/
.five-people-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.five-people {
  background: var(--surface-elev);
  border-radius: var(--r-card-lg);
  padding: 32px 28px;
}
.five-people-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.person { text-align: center; }
.person .circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: linear-gradient(140deg, #2a1f15 0%, #4a311a 70%, #B57020 100%);
  border: 1px solid var(--rule);
}
.person .name { font-size: 13px; color: var(--ink-100); font-weight: 500; }
.person .meta { font-size: 11px; color: var(--ink-45); margin-top: 2px; font-family: var(--font-body); }
.five-people .caption-line {
  margin-top: 22px;
  text-align: center;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-70);
}

/* --- Books panel (MyLife) ---------------------------------------*/
.books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.book {
  background: var(--surface-elev);
  border-radius: 12px;
  padding: 24px 20px;
  border-left: 3px solid var(--celf-amber);
}
.book .title { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.book .years { font-family: var(--font-mono); font-size: 12px; color: var(--ink-45); }

/* --- Inheritance envelope ---------------------------------------*/
.envelope-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}
.envelope {
  aspect-ratio: 4/3;
  background: #2a2218;
  border: 1px solid color-mix(in oklab, var(--celf-amber) 40%, transparent);
  border-radius: 8px;
  padding: 24px 22px;
  color: #E8E2D5;
  display: flex; flex-direction: column;
  font-family: var(--font-body);
  position: relative;
}
.envelope::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border-bottom: 1px solid rgba(214,144,74,0.25);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.envelope .label {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--celf-amber); margin-bottom: 8px;
}
.envelope .to { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 12px; }
.envelope .body { font-size: 12px; color: rgba(232,226,213,0.7); }

/* --- Campfire diagram -------------------------------------------*/
.campfire {
  background: var(--surface-elev);
  border-radius: var(--r-card-lg);
  padding: 36px 32px;
  max-width: 860px;
  margin: 0 auto;
}
.campfire .title-row {
  display:flex; align-items:center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px;
  margin-bottom: 28px;
  justify-content: center;
}
.campfire .icon { width: 28px; height: 28px; color: var(--celf-amber); }
.campfire .contributors {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.contributor {
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}
.contributor .who {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  color: var(--ink-100);
  margin-bottom: 6px;
}
.contributor .what {
  font-size: 12px; color: var(--ink-70);
  font-family: var(--font-body);
  line-height: 1.5;
}
.campfire .arrow {
  text-align: center;
  margin: 22px 0;
  color: var(--celf-amber);
  font-size: 13px;
  font-family: var(--font-body);
}
.campfire .outcome {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--celf-amber) 30%, transparent);
  padding: 22px;
  text-align: center;
}
.campfire .outcome .title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px;
  color: var(--celf-amber);
  margin-bottom: 6px;
}
.campfire .outcome .summary {
  font-size: 13px; color: var(--ink-70);
}

/* --- Three plain claims (Circles) ---------------------------------*/
.claims {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 860px; margin: 0 auto;
}
.claim {
  padding: 24px 22px;
  border-top: 1px solid var(--rule);
}
.claim strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink-100); margin-bottom: 6px; }
.claim p { font-size: 14px; color: var(--ink-70); }

/* --- Sovereignty diagram ----------------------------------------*/
.arch {
  background: var(--surface-elev);
  border-radius: var(--r-card-lg);
  padding: 40px 32px;
  max-width: 860px;
  margin: 0 auto;
}
.arch-row {
  display:grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  gap: 16px;
  align-items: center;
}
.arch-node { text-align: center; }
.arch-node .title { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.arch-node .desc { font-size: 12px; color: var(--ink-70); margin-top: 6px; }
.arch-link { text-align: center; color: var(--ink-45); font-size: 18px; }
.arch-foot { margin-top: 28px; text-align: center; font-style: italic; color: var(--ink-45); font-size: 13px; }

.dont-collect {
  max-width: 720px;
  margin: 0 auto;
}
.dont-collect h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 24px;
  margin: 0 0 24px;
  text-align: center;
}
.dont-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 48px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-100);
}
.dont-list li {
  list-style: none;
  padding-left: 18px;
  position: relative;
}
.dont-list li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--celf-amber);
}
.dont-foot {
  margin-top: 24px;
  text-align: center;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-45);
}

/* --- Pricing (Be YourCelf) ----------------------------------------*/
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.price-card {
  background: var(--surface-elev);
  border-radius: var(--r-card-lg);
  padding: 32px 28px;
  display:flex; flex-direction: column; gap: 12px;
}
.price-card.featured { border: 1px solid color-mix(in oklab, var(--celf-amber) 55%, transparent); }
.price-card .eyebrow { color: var(--celf-amber); }
.price-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0; }
.price-card .price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 42px;
  color: var(--ink-100);
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 6px;
  margin: 6px 0;
}
.price-card .price .unit {
  font-family: var(--font-body);
  font-size: 13px; color: var(--ink-45);
  font-weight: 400;
}
.price-card .desc { font-size: 14px; color: var(--ink-70); margin: 0; }
.price-card .note { font-size: 12px; color: var(--ink-45); margin-top: auto; }

.under-line {
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-100);
  max-width: 36ch;
  margin: 0 auto;
}
.under-sig { text-align: center; margin-top: 10px; font-size: 13px; color: var(--ink-45); }

.waitlist {
  max-width: 460px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center;
}
.waitlist h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  text-align: center;
  margin: 0;
}
.waitlist-row { display: flex; gap: 8px; width: 100%; }
.waitlist-row input {
  flex: 1; min-height: 44px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--ink-100);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-input);
  padding: 0 14px;
  outline: none;
}
.waitlist-row input:focus { border-color: var(--celf-amber); }
.waitlist-row input::placeholder { color: var(--ink-45); }
.waitlist .micro { font-size: 12px; color: var(--ink-45); font-style: italic; }
.waitlist .confirm {
  display:flex; align-items:center; gap: 8px;
  color: var(--celf-green);
  font-size: 14px;
}

/* --- Page-level cta band -----------------------------------------*/
.cta-band {
  text-align: center;
}
.cta-band h2 { margin-bottom: 24px; }

/* --- Sovereignty one-liner ----------------------------------------*/
.sov-line {
  text-align: center;
  padding: 48px 0;
  border-top: var(--border-hair);
  border-bottom: var(--border-hair);
}
.sov-line h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.sov-line a { font-style: italic; font-size: 15px; }

/* --- Footer ------------------------------------------------------*/
.ys-foot {
  border-top: var(--border-hair);
  padding: 40px var(--gutter) 60px;
  color: var(--ink-45);
  font-size: 13px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  max-width: var(--page-max);
  margin: 96px auto 0;
}
.ys-foot .copy { color: var(--ink-70); }
.ys-foot button, .ys-foot a {
  background:0; border:0; color: var(--ink-45); font: inherit; cursor:pointer; padding:0; text-decoration: none;
}
.ys-foot button:hover, .ys-foot a:hover { color: var(--ink-100); }

/* --- Centered page hero (small) -----------------------------------*/
.page-hero { text-align: center; padding: 24px 0 0; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.page-hero .lede {
  font-size: 18px;
  color: var(--ink-70);
  max-width: 40ch;
  margin: 0 auto;
}

/* --- Cropped Phone wrapper for Hero ------------------------------*/
.cropped-phone-wrapper {
  height: 360px;
  max-height: 360px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}
.cropped-phone-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}

/* --- Story Grid 2-Column Layout ----------------------------------*/
.story-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (max-width: 880px) {
  .hero, .five-people-block, .envelope-block, .founder, .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .previews, .books, .pricing, .claims { grid-template-columns: 1fr; }
  .campfire .contributors { grid-template-columns: 1fr 1fr; }
  .frame, .frame:nth-child(even) { grid-template-columns: 1fr; }
  .frame:nth-child(even) .prose { order: 0; text-align: left; }
  .arch-row { grid-template-columns: 1fr; }
  .arch-link { display: none; }
}
