:root {
  --color-bg: #E0EBD9;
  --color-surface: #FBFCF8;
  --color-surface-2: #EEF2EA;
  --color-stone: #D6DFCF;
  --color-ink: #1C221A;
  --color-ink-muted: #555E50;
  --color-accent: #3E4A38;
  --color-accent-ink: #FFFFFF;
  --color-accent-soft: #DCE6D3;
  --color-ok: #4E7A3C;
  --color-ok-soft: #E2EDD9;
  --color-warn: #C4622D;
  --color-warn-soft: #FBE6D6;
  --color-alert: #B4502C;
  --color-alert-soft: #F6DDD2;
  --color-ok-ink: #335226;
  --color-warn-ink: #7F3F12;
  --color-alert-ink: #8A2E14;
  --color-accent-2: #899880;
  --color-night: #1C221A;
  --color-night-2: #2C3529;
  --color-night-ink: #FFFFFF;
  --color-night-muted: #AAB3A3;
  --color-alert-on: #FFFFFF;
  --color-lime: #F5FE8E;
  --color-lime-ink: #3B4010;
  --color-lime-line: #E3EC78;
  --color-brand: #899880;
  --color-lime-2: #FAFFC2;
  --color-lime-soft: #FCFFE0;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-ui: "Onest", system-ui, sans-serif;
  --size-xs: 12px;
  --size-sm: 14px;
  --size-md: 16px;
  --size-lg: 20px;
  --size-xl: 28px;
  --size-2xl: 40px;
  --size-3xl: 60px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-card: 18px;
  --radius-block: 26px;
  --radius-frame: 34px;
  --radius-pill: 999px;
  --motion-fast: 240ms;
  --motion-slow: 400ms;
  --motion-easing: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
/* Capehold landing page. Colours come from @estate/tokens, placed just above this file at build time. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --wrap: min(1320px, calc(100% - 48px));
  --side: max(24px, calc((100vw - 1320px) / 2));
  --hair: rgb(28 34 26 / 0.12);
  --hair-light: rgb(255 255 255 / 0.16);
  --lemon-deep: #EEF238;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --lift: 0 2px 6px rgb(28 34 26 / 0.05), 0 30px 70px -24px rgb(28 34 26 / 0.32);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--color-bg); color: var(--color-ink); font: 400 17px/1.55 "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
figure, h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 12px; background: var(--color-night); color: var(--color-night-ink); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-family: "Archivo", "Onest", sans-serif; font-stretch: 112%; font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.9vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.26rem); line-height: 1.5; color: var(--color-ink-muted); text-wrap: pretty; }
.kicker { display: flex; gap: 12px; align-items: baseline; margin-bottom: 22px; font-size: 0.94rem; font-weight: 500; color: var(--color-accent); }
.kicker .num { color: var(--color-ink-muted); }
.note { font-size: 0.92rem; color: var(--color-ink-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform 240ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { width: 19px; height: 19px; transition: transform 240ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }
.btn-ink { background: var(--color-night); color: var(--color-lime); }
.btn-ink:hover { background: var(--color-night-2); }
.btn-line { border-color: rgb(28 34 26 / 0.3); }
.btn-line:hover { border-color: var(--color-ink); }
.btn-lime { background: var(--color-lime); color: var(--color-lime-ink); }

/* Top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; transition: background 300ms var(--ease), box-shadow 300ms var(--ease); }
.bar.stuck { background: rgb(224 235 217 / 0.82); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--hair); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: block; color: var(--color-accent); flex: none; }
.logo svg { width: 132px; height: auto; }
.links { display: flex; gap: 26px; margin-left: 18px; }
.links a, .signin { font-size: 0.96rem; text-decoration: none; }
.links a:hover, .signin:hover { text-decoration: underline; text-underline-offset: 5px; }
.bar-end { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 5px 7px; border-radius: 8px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em; color: var(--color-ink-muted); text-decoration: none; }
.langs a:hover { color: var(--color-ink); }
.langs a[aria-current] { color: var(--color-ink); background: rgb(28 34 26 / 0.08); }

/* Hero: the gradient of the app icon, from pale sage to lemon */
.hero { position: relative; overflow: hidden; padding-top: clamp(104px, 12vh, 150px);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg) 44%, #E6EDB4 68%, var(--color-lime) 84%, var(--lemon-deep) 100%); }
.eyebrow { margin-bottom: clamp(16px, 2vw, 28px); font: 500 1rem/1.4 "Onest", system-ui, sans-serif; letter-spacing: 0; color: var(--color-accent); }
/* One line in every language: 10.3em is the width of the longest sentence (English). */
.slogan { --slogan-em: 10.3; font-family: "Archivo", "Onest", sans-serif; font-weight: 500; font-size: min(clamp(1.75rem, min(5.7vw, 10.5vh), 6.5rem), calc((100vw - 48px) / var(--slogan-em))); line-height: 1; letter-spacing: -0.05em; font-stretch: 116%; white-space: nowrap; }
.slogan span { display: inline-block; }
.js .slogan span { animation: rise 900ms var(--ease) both; }
.js .slogan span:last-child { animation-delay: 110ms; }
.hero-side { display: grid; grid-template-columns: minmax(0, 40rem) auto; gap: 22px 56px; align-items: start; margin-top: clamp(22px, 3.4vh, 40px); }
.hero-act { display: grid; gap: 12px; justify-items: end; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.stage { position: relative; margin-top: clamp(32px, 5vh, 60px); margin-bottom: -7vw; }
.window { overflow: hidden; border-radius: 22px; background: var(--color-surface); box-shadow: 0 0 0 1px var(--hair), var(--lift); }
.window img { width: 100%; }
.js .stage .window { animation: rise 1100ms 180ms var(--ease) both; }
.phone { padding: 7px; border-radius: 40px; background: var(--color-night); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, var(--lift); }
.phone img { width: 100%; border-radius: 33px; }
.phone-hero { position: absolute; right: clamp(-6px, 2vw, 40px); bottom: 12%; width: clamp(150px, 19vw, 276px); }
.chip-float { position: absolute; left: clamp(-8px, -1vw, 0px); bottom: 24%; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 20px;
  background: var(--color-surface); box-shadow: 0 0 0 1px var(--hair), var(--lift); font-size: 0.86rem; color: var(--color-ink-muted); }
.chip-float b { display: block; font-size: 0.98rem; font-weight: 500; color: var(--color-ink); }
.dot { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--color-lime); color: var(--color-lime-ink); }
.dot .tick { width: 20px; height: 20px; }

/* The problem */
.problem { position: relative; z-index: 1; padding: clamp(84px, 11vw, 168px) 0; background: var(--color-night); color: var(--color-night-ink); }
.problem .kicker { color: var(--color-lime); }
.problem h2 { max-width: 15em; font-size: clamp(2.6rem, 6.6vw, 6.4rem); line-height: 0.98; letter-spacing: -0.04em; }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(52px, 7vw, 104px); }
.problem-grid article { padding-top: 20px; border-top: 1px solid var(--hair-light); }
.problem-grid p { margin-top: 10px; color: var(--color-night-muted); text-wrap: pretty; }

