/* phytovive, first release landing page.
   Type, color and shape follow the phytovive design system (the phytovive design system in the site
   repository): Fraunces 300 for display, Hanken Grotesk for body, IBM Plex Mono for figures,
   marine as the single accent, one 4px radius. The font files in assets/fonts are byte-identical
   to the ones phytovive.com serves today. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("assets/fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("assets/fonts/hanken-grotesk.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  --ink: #1c2e3a;
  --marine: #2a557a;
  --muted: #63736f;
  --muted-strong: #566561; /* placeholders and small print: 4.5:1 on every ground (site audit H5) */
  --hair: #e5e8e5;
  --paper: #f8f9f7;
  --aqua: #eef2f0;
  --ground: #f1f3f2;
  --foot: #e4ede9;
  --btn: #cfe1da;
  --btn-border: #a9c6bc;
  --field-border: #c9d3ce;
  --card-border: #d5ddd9;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4.4vw, 56px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
b, strong { font-weight: 500; color: var(--ink); }
:focus-visible { outline: 2px solid var(--marine); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; font-size: 14px; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- shared pieces ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 2.3px; text-transform: uppercase; color: var(--marine); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--marine); flex: none; }
.display { font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em; color: var(--ink); }
.display em, .serif em { font-style: italic; color: var(--marine); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; background: var(--btn); border: 1px solid var(--btn-border); border-radius: 4px; color: var(--ink); font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: #c3d9d0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 11px; }
.textlink { display: inline-block; font-size: 13.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--ink); }
.textlink:hover { opacity: .7; }

/* ---------- first screen: header and hero over the watermark ---------- */
.first { position: relative; overflow: hidden; background: var(--ground); }
.first::before { content: ""; position: absolute; inset: 0; background: url("assets/img/water-dots.jpg") 50% 45% / cover no-repeat; opacity: .2; pointer-events: none; }
.first > * { position: relative; }

