:root {
    --brand: #FFAB00;
    --brand-deep: #E58A00;
    --brand-ink: #A35A00;
    --teal: #14A08F;
    --coral: #F2553C;
    --navy: #1F2A44;
    --ios-green: #34C759;
    --ios-red: #FF3B30;
    --ink: #1d1d1f;
    --ink-soft: #6e6e73;
    --canvas: #fbfaf7;
    --cream: #FBF3E4;
    --hairline: rgba(0,0,0,0.08);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
    background: #ffffff;
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
}

::selection { background: rgba(255,171,0,0.28); }

.display { font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.display-md { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.eyebrow { font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; font-size: 13px; }
.text-brand { color: var(--brand-ink); }
.num { font-variant-numeric: tabular-nums; }

.gradient-text {
    background: linear-gradient(120deg, #FF9500 0%, #F2553C 45%, #14A08F 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 9s ease-in-out infinite;
}
.gradient-text-brand {
    background: linear-gradient(120deg, #E58A00 0%, #FFB830 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-bg {
    position: relative;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,171,0,0.16) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 30%, rgba(242,85,60,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 15% 40%, rgba(20,160,143,0.07) 0%, transparent 60%),
        linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.glass-nav {
    background: rgba(255,252,246,0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background-color .3s ease;
}
.glass-nav.scrolled { border-bottom-color: var(--hairline); background: rgba(255,252,246,0.88); }

.btn-apple {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--ink); color: #fff;
    font-weight: 500; border-radius: 980px;
    padding: 12px 22px; font-size: 15px; letter-spacing: -0.01em;
    transition: transform .25s ease, background-color .25s ease;
    white-space: nowrap;
}
.btn-apple:hover { background: #2a2a2c; transform: translateY(-1px); }
.btn-apple-lg { padding: 14px 28px; font-size: 17px; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--brand-ink); font-weight: 500; font-size: 17px;
    transition: opacity .2s;
}
.btn-ghost:hover { opacity: 0.7; }
.lang-switch {
    font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
    padding: 4px 9px; border-radius: 999px;
    border: 1px solid var(--hairline); color: var(--ink-soft);
    transition: color .2s, border-color .2s;
}
.lang-switch:hover { color: var(--ink); border-color: rgba(0,0,0,0.2); }

.section-dark { background: #0d0d0f; color: #f5f5f7; }
.section-dark-soft { background: #1d1d1f; color: #f5f5f7; }

/* ---------- App screenshots ---------- */
.phone-shot {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 44px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 12px 24px -6px rgba(0,0,0,0.10),
        0 60px 100px -25px rgba(0,0,0,0.26);
}
.phone-shot-dark {
    background: #000;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.10),
        0 12px 24px -6px rgba(0,0,0,0.5),
        0 60px 100px -25px rgba(0,0,0,0.8);
}

/* Hero: three phones, the centre one forward */
.hero-trio {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: 920px;
    margin-inline: auto;
}
.hero-trio .phone-shot { flex: 0 1 300px; max-width: 300px; }
.hero-trio .side-shot {
    flex-basis: 250px; max-width: 250px;
    margin-bottom: 36px;
    opacity: .96;
}
.hero-trio .side-left  { margin-right: -40px; transform: rotate(-4deg); }
.hero-trio .side-right { margin-left: -40px;  transform: rotate(4deg); }
.hero-trio .center-shot { position: relative; z-index: 2; }
@media (max-width: 640px) {
    .hero-trio .side-shot { display: none; }
    .hero-trio .center-shot { max-width: 260px; }
}

.hero-shot-wrap { position: relative; }
.hero-shot-wrap::after {
    content: "";
    position: absolute; left: 8%; right: 8%; bottom: -6%; height: 22%;
    background: rgba(120,70,0,0.16);
    filter: blur(48px); border-radius: 50%; z-index: -1;
}

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--ink-soft);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.pill-brand { background: rgba(255,171,0,0.14); border-color: rgba(255,171,0,0.30); color: var(--brand-ink); }
.pill-teal  { background: rgba(20,160,143,0.10); border-color: rgba(20,160,143,0.22); color: #0B7A6D; }
.pill-coral { background: rgba(242,85,60,0.10); border-color: rgba(242,85,60,0.22); color: #C23A22; }
.pill-navy  { background: rgba(31,42,68,0.08); border-color: rgba(31,42,68,0.16); color: var(--navy); }
.pill-on-dark { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.pill-pro { background: rgba(255,171,0,0.14); border: 1px solid rgba(255,171,0,0.32); color: #FFC24D; }

.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }

.reveal {
    opacity: 0; transform: translateY(36px);
    transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.feature-card {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: 28px; padding: 32px;
    transition: transform .35s ease, box-shadow .35s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -25px rgba(80,50,0,0.22); }

/* Pillars (wallet / category / budget) */
.pillar {
    border-radius: 28px; padding: 28px;
    position: relative; overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
}
.pillar:hover { transform: translateY(-4px); }
.pillar-brand { background: linear-gradient(160deg, #FFEBC2 0%, #FFF8EA 100%); }
.pillar-teal  { background: linear-gradient(160deg, #D3F1EC 0%, #F0FBF9 100%); }
.pillar-coral { background: linear-gradient(160deg, #FFE0D9 0%, #FFF5F2 100%); }
.pillar-navy  { background: linear-gradient(160deg, #DFE4EF 0%, #F5F7FB 100%); }

.privacy-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px; padding: 28px;
    transition: background-color .3s ease, border-color .3s ease;
}
.privacy-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }

.orb {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.55;
    pointer-events: none; z-index: 0;
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 44s linear infinite; }
.marquee-track-reverse { animation: marquee-reverse 52s linear infinite; }
.marquee-mask:hover .marquee-track { animation-play-state: paused; }
.marquee-mask {
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Lifestyle photo slots */
.photo-slot {
    position: relative; overflow: hidden; border-radius: 28px;
    background:
        radial-gradient(ellipse 70% 60% at 25% 30%, rgba(255,171,0,0.22) 0%, transparent 65%),
        radial-gradient(ellipse 60% 60% at 80% 70%, rgba(20,160,143,0.16) 0%, transparent 65%),
        linear-gradient(140deg, #f7efe2 0%, #fbf8f3 100%);
    display: flex; align-items: center; justify-content: center;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot-full { border-radius: 0; }
/* width:100% is load-bearing — with aspect-ratio alone, max-height caps the
   height and the browser shrinks the WIDTH to keep the ratio. */
.band-21x9 { width: 100%; aspect-ratio: 21 / 9; max-height: 620px; }
.band-16x9 { width: 100%; aspect-ratio: 16 / 9; max-height: 560px; }
@media (max-width: 700px) { .band-21x9, .band-16x9 { aspect-ratio: 4 / 3; } }
.photo-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 28px 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.62) 55%, rgba(0,0,0,0.28) 85%, transparent 100%);
    color: #fff; z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 2px 14px rgba(0,0,0,0.35);
}

/* ---------- Widget mockups (dark) ---------- */
.widget-gallery {
    display: flex; gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 36px 24px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.widget-gallery::-webkit-scrollbar { display: none; }
.widget-mock {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: 190px; min-height: 190px;
    border-radius: 30px; padding: 18px;
    background: linear-gradient(160deg, #2c2c2e 0%, #1c1c1e 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; gap: 10px;
    color: #fff;
}
.widget-mock.wide { width: 400px; max-width: 100%; }
.pro-block .grid > * { min-width: 0; }
@media (max-width: 767px) { .widget-mock.wide { width: 100%; } }
.widget-title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.widget-row {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: rgba(255,255,255,0.9); line-height: 1.25;
}
.widget-row .amt { margin-left: auto; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.6); }
.widget-emoji {
    flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.widget-day {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.45);
}
.widget-day b { font-size: 15px; color: #fff; font-weight: 600; }
.widget-day i { width: 6px; height: 6px; border-radius: 999px; background: transparent; }
.widget-lock {
    width: 170px; min-height: 0; border-radius: 22px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding: 14px 16px;
}

.pro-block {
    border-radius: 32px; padding: 36px;
    background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 640px) { .pro-block { padding: 26px 20px; border-radius: 26px; } }

kbd.keycap {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; padding: 7px 10px;
    font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #f2f2f5 100%);
    border: 1px solid rgba(0,0,0,0.10); border-bottom-width: 2px;
    border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.compare-row {
    display: grid; grid-template-columns: 1fr 96px 78px;
    align-items: center; gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 15px;
}
.compare-row:last-child { border-bottom: none; }
@media (max-width: 640px) {
    .compare-row { grid-template-columns: 1fr 64px 44px; gap: 8px; font-size: 14px; padding: 12px 2px; }
}
.compare-head {
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.tick { text-align: center; color: var(--ios-green); font-weight: 700; }
.tick-pro { text-align: center; color: #FFC24D; font-weight: 700; }
.tick-off { text-align: center; color: rgba(255,255,255,0.22); }
.tick-limit { text-align: center; color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 600; }

/* Sticky scroll-telling stage */
.scrolly { position: relative; }
.scrolly-stage {
    position: sticky; top: 96px;
    height: min(560px, 68vh);
    display: flex; align-items: center; justify-content: center;
}
.scrolly-shot {
    position: absolute; max-height: 100%; width: auto;
    opacity: 0; transform: scale(.96);
    transition: opacity .6s ease, transform .6s ease;
}
.scrolly-shot.active { opacity: 1; transform: scale(1); }
.scrolly-step { min-height: 78vh; display: flex; align-items: center; }
.scrolly-copy { opacity: .28; transition: opacity .5s ease; }
.scrolly-step.active .scrolly-copy { opacity: 1; }
@media (max-width: 767px) {
    .scrolly-stage { position: static; height: auto; margin-bottom: 8px; }
    .scrolly-shot { position: static; max-height: none; width: 100%; opacity: 1; transform: none; }
    .scrolly-shot + .scrolly-shot { display: none; }
    .scrolly-step { min-height: 0; padding-block: 26px; }
    .scrolly-copy { opacity: 1; }
}

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 880px; margin-inline: auto; padding-inline: 24px; }

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 1; transform: none; transition: none;
            animation: rise-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 58%;
        }
        .reveal-delay-1 { animation-range: entry 4% entry 62%; }
        .reveal-delay-2 { animation-range: entry 8% entry 66%; }
        .reveal-delay-3 { animation-range: entry 12% entry 70%; }
        .parallax-hero {
            animation: hero-settle linear both;
            animation-timeline: view();
            animation-range: entry 20% cover 45%;
        }
        .pillar {
            animation: pillar-in linear both;
            animation-timeline: view();
            animation-range: entry 5% entry 60%;
        }
    }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-settle { from { transform: translateY(26px) scale(1.03); } to { transform: translateY(0) scale(1); } }
@keyframes pillar-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track, .marquee-track-reverse { animation: none; }
    .gradient-text, .gradient-text-brand { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; animation: none; }
    .pillar, .parallax-hero { animation: none; }
    .pillar:hover, .feature-card:hover, .btn-apple:hover { transform: none; }
    .scrolly-stage { position: static; height: auto; }
    .scrolly-shot { position: static; max-height: none; width: 100%; opacity: 1; transform: none; }
    .scrolly-shot + .scrolly-shot { display: none; }
    .scrolly-copy { opacity: 1; }
    .scrolly-step { min-height: 0; padding-block: 32px; }
}

.footer-link { color: #6e6e73; font-size: 13px; transition: color .2s; }
.footer-link:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 40px; margin-bottom: 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: #3a3a3c; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
    font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 26px; font-weight: 400; color: var(--brand-ink); transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; border-radius: 4px; }
.faq-item p { margin: 0 0 24px; padding-right: 40px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