/* The three chapters */
.chapter { padding: clamp(84px, 10vw, 156px) 0; overflow: clip; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.chapter-grid.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.chapter-copy h2 { font-size: clamp(2.2rem, 4.1vw, 3.9rem); }
.chapter-copy .lead { margin-top: 22px; }
.points { display: grid; gap: 13px; margin-top: 30px; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.tick { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--color-accent); }
.bleed-right { width: calc(100% + var(--side) + 40px); border-radius: 22px 0 0 22px; }
.chapter-lime { background: var(--color-lime); color: var(--color-lime-ink); }
.chapter-lime .lead, .chapter-lime .kicker, .chapter-lime .kicker .num, .chapter-lime .tick { color: var(--color-lime-ink); }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.4vw, 32px); }
.phones .phone { width: min(46%, 300px); }
.phone-low { margin-top: 72px; }

/* Also included */
.details { padding: clamp(84px, 10vw, 150px) 0; background: var(--color-surface); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px); margin-top: clamp(44px, 5vw, 72px); }
.tile { display: grid; gap: 18px; align-content: start; }
.tile-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-lime); color: var(--color-lime-ink); }
.tile-icon svg { width: 22px; height: 22px; }
.tile p { margin-top: 8px; color: var(--color-ink-muted); font-size: 0.98rem; text-wrap: pretty; }