.site-header { display: flex; align-items: center; justify-content: space-between; height: 87px; }
.site-header .logo img { width: 117px; height: auto; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 15px; letter-spacing: .025em; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.account { display: block; color: var(--ink); }
.account svg { width: 20px; height: 20px; }
.menu-button { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: pointer; }
.menu-button svg { width: 22px; height: 22px; }
.mobile-menu { display: none; }

.hero { padding-top: clamp(24px, 4vw, 46px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 { font-size: clamp(38px, 4.7vw, 60px); line-height: 1.06; margin: 24px 0 clamp(18px, 3vw, 40px); max-width: 1000px; }
.intel { max-width: 860px; font-size: clamp(15.5px, 1.4vw, 18px); font-weight: 300; line-height: 1.75; }
.limited { max-width: 860px; margin-top: clamp(22px, 4.6vw, 60px); font-family: var(--serif); font-weight: 300; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.3; letter-spacing: -0.01em; }

/* the two doors */
.doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1168px; margin-top: clamp(24px, 4vw, 52px); background: rgba(248, 249, 247, .94); border: 1px solid var(--card-border); border-radius: 4px; scroll-margin-top: 24px; }
.door { padding: 18px 24px 16px; }
.door + .door { border-left: 1px solid #dbe2de; }
.lab { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.lab .opt { font-weight: 400; letter-spacing: .5px; text-transform: none; color: var(--muted); }
.field { display: flex; gap: 10px; }
.field.also { margin-top: 10px; }
.field input { flex: 1 1 0; min-width: 0; width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--field-border); border-radius: 4px; background: #fff; color: var(--ink); font: 300 15px var(--sans); }
.field input::placeholder { color: var(--muted-strong); }
.field input.code { font-family: var(--mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.field input.code::placeholder { font-family: var(--sans); font-weight: 300; letter-spacing: 0; text-transform: none; }
.door .btn { min-width: 132px; }
.note { margin-top: 9px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.consent { margin-top: 6px; font-size: 11px; font-weight: 300; line-height: 1.6; color: var(--muted-strong); }
.consent a { text-underline-offset: 2px; }
.problem { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: #8a3b2f; }

/* what a door opens */
.result { max-width: 760px; margin-top: clamp(24px, 4vw, 52px); padding: 26px 30px 24px; background: rgba(248, 249, 247, .96); border: 1px solid var(--card-border); border-radius: 4px; }
.result:focus { outline: none; }
.result h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; margin: 14px 0 10px; }
.result p { font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--muted); }
.result .btn { margin-top: 18px; }
.result .small { margin-top: 10px; font-size: 12.5px; }
.result .preview { margin-top: 10px; font-size: 12px; color: var(--marine); }
.result form { margin-top: 18px; }
.textbutton { margin-top: 14px; padding: 0; background: none; border: 0; font: 400 13px var(--sans); color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ---------- shared person to person ---------- */
/* Section grounds alternate so every section is set off from the next (design system: grounds
   alternate PAPER / AQUA). Top to bottom: first screen (ground + watermark), small by design
   (paper), your whole system (aqua), shared person to person (paper), from the journal (aqua),
   footer. */
.share { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 840fr); background: var(--paper); }
.share-img { position: relative; min-height: 520px; }
.share-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.share-copy { padding: clamp(56px, 6vw, 96px) clamp(20px, 5.6vw, 72px) clamp(56px, 6vw, 96px); }
.share-cta { margin-top: 32px; }
.share h2 { font-size: clamp(32px, 3.3vw, 42px); line-height: 1.1; margin: 16px 0; }
.share .intro { max-width: 680px; font-size: 16.5px; font-weight: 300; line-height: 1.7; color: var(--muted); }
.share h3 { font-size: 25px; line-height: 1.2; margin-top: clamp(32px, 4vw, 44px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid var(--hair); counter-reset: step; }
.steps li { padding: 18px 22px 0 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--hair); }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--marine); }
.steps h4 { font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; margin: 8px 0; }
.steps p { font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--muted); }

/* ---------- small by design: the pathway wheel ---------- */
.how-band { background: var(--paper); }
.how { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 28px 48px; align-items: center; padding-top: clamp(48px, 5vw, 64px); padding-bottom: clamp(56px, 6vw, 80px); }
.how h2 { font-size: clamp(32px, 3.3vw, 42px); line-height: 1.1; margin: 16px 0 18px; }
.how .txt { font-size: 16.5px; font-weight: 300; line-height: 1.7; color: var(--muted); margin-bottom: 30px; }
.wheel-card { background: #fff; border: 1px solid #dbe2de; border-radius: 4px; padding: 24px 28px 18px; }
.whl { width: 100%; height: auto; }
.whl .wi { font: 500 12.5px var(--mono); fill: var(--ink); }
.whl .wi-s { font-size: 11px; }
.whl .wc { font: 500 15px var(--sans); fill: var(--marine); }
.whl .wc-l { font-size: 17px; }
.whl .wt { font: 500 13px var(--sans); fill: var(--ink); }
.whl .wd { font: 400 11.5px var(--sans); fill: #33434c; }
.whl .wk { font: 400 11.5px var(--sans); fill: var(--muted); }
.wheel-compact { display: none; }
.wheel-compact .whl { max-width: 280px; margin: 0 auto; }
.wheel-list { margin-top: 18px; border-top: 1px solid var(--hair); }
.wheel-list li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; line-height: 1.45; }
.wheel-list .p { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.wheel-list .r { font-weight: 500; }
.wheel-list .t { display: block; color: var(--muted); font-weight: 300; }
.wheel-list .studied .p, .wheel-list .studied .r { color: var(--muted); }
.wheel-key { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.wheel-key .solid, .wheel-key .dashed { display: inline-block; width: 22px; height: 7px; margin-right: 8px; vertical-align: 1px; background: var(--marine); }
.wheel-key .dashed { background: repeating-linear-gradient(90deg, rgba(42, 85, 122, .32) 0 6px, transparent 6px 10px); margin-left: 18px; }

/* ---------- your whole system, back online ---------- */
.whole-band { background: var(--aqua); }
.whole { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px 40px; padding-top: clamp(48px, 5vw, 64px); padding-bottom: clamp(48px, 5vw, 64px); }
.whole h2 { font-size: clamp(28px, 2.6vw, 32px); line-height: 1.12; margin-top: 14px; }
.whole .btn { margin-top: 26px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cards li { border-top: 1px solid var(--marine); padding-top: 14px; }
.cards .tag { font-family: var(--mono); font-size: 12px; line-height: 1; color: var(--marine); margin-bottom: 8px; }
.cards h3 { font-family: var(--serif); font-weight: 300; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 8px; }
.cards p { font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--muted); }

/* ---------- from the journal (DH 30 Nov 2026: off the top menu, onto the page) ---------- */
/* Aqua, so it is set off from "shared person to person" (paper) above and the footer below. */
.journal-band { background: var(--aqua); }
.journal { padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(56px, 6vw, 88px); }
.journal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.journal h2 { font-size: clamp(32px, 3.3vw, 42px); line-height: 1.1; margin-top: 16px; }
.reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; margin-top: clamp(32px, 4vw, 52px); }
.reads a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.reads a:focus-visible { outline-offset: 4px; }
.reads .cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; margin-bottom: 22px; }
.reads .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.reads a:hover .cover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .reads .cover img { transition: none; } }
.reads .pillar { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--marine); }
.reads .title { margin-top: 10px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.reads .go { margin-top: auto; padding-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--marine); }

/* ---------- footer ---------- */
.site-footer { background: var(--foot); }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-top: 50px; }
.foot-brand img { width: 110px; height: auto; }
.foot-brand .line { margin-top: 14px; font-family: var(--serif); font-weight: 300; font-size: 20px; }
.foot-brand .contact { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.foot-brand .contact a { text-decoration: none; }
.site-footer h2 { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.site-footer li { font-size: 14px; line-height: 2; color: var(--muted); }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { color: var(--ink); }
.legal { margin-top: 30px; padding: 16px 0 28px; border-top: 1px solid #cfdcd6; font-size: 12px; line-height: 1.6; color: var(--muted); }
.legal .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 8px; }
.legal .row a { text-decoration: none; }
.legal .row a + a::before { content: "·"; margin: 0 8px 0 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 8px; }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .share { grid-template-columns: 1fr; }
  .share-img { min-height: 0; aspect-ratio: 16 / 9; }
  .how { grid-template-columns: 1fr; }
  .whole { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .site-header { height: 72px; }
  .site-header .logo img { width: 98px; }
  .nav-links, .nav .btn, .nav .account { display: none; }
  .menu-button { display: block; }
  .mobile-menu { display: block; padding: 4px 0 18px; border-bottom: 1px solid var(--hair); }
  .mobile-menu[hidden] { display: none !important; }
  .mobile-menu a { display: block; padding: 10px 0; font-size: 16px; color: var(--ink); text-decoration: none; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .door { padding: 14px 16px; }
  .door + .door { border-left: 0; border-top: 1px solid #dbe2de; }
  .door .btn { min-width: 104px; padding: 0 14px; font-size: 11px; }
  .result { padding: 22px 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
  .wheel-full { display: none; }
  .wheel-compact { display: block; }
  .wheel-card { padding: 22px 18px 18px; }
  .cards { grid-template-columns: 1fr; }
  .reads { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-brand { grid-column: 1 / -1; }
}
