/* The marketing site. Reads only the --ar-* tokens from arboles-theme.css (copied in by scripts/marketing.sh). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ar-bg);
    color: var(--ar-ink);
    font-family: var(--ar-font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ar-root-ink); }
:focus-visible { outline: 2px solid var(--ar-root-fill); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ar-root-fill); color: var(--ar-on-accent); padding: 8px 16px; border-radius: var(--ar-r-pill); }
.muted { color: var(--ar-ink-soft); }

/* Header */
.bar { position: sticky; top: 0; z-index: 5; background: var(--ar-bar); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--ar-line); }
.bar-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ar-ink); text-decoration: none; font-family: var(--ar-font-serif); font-weight: 600; font-size: 22px; }
.bar-nav { display: flex; align-items: center; gap: 18px; }
.bar-nav > a:not(.btn) { color: var(--ar-ink-soft); text-decoration: none; font-weight: 500; font-size: 14px; }
.bar-nav > a:not(.btn):hover { color: var(--ar-ink); }
.theme { background: var(--ar-surface-2); color: var(--ar-ink); border: 0; border-radius: var(--ar-r-pill); padding: 6px 14px; font: 600 13px var(--ar-font-sans); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: var(--ar-r-pill); font: 600 14px/1 var(--ar-font-sans); text-decoration: none; cursor: pointer; transition: transform var(--ar-dur) var(--ar-ease), box-shadow var(--ar-dur) var(--ar-ease), background var(--ar-dur) var(--ar-ease); }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-primary { background: var(--ar-root-fill); color: var(--ar-on-accent); }
.btn-primary:hover { box-shadow: 0 12px 28px -12px var(--ar-root-fill); }
.btn-outline { border: 1px solid var(--ar-line-strong); color: var(--ar-ink); background: transparent; }
.btn-outline:hover { background: var(--ar-surface-2); }

/* Type */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 400 11px/1 var(--ar-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ar-root-ink); }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--ar-root); }
.display { margin: 0; font: 500 clamp(48px, 7vw, 104px)/.95 var(--ar-font-serif); letter-spacing: -.02em; }
.h2 { margin: 0 0 40px; font: 500 clamp(32px, 4.4vw, 54px)/1 var(--ar-font-serif); letter-spacing: -.02em; max-width: 18ch; }
/* Headings close on an italic turn: *text* in a content block title renders as <em>. */
.display em, .h2 em { color: var(--ar-root); font-style: italic; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ar-ink-soft); max-width: 46ch; margin: 24px 0 32px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; font-size: 13px; color: var(--ar-ink-soft); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
/* The promise dots cycle through the three brand voices. */
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--ar-canopy); }
.trust li:nth-child(3n+2)::before { background: var(--ar-kapok); }
.trust li:nth-child(3n)::before { background: var(--ar-root); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card { position: relative; margin: 0; }
.photo { aspect-ratio: 4 / 5; border-radius: var(--ar-r-lg); border: 1px solid var(--ar-line); box-shadow: var(--ar-shadow-hero); overflow: hidden; background: var(--ar-surface-2); }

/* Bands */
.band { background: var(--ar-surface); border-top: 1px solid var(--ar-line); border-bottom: 1px solid var(--ar-line); padding: clamp(64px, 8vw, 120px) 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--ar-bg); border: 1px solid var(--ar-line); border-radius: var(--ar-r-md); padding: 22px; }
.card h3 { margin: 0 0 6px; font: 600 18px var(--ar-font-serif); }
.card p { margin: 0; color: var(--ar-ink-soft); }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(64px, 8vw, 120px); }
.story .h2 { margin-bottom: 0; }
.story-copy p { margin: 0 0 16px; color: var(--ar-ink-soft); font-size: 17px; max-width: 52ch; }
.story-copy .ar-roots { margin-top: 28px; }

/* Plans */
.plans { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.interval { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 28px; border-radius: var(--ar-r-pill); background: var(--ar-surface-2); }
.interval[hidden] { display: none; }
.interval button { border: 0; background: transparent; color: var(--ar-ink-soft); font: 600 13px var(--ar-font-sans); padding: 7px 16px; border-radius: var(--ar-r-pill); cursor: pointer; }
.interval button[aria-pressed="true"] { background: var(--ar-surface); color: var(--ar-ink); box-shadow: var(--ar-shadow-segment); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); justify-content: center; gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; background: var(--ar-surface); border: 1px solid var(--ar-line); border-radius: var(--ar-r-lg); padding: 28px; box-shadow: var(--ar-shadow-card); }
.plan-featured { border-color: var(--ar-root-fill); }
.plan-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.plan-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--ar-r-pill); background: var(--ar-root-soft); color: var(--ar-root-ink); font: 700 11px/1 var(--ar-font-sans); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.plan-tagline { font: 400 11px/1.4 var(--ar-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ar-ink-soft); }
.plan h3 { margin: 0; font: 500 30px/1.1 var(--ar-font-serif); }
.plan > p { margin: 0; }
.price { display: grid; gap: 2px; }
.amount { font: 500 40px/1 var(--ar-font-serif); letter-spacing: -.02em; }
.amount-pending { font-size: 28px; }
.per { font: 400 11px var(--ar-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ar-ink-soft); }
.trial { color: var(--ar-canopy-ink); font-weight: 600; font-size: 13px; }
.grants { list-style: none; margin: 4px 0 8px; padding: 14px 0 0; border-top: 1px solid var(--ar-line); display: grid; gap: 8px; flex: 1; font-size: 14px; }
.grants li { display: flex; gap: 10px; align-items: baseline; }
.grants li::before { flex-shrink: 0; width: 14px; font-weight: 700; }
.grants .yes::before { content: "✓"; color: var(--ar-canopy-ink); }
.grants .no { color: var(--ar-ink-soft); text-decoration: line-through; text-decoration-color: var(--ar-line-strong); }
.grants .no::before { content: "–"; color: var(--ar-ink-soft); }

/* Quote + footer */
.quote .wrap { display: grid; justify-items: start; gap: 28px; }
blockquote { margin: 0; max-width: 28ch; font: italic 500 clamp(26px, 3vw, 40px)/1.2 var(--ar-font-serif); }
.foot { background: var(--ar-deep); color: var(--ar-on-deep); padding: 40px 0; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-name { font: 600 22px var(--ar-font-serif); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav[hidden] { display: none; }
.foot-copy { width: 100%; color: var(--ar-on-deep-soft); font-size: 12.5px; }
.foot-copy:empty { display: none; }
.lead p, blockquote p { margin: 0; }
.foot a { color: var(--ar-on-deep); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .hero, .grid, .plan-grid, .story { grid-template-columns: 1fr; }
    .bar-nav > a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
    /* A phone keeps the way in and the language: the hero carries the sign-up, the theme follows the OS. */
    .bar-nav { gap: 10px; }
    .bar-nav [data-cta="signup"], #theme-toggle { display: none; }
}

[hidden] { display: none !important; }
