:root {
    --canvas: #f4f0e9;
    --ink: #1c211e;
    --muted: #6e756f;
    --line: rgba(28, 33, 30, 0.14);
    --blue: #dbe9ff;
    --coral: #e8eef7;
    --lime: #e8eef7;
    --green: #203c66;
    --white: #fffdf9;
    --content: min(1180px, calc(100% - 64px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::selection { background: #bcd5ff; color: var(--ink); }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #2b6fff; outline-offset: 4px; border-radius: 4px; }

img { display: block; max-width: 100%; }

.site-shell { overflow: hidden; }

.site-header {
    width: var(--content);
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.brand-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 8px;
}

.site-nav { display: flex; align-items: center; gap: 28px; color: #59625a; font-size: 0.9rem; }
.site-nav a { transition: color 180ms ease, transform 180ms ease; }
.site-nav a:hover { color: var(--ink); transform: translateY(-1px); }
.site-nav .nav-cta { color: var(--white); background: var(--ink); padding: 11px 16px; border-radius: 999px; }
.site-nav .nav-cta:hover { color: var(--white); transform: translateY(-2px); }

main { width: var(--content); margin: 0 auto; }

.legal-page { max-width: 820px; padding: 86px 0 110px; }
.legal-page section { margin: 0; }
.legal-page h2 { margin-bottom: 22px; font-size: clamp(3rem, 6vw, 5rem); }
.legal-page h3 { margin: 52px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 400; line-height: 1.05; }
.legal-page p, .legal-page li { color: #5f6860; font-size: 0.98rem; line-height: 1.75; }
.legal-page strong { color: var(--ink); }
.legal-page a { color: #426dca; text-decoration: underline; text-decoration-color: rgba(66, 109, 202, 0.35); text-underline-offset: 3px; }
.legal-page ul { padding-left: 1.25rem; }

.hero {
    min-height: 0;
    padding: 48px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: #667267;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff735e; box-shadow: 0 0 0 4px rgba(255, 115, 94, 0.15); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.035em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 em, h2 em { color: #426dca; font-style: normal; }

.hero h1 { max-width: 660px; margin-bottom: 26px; font-size: clamp(3rem, 4.8vw, 4.8rem); line-height: 1.08; }
.hero-subtitle { max-width: 480px; margin-bottom: 34px; color: #59625a; font-size: 1.12rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 21px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button span { font-size: 1.1rem; line-height: 0; }
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28, 33, 30, 0.14); }
.button-dark { background: var(--ink); color: var(--white); }
.button-light { background: var(--white); color: var(--green); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #667267; font-size: 0.9rem; font-weight: 700; }
.text-link span { color: #426dca; font-size: 1.2rem; transition: transform 180ms ease; }
.text-link:hover span { transform: translateY(3px); }
.hero-note { margin: 22px 0 0; color: #7f877f; font-size: 0.76rem; }

.hero-visual { position: relative; min-height: 0; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 28px 12px; }
.hero-visual::before { content: ""; position: absolute; inset: 8% 9% 5% 11%; z-index: -2; border-radius: 45% 45% 38% 42%; background: #dfeafa; transform: rotate(-7deg); }
.visual-card { position: relative; width: 100%; border: 5px solid var(--white); border-radius: 24px; box-shadow: 0 16px 32px rgba(36, 47, 43, 0.12); overflow: hidden; }
.visual-card img { width: 100%; height: auto; }
.visual-card-main, .visual-card-front { width: 100%; }

.signal-bar { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--canvas); }
.signal-bar p { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0 28px; border-left: 1px solid var(--line); }
.signal-bar p:first-child { padding-left: 0; border-left: 0; }
.signal-bar strong { font-size: 0.9rem; letter-spacing: -0.02em; }
.signal-bar span { color: #7a817a; font-size: 0.84rem; }

.story-section { padding: 104px 0; }
.section-intro { display: grid; grid-template-columns: 1fr 1.45fr 0.8fr; align-items: end; gap: 32px; margin-bottom: 65px; }
.section-intro .eyebrow { align-self: start; margin-top: 12px; }
.section-intro h2, .gallery-heading h2, .final-cta h2 { margin-bottom: 0; font-size: clamp(2.4rem, 3.5vw, 3.6rem); line-height: 1.12; }
.section-intro > p:last-child, .gallery-heading > p { margin: 0; color: #687069; font-size: 0.98rem; line-height: 1.65; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 340px; padding: 30px; border-radius: 24px; display: flex; flex-direction: column; }
.feature-card-blue { background: var(--blue); }
.feature-card-coral { background: var(--coral); }
.feature-card-lime { background: var(--lime); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 40px; border-radius: 14px; background: rgba(255, 255, 255, 0.58); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-kicker { margin-bottom: 14px; color: #64716c; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.feature-card h3 { max-width: 280px; margin-bottom: 15px; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.feature-card > p:last-child { max-width: 280px; margin: auto 0 0; color: #59625a; font-size: 0.91rem; line-height: 1.6; }

.gallery-section { padding-bottom: 104px; }
.gallery-heading { display: grid; grid-template-columns: 1.35fr 0.65fr; align-items: end; gap: 30px; margin-bottom: 58px; }
.gallery-heading .eyebrow { margin-bottom: 18px; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 18px; }
.screenshot { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: #d5e4fc; box-shadow: 0 18px 40px rgba(36, 47, 43, 0.13); }
.screenshot:nth-child(2) { background: #ffd5ca; }
.screenshot:nth-child(3) { background: #e4edba; }
.screenshot:nth-child(4) { background: #e4def8; }
.screenshot-offset { transform: none; }
.screenshot img { width: 100%; aspect-ratio: 0.462; object-fit: cover; object-position: top; }
.screenshot figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 17px 17px; background: var(--white); }
.screenshot figcaption span { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }
.screenshot figcaption small { color: #7a817a; font-size: 0.7rem; }

.final-cta { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 40px; margin-bottom: 50px; padding: 76px 72px; border-radius: 28px; background: var(--green); color: var(--white); }
.eyebrow-light { color: #b4c6b5; }
.eyebrow-light .eyebrow-dot { background: #a6dc6c; box-shadow: 0 0 0 4px rgba(166, 220, 108, 0.15); }
.final-cta h2 em { color: #b5d4ff; }
.final-cta-action { max-width: 295px; justify-self: end; }
.final-cta-action p { margin-bottom: 22px; color: #c5d2c6; font-size: 0.94rem; line-height: 1.6; }

.site-footer { width: var(--content); margin: 0 auto; padding: 14px 0 42px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; color: #717971; font-size: 0.82rem; }
.site-footer .brand { color: var(--ink); }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 18px; justify-content: flex-end; }
.footer-links a:hover { color: var(--ink); }
.site-footer small { grid-column: 1 / -1; color: #979d97; font-size: 0.72rem; }

.sticky-cta, .sticky-cta[hidden] { display: none; }
.button:active { transform: scale(0.98); }
.screenshot-gallery:focus-visible { outline: 3px solid #426dca; outline-offset: 5px; }

@media (max-width: 900px) {
    :root { --content: min(100% - 40px, 680px); }
    .site-nav { gap: 16px; }
    .site-nav a:not(.nav-cta) { display: none; }
    .hero { padding: 40px 0 56px; grid-template-columns: 1fr; gap: 28px; }
    .hero-copy { max-width: 620px; }
    .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
    .section-intro, .gallery-heading { grid-template-columns: 1fr 1fr; }
    .section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -15px; }
    .section-intro h2 { grid-column: 1 / -1; }
    .section-intro > p:last-child { grid-column: 2; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card-coral { transform: none; }
    .screenshot-gallery { grid-template-columns: repeat(2, 1fr); max-width: 540px; }
    .screenshot-offset { transform: none; }
    .final-cta { grid-template-columns: 1fr; padding: 52px 38px; }
    .final-cta-action { justify-self: start; }
    .site-footer { grid-template-columns: 1fr auto; }
    .site-footer > p { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 560px) {
    :root { --content: calc(100% - 36px); }
    .site-header { padding: 20px 0; }
    .site-nav .nav-cta { padding: 9px 13px; font-size: 0.78rem; }
    .hero { padding: 32px 0 44px; }
    .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .button { width: fit-content; }
    .hero-note { font-size: 0.7rem; }
    .hero-visual { margin-top: 8px; gap: 12px; padding: 18px 0; }
    .hero-visual::before { inset: 8% 4% 7% 4%; }
    .visual-card { border-width: 5px; border-radius: 18px; }
    .signal-bar { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
    .signal-bar p, .signal-bar p:first-child { padding: 0; border-left: 0; }
    .story-section { padding: 105px 0 100px; }
    .legal-page { padding: 58px 0 88px; }
    .legal-page h2 { font-size: 3.2rem; }
    .section-intro, .gallery-heading { display: block; }
    .section-intro .eyebrow, .gallery-heading .eyebrow { margin-bottom: 20px; }
    .section-intro h2, .gallery-heading h2 { margin-bottom: 24px; font-size: 2.4rem; }
    .section-intro > p:last-child, .gallery-heading > p { max-width: 320px; }
    .feature-card { min-height: 300px; padding: 25px; }
    .feature-icon { margin-bottom: 28px; }
    .gallery-section { padding-bottom: 112px; }
    .screenshot-gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 24px; scrollbar-width: thin; }
    .screenshot { scroll-snap-align: start; }
    .screenshot { border-radius: 14px; }
    .screenshot figcaption { display: block; padding: 12px; }
    .screenshot figcaption span, .screenshot figcaption small { display: block; }
    .screenshot figcaption small { margin-top: 3px; }
    .screenshot-offset { transform: none; }
    .final-cta { margin-bottom: 32px; padding: 42px 27px; border-radius: 22px; }
    .final-cta h2 { font-size: 2.6rem; }
    .site-footer { display: flex; flex-wrap: wrap; padding-bottom: 92px; }
    .site-footer p { width: 100%; }
    .footer-links { margin-left: auto; }
    .site-footer small { width: 100%; }
    .sticky-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid rgba(255,255,255,0.14); background: rgba(29, 58, 43, 0.96); color: var(--white); backdrop-filter: blur(14px); }
    .sticky-cta { background: rgba(32, 60, 102, 0.97); padding-bottom: max(11px, env(safe-area-inset-bottom)); }
    .sticky-cta > span { font-size: 0.76rem; font-weight: 600; }
    .sticky-cta .button { min-height: 44px; padding: 0 13px; font-size: 0.75rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