/* Pricing */
.pricing { padding: clamp(64px, 8vw, 120px) 0; }
.pricing-panel { padding: clamp(32px, 6vw, 84px); border-radius: 30px; background: var(--color-night); color: var(--color-night-ink); }
.pricing .kicker { color: var(--color-lime); }
.pricing .lead { max-width: 40em; margin-top: 20px; color: var(--color-night-muted); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 56px); }
.tier { display: grid; gap: 10px; align-content: start; padding: 26px; border: 1px solid var(--hair-light); border-radius: 22px; }
.price { font: 500 clamp(2.2rem, 3.6vw, 3.2rem)/1.05 "Archivo", "Onest", sans-serif; font-stretch: 112%; letter-spacing: -0.03em; color: var(--color-lime); }
.price small { margin-left: 8px; font: 400 0.95rem "Onest", sans-serif; letter-spacing: 0; color: var(--color-night-muted); }
.tier-detail { color: var(--color-night-muted); text-wrap: pretty; }
.pricing-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: clamp(28px, 3vw, 40px); }
.pricing-foot .note { flex: 1 1 280px; color: var(--color-night-muted); }

/* Questions */
.faq { padding: clamp(84px, 10vw, 150px) 0; background: var(--color-surface); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
details { border-top: 1px solid var(--hair); }
details:last-child { border-bottom: 1px solid var(--hair); }
summary { display: flex; justify-content: space-between; gap: 22px; align-items: center; min-height: 72px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 18px; height: 18px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; background: var(--color-accent); transition: transform 280ms var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
details p { max-width: 42em; padding-bottom: 24px; color: var(--color-ink-muted); text-wrap: pretty; }

/* Last call */
.final { position: relative; overflow: hidden; padding: clamp(100px, 14vw, 210px) 0; background: linear-gradient(180deg, var(--color-bg), var(--color-lime) 62%, var(--lemon-deep)); }
.final-house { position: absolute; right: -8vw; bottom: -14vw; width: min(62vw, 860px); height: auto; color: rgb(62 74 56 / 0.2); }
.final-in { position: relative; }
.final h2 { max-width: 13em; font-size: clamp(2.7rem, 7vw, 6.8rem); line-height: 0.98; letter-spacing: -0.04em; }
.final .lead { margin: 24px 0 32px; color: var(--color-lime-ink); }
.final .note { margin-top: 14px; color: var(--color-lime-ink); }

/* Contact form */
.lead-form { display: grid; gap: 10px; width: min(100%, 31rem); }
.lead-row { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--color-surface); box-shadow: 0 0 0 1px var(--hair); }
.lead-row:focus-within { box-shadow: 0 0 0 2px var(--color-accent); }
.lead-input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--color-ink); font: inherit; font-size: 1rem; }
.lead-input:focus { outline: 0; }
.lead-input::placeholder { color: var(--color-ink-muted); }
.lead-form .btn { min-height: 48px; flex: none; cursor: pointer; font-family: inherit; }
.lead-form .btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.lead-form.sent .lead-row, .lead-form.sent .form-privacy { display: none; }
.lead-form [data-status]:empty { display: none; }
.form-privacy a { color: inherit; text-underline-offset: 3px; }
.lead-form [data-tone="ok"] { font-size: 1.08rem; font-weight: 500; color: var(--color-ink); }
.lead-form [data-tone="error"] { font-weight: 500; color: var(--color-alert-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Guides */
.article { padding: clamp(120px, 13vw, 170px) 0 clamp(64px, 8vw, 110px); }
.article-wrap { max-width: 46rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 0.92rem; color: var(--color-ink-muted); }
.crumbs a { text-underline-offset: 4px; }
.article h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; }
.article-date { margin-top: 16px; font-size: 0.92rem; color: var(--color-ink-muted); }
.article .lead { margin-top: 22px; }
.article section { margin-top: clamp(40px, 5vw, 60px); }
.article section h2, .toc h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: -0.025em; }
.article section p { margin-top: 16px; text-wrap: pretty; }
.article section ul { display: grid; gap: 10px; margin-top: 18px; padding-left: 22px; list-style: disc; }
.toc { margin-top: 36px; padding: 24px 26px; border-radius: 20px; background: var(--color-surface); }
.toc h2 { font-size: 1.1rem; letter-spacing: -0.01em; }
.toc ol { display: grid; gap: 8px; margin-top: 14px; padding-left: 20px; list-style: decimal; }
.toc a { text-underline-offset: 4px; }
.table-wrap { margin-top: 20px; overflow-x: auto; border-radius: 16px; background: var(--color-surface); }
.table-wrap table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.table-wrap th { font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.related { display: grid; gap: 10px; margin-top: clamp(40px, 5vw, 60px); }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px; border-radius: 16px; background: var(--color-surface); font-weight: 500; text-decoration: none; }
.related .arrow, .guide-more .arrow { width: 19px; height: 19px; flex: none; }
.guide-list { display: grid; gap: 12px; margin-top: 40px; }
.guide-list a { display: grid; gap: 10px; padding: 26px; border-radius: 22px; background: var(--color-surface); text-decoration: none; }
.guide-list h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.guide-list p { color: var(--color-ink-muted); text-wrap: pretty; }
.guide-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--color-accent); }
.missing { display: grid; justify-items: start; align-content: center; gap: 22px; min-height: 100vh; padding: 24px max(24px, 12vw); }

