/* Cursus site. Warm paper, olive ink, quiet type. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fffefa;
  --paper-band: #f8f6f1;
  --card-soft: #f3f2ec;
  --tint: #e6e9dd;
  --tint-strong: #d6dbc9;
  --ink: #272725;
  --ink-soft: #8d8c86;
  --body: #62615c;
  --line: rgba(39, 39, 37, 0.09);
  --olive: #485138;
  --olive-hover: #3c4430;
  --on-olive: #fbfbf4;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 13vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--tint-strong); color: var(--ink); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }

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

/* Type */
h1 {
  font-size: clamp(44px, 5.4vw, 74px);
  font-weight: 340;
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 340;
  line-height: 1.06;
  letter-spacing: -0.036em;
}
h3 {
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.soft { color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--body);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--olive);
  color: var(--on-olive);
  font-size: 16px;
  font-weight: 520;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--olive-hover); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 15px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

.link {
  display: inline-block;
  margin-top: 26px;
  color: var(--olive);
  font-weight: 540;
  border-bottom: 1px solid rgba(72, 81, 56, 0.35);
  padding-bottom: 2px;
  transition: border-color 160ms var(--ease);
}
.link:hover { border-color: var(--olive); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px var(--gutter) 0;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 64px;
  padding: 0 14px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 254, 250, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 999px;
  box-shadow: 0 10px 34px -12px rgba(39, 39, 37, 0.14), 0 0 0 1px rgba(39, 39, 37, 0.04);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--olive);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.mark {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15.5px; }
.nav-links a:not(.btn) { color: var(--ink); transition: color 160ms var(--ease); }
.nav-links a:not(.btn):hover { color: var(--ink-soft); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--body);
  font-size: 15px;
}
.announce-chip {
  background: var(--tint);
  color: var(--olive);
  font-size: 12.5px;
  font-weight: 640;
  padding: 3px 8px;
  border-radius: 6px;
}
.announce:hover span:last-child { color: var(--ink); }
.lede {
  margin-top: 28px;
  max-width: 440px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.5;
}
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { color: var(--ink-soft); font-size: 14.5px; }

.hero-art { position: relative; }
.hero-glow {
  position: absolute;
  inset: -18% -30% -22% -12%;
  background:
    radial-gradient(closest-side, rgba(214, 219, 201, 0.75), rgba(230, 233, 221, 0.35) 55%, transparent 100%);
  filter: blur(10px);
  z-index: 0;
}
.window {
  position: relative;
  z-index: 1;
  width: 152%;
  max-width: none;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(39, 39, 37, 0.07),
    0 2px 6px rgba(39, 39, 37, 0.04),
    0 40px 80px -30px rgba(52, 58, 40, 0.32);
}

/* Sections */
.section { padding: var(--section) 0 0; }
.section-tight { padding-top: clamp(80px, 10vw, 128px); }
.band {
  margin-top: var(--section);
  padding: clamp(88px, 11vw, 136px) 0;
  background: var(--paper-band);
}
.band + .section { padding-top: var(--section); }
.head { margin-bottom: clamp(36px, 5vw, 56px); }
.head p { margin-top: 18px; max-width: 520px; color: var(--body); }
.head-center { text-align: center; }
.head-center p { margin-left: auto; margin-right: auto; }

/* Photo cards */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photo-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tint);
  isolation: isolate;
}
.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 24, 20, 0.62) 0%, rgba(24, 24, 20, 0.28) 34%, rgba(24, 24, 20, 0) 58%);
  z-index: 1;
}
.photo-text { position: relative; z-index: 2; padding: 24px 24px 0; color: #fffefa; }
.photo-text h3 { font-size: 19px; font-weight: 580; }
.photo-text p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: rgba(255, 254, 250, 0.86); max-width: 300px; }
@media (hover: hover) { .photo-card:hover img { transform: scale(1.03); } }

/* Feature rows */
.rows { display: grid; gap: 28px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.row-wide { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.row-wide .panel { aspect-ratio: 1 / 1; padding: 8%; }
.row-text { max-width: 470px; }
.row-text h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 360; letter-spacing: -0.03em; line-height: 1.15; }
.row-text p { margin-top: 16px; color: var(--body); font-size: 16px; line-height: 1.6; }
.row-title { font-size: clamp(32px, 3.6vw, 46px); }
.row-title + p { margin-top: 20px; }

.panel {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10%;
  background: #8f9576 var(--panel) center / cover no-repeat;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 254, 250, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(96, 106, 70, 0.34), rgba(60, 68, 42, 0.5));
  mix-blend-mode: multiply;
}
.panel > * { min-width: 0; max-width: 100%; }
.shot {
  position: relative;
  margin: 0;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(39, 39, 37, 0.06), 0 24px 48px -20px rgba(28, 32, 20, 0.45);
}
.shot-narrow { width: 78%; }

.card {
  position: relative;
  width: 100%;
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.96);
  padding: 20px 20px 16px;
  box-shadow: 0 0 0 1px rgba(39, 39, 37, 0.06), 0 24px 48px -20px rgba(28, 32, 20, 0.45);
}
.card-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--olive);
  background: var(--tint);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 14px;
}
.card-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.kbd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.kbd-list li { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.kbd-list span { margin-left: 8px; }
.kbd-list em { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--olive); }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 -1.5px 0 rgba(39, 39, 37, 0.1), 0 0 0 1px rgba(39, 39, 37, 0.1);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
}
.term-card pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre;
  overflow-x: auto;
}
.t-dim { color: var(--ink-soft); }
.t-key { color: var(--olive); font-weight: 600; }