/* Footer */
.foot { padding: 52px 0 40px; background: var(--color-night); color: var(--color-night-muted); font-size: 0.94rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.foot-links { display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--color-night-ink); text-decoration: underline; text-underline-offset: 4px; }
.foot .logo { color: var(--color-lime); margin-bottom: 12px; }
.foot .langs a { color: var(--color-night-muted); }
.foot .langs a[aria-current], .foot .langs a:hover { color: var(--color-night-ink); background: rgb(255 255 255 / 0.1); }
.rights a { margin-left: 12px; color: inherit; text-underline-offset: 3px; }
.rights { flex-basis: 100%; padding-top: 22px; border-top: 1px solid var(--hair-light); font-size: 0.86rem; }

/* Phones keep the way in at hand */
.sticky-cta { display: none; }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .links { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero-side { grid-template-columns: minmax(0, 1fr); }
  .hero-act { justify-items: start; }
  .lead-form { width: 100%; }
  .actions { justify-content: flex-start; }
  .chip-float { display: none; }
  .chapter-grid, .chapter-grid.flip, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .chapter-grid.flip .phones { order: 2; }
  .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .bleed-right { width: calc(100% + 24px); }
}
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 32px); --side: 16px; }
  .bar-in { height: 64px; gap: 12px; }
  .bar .langs, .signin { display: none; }
  .logo svg { width: 112px; }
  .hero-act, .hero-side .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .window { border-radius: 14px; }
  .stage { margin-top: 28px; margin-bottom: -44px; padding-top: 28px; }
  .stage .window { width: 140%; max-width: none; }
  .phone-hero { right: 0; bottom: 60px; width: 36%; }
  .phone { padding: 5px; border-radius: 30px; }
  .phone img { border-radius: 25px; }
  .bleed-right { width: calc(100% + 16px); border-radius: 14px 0 0 14px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .phone-low { margin-top: 40px; }
  .pricing-panel { border-radius: 22px; }
  .pricing-foot .btn { width: 100%; }
  .lead-row { flex-direction: column; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .lead-row:focus-within { box-shadow: none; }
  .lead-input { flex: none; width: 100%; min-height: 54px; background: var(--color-surface); box-shadow: 0 0 0 1px var(--hair); }
  .lead-input:focus { box-shadow: 0 0 0 2px var(--color-accent); }
  .lead-form .btn { width: 100%; min-height: 54px; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; transform: translateY(140%); transition: transform 320ms var(--ease); }
  .sticky-cta.on { transform: none; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.28), var(--lift); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