.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 22px; color: var(--body); font-size: 15.5px; line-height: 1.5; }
.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  opacity: 0.75;
}
.facts strong { color: var(--ink); font-weight: 560; }

/* Privacy */
.tint-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tint-card { background: var(--tint); border-radius: 16px; padding: 22px 20px 24px; }
.tint-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tint-strong);
  margin-bottom: 34px;
}
.tint-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--olive); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tint-card h3 { font-size: 16px; }
.tint-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--body); }

/* Price */
.price-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card-soft);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
}
.price-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 26px; }
.price-name { font-weight: 580; font-size: 16px; }
.price-num { margin-top: 6px; font-size: 40px; font-weight: 360; letter-spacing: -0.035em; line-height: 1; }
.price-num span { font-size: 15px; letter-spacing: 0; color: var(--ink-soft); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table caption { text-align: left; font-family: var(--mono); font-size: 12.5px; color: var(--body); padding: 0 0 10px; }
.price-table th,
.price-table td { text-align: left; padding: 14px 12px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: 13px; font-weight: 560; color: var(--ink-soft); padding-top: 10px; padding-bottom: 10px; }
.price-table tbody th { font-weight: 560; white-space: nowrap; }
.price-table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td:last-child { color: var(--body); }

/* Why */
.soft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.soft-card { background: var(--card-soft); border-radius: 16px; padding: 24px 24px 28px; }
.soft-card p { margin-top: 10px; font-size: 15px; color: var(--body); line-height: 1.55; }
.stats { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: center; }
.stat { display: block; font-size: clamp(40px, 4.6vw, 56px); font-weight: 320; letter-spacing: -0.04em; line-height: 1.05; }
.stat-label { display: block; margin-top: 8px; font-size: 15px; color: var(--body); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 460;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.6px solid var(--ink-soft);
  border-bottom: 1.6px solid var(--ink-soft);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 220ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--body); }

/* Closing */
.closing {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) var(--gutter);
  text-align: center;
  color: var(--paper);
  background: #6f765a var(--panel) center / cover no-repeat;
}
.closing::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(70, 78, 50, 0.45), rgba(40, 46, 28, 0.6)); }
.closing > * { position: relative; }
.closing p { margin: 16px auto 32px; max-width: 420px; color: rgba(255, 254, 250, 0.86); }

/* Footer */
.footer { padding: clamp(72px, 9vw, 112px) 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 32px; background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.brand-sm { font-size: 18px; }
.brand-sm .mark { width: 20px; height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; color: var(--body); }
.footer-links a:hover { color: var(--ink); }
.footer-note { width: 100%; font-size: 13.5px; color: var(--ink-soft); }

/* Entrances. Blocks rise out of a soft blur; headings do the same one word
   at a time (app.js wraps each word in .w). --d delays an element, --i is the
   word's place in its heading. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(6px);
  transition:
    opacity 1000ms var(--ease),
    transform 1200ms var(--ease),
    filter 1000ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

.split .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.42em, 0);
  filter: blur(10px);
  transition:
    opacity 900ms var(--ease),
    transform 1150ms var(--ease),
    filter 1000ms var(--ease);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 60ms);
}
.split.in .w { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .split .w { transform: none; filter: none; transition: opacity 500ms ease; transition-delay: 0ms; }
  .photo-card img { transition: none; }
}
@media (scripting: none) { .reveal { opacity: 1; transform: none; filter: none; } }

/* Narrower screens */
@media (max-width: 1080px) {
  .tint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid,
  .row,
  .row-wide,
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .window { width: 100%; }
  .hero-glow { inset: -12% -10%; }
  .row .panel { aspect-ratio: 5 / 4; padding: 8%; }
  .shot-narrow { width: 62%; }
  .row-text { max-width: 560px; }
  .photo-grid,
  .soft-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-card { aspect-ratio: 5 / 4; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .tint-grid,
  .stats { grid-template-columns: minmax(0, 1fr); }
  .row .panel { aspect-ratio: 4 / 5; }
  .shot-narrow { width: 86%; }
  .term-card pre { font-size: 11px; }
  .window { width: 175%; }
  .hero-art { margin-right: calc(var(--gutter) * -1); }
  .row .panel { aspect-ratio: auto; padding: 40px 14px; }
  .row-wide .panel { aspect-ratio: auto; padding: 40px 12px; }
  .shot-narrow { width: 88%; }
  .head-center h2 br { display: none; }
  .head-center h2 { text-wrap: balance; }
  .tint-icon { margin-bottom: 18px; }
  .term-card { padding: 16px 14px 12px; }
  .nav-inner { padding: 0 10px 0 20px; height: 58px; }
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; border-top: 1px solid var(--line); padding: 12px 0; }
  .price-table th,
  .price-table td { border: 0; padding: 0; }
  .price-table td:last-child { grid-column: 1 / -1; font-size: 14px; }
  .price-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-inner { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
