/* =========================================================
   Before You Apps — Shared Stylesheet
   Design system: Editorial modern, teal/blue palette
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Design Tokens ---------- */
:root {
    /* Brand palette */
    --teal-900: #0D3A45;
    --teal-700: #1A7385;
    --teal-500: #2BA0B5;
    --teal-400: #4DC0D9;
    --teal-100: #DCF0F4;

    --blue-900: #0A1634;
    --blue-700: #264BA8;
    --blue-500: #4367C7;

    --green-500: #4DD676;
    --green-600: #2FB85C;

    --ink: #0A1634;
    --ink-soft: #415074;
    --ink-mute: #7B88A8;

    --bg: #F8FAFC;
    --bg-alt: #FFFFFF;
    --bg-deep: #0A1634;

    --border: rgba(10, 22, 52, 0.08);
    --border-strong: rgba(10, 22, 52, 0.14);

    --shadow-sm: 0 1px 2px rgba(10, 22, 52, 0.04), 0 2px 6px rgba(10, 22, 52, 0.04);
    --shadow-md: 0 4px 12px rgba(10, 22, 52, 0.06), 0 8px 24px rgba(10, 22, 52, 0.06);
    --shadow-lg: 0 12px 32px rgba(10, 22, 52, 0.08), 0 24px 60px rgba(10, 22, 52, 0.08);

    /* App accent colors */
    --accent-stroll: #2FB85C;
    --accent-scan: #1A7385;
    --accent-day: #264BA8;

    /* Type scale */
    --font-display: "Fraunces", "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", "Inter", -apple-system, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    /* Layout */
    --container: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    /* Transitions */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Grain texture overlay for warmth */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.015;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h1 { font-size: clamp(3rem, 7vw, 5.75rem); font-variation-settings: "SOFT" 30, "WONK" 0; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-variation-settings: "SOFT" 25; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

em, .italic-display {
    font-style: italic;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.5;
    color: var(--ink-soft);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal-700);
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.nav__brand-mark {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(10, 22, 52, 0.15));
}

.nav__brand em {
    font-weight: 400;
    color: var(--teal-700);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__links a {
    font-size: 0.9375rem;
    color: var(--ink-soft);
    transition: color 0.2s;
    position: relative;
}

.nav__links a:hover {
    color: var(--teal-700);
}

.nav__links a.active {
    color: var(--ink);
    font-weight: 500;
}

.nav__lang {
    display: inline-flex;
    align-items: center;
    background: rgba(10, 22, 52, 0.04);
    border-radius: 999px;
    padding: 3px;
    gap: 0;
}

.nav__lang button {
    border: 0;
    background: transparent;
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-mute);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.nav__lang button.active {
    background: var(--ink);
    color: white;
}

.nav__toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--ink);
    color: white;
}

.btn--primary:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

.btn--appstore {
    background: var(--ink);
    color: white;
    padding: 12px 20px;
}

.btn--appstore:hover {
    background: var(--teal-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--appstore svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn__arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--teal-100) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -300px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(67, 103, 199, 0.12) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.hero__eyebrow {
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 4px rgba(77, 214, 118, 0.2);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(77, 214, 118, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(77, 214, 118, 0.08); }
}

.hero__headline {
    margin-bottom: 32px;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.hero__headline-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.2em;
}

.hero__verb {
    display: inline-block;
    position: relative;
    min-width: 1em;
    background: linear-gradient(120deg, var(--teal-700) 0%, var(--blue-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.hero__verb.swap-out {
    opacity: 0;
    transform: translateY(-12px);
}

.hero__verb.swap-in {
    animation: verb-in 0.5s var(--ease) both;
}

@keyframes verb-in {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero__before {
    font-style: italic;
    color: var(--ink);
    font-variation-settings: "SOFT" 100, "WONK" 1;
    opacity: 0.9;
}

.hero__lead {
    max-width: 640px;
    margin: 0 auto 40px;
    color: var(--ink-soft);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.5;
}

.hero__cta {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Concept section ---------- */
.concept {
    padding: 120px 0;
    background: var(--bg-alt);
    position: relative;
}

.concept__header {
    max-width: 760px;
    margin: 0 auto 72px;
    text-align: center;
}

.concept__header h2 {
    margin: 16px 0 20px;
}

.concept__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
}

.step {
    position: relative;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--teal-500);
    opacity: 0.5;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    margin-bottom: 16px;
}

.step h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.step p {
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ---------- Apps section ---------- */
.apps {
    padding: 120px 0;
    position: relative;
}

.apps__header {
    max-width: 760px;
    margin: 0 auto 72px;
    text-align: center;
}

.apps__header h2 {
    margin: 16px 0 20px;
}

.apps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    text-decoration: none;
    color: inherit;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.app-card__visual {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.app-card__visual--stroll {
    background: linear-gradient(160deg, #0D3A28 0%, #1F6B46 60%, #2FB85C 100%);
}

.app-card__visual--scan {
    background: linear-gradient(160deg, #0A1634 0%, #1A7385 60%, #4DC0D9 100%);
}

.app-card__visual--day {
    background: linear-gradient(160deg, #0A1634 0%, #264BA8 60%, #4367C7 100%);
}

/* Real icon image sitting on top of the gradient visual. The PNG has
   its own rounded corners, so we use drop-shadow (follows alpha shape)
   instead of box-shadow (would draw a square shadow). */
.app-card__icon-img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
    transition: transform 0.4s var(--ease);
}

.app-card:hover .app-card__icon-img {
    transform: scale(1.06) rotate(-3deg);
}

.app-card__body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app-card__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 16px;
}

.app-card__tag--stroll {
    background: rgba(47, 184, 92, 0.12);
    color: #1F6B46;
}

.app-card__tag--scan {
    background: rgba(26, 115, 133, 0.12);
    color: var(--teal-700);
}

.app-card__tag--day {
    background: rgba(38, 75, 168, 0.12);
    color: var(--blue-700);
}

.app-card h3 {
    font-size: 1.625rem;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.app-card__subtitle {
    color: var(--ink-soft);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    flex: 1;
}

.app-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.app-card__price {
    font-size: 0.875rem;
    color: var(--ink-soft);
}

.app-card__price strong {
    color: var(--ink);
    font-weight: 600;
}

.app-card__cta {
    color: var(--teal-700);
    font-weight: 500;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s var(--ease);
}

.app-card:hover .app-card__cta {
    gap: 10px;
}

/* ---------- Philosophy ---------- */
.philosophy {
    padding: 120px 0;
    background: var(--blue-900);
    color: white;
    position: relative;
    overflow: hidden;
}

.philosophy::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(77, 192, 217, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.philosophy::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(67, 103, 199, 0.2) 0%, transparent 65%);
    pointer-events: none;
}

.philosophy__inner {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.philosophy h2 {
    color: white;
    margin-bottom: 32px;
}

.philosophy h2 em {
    color: var(--teal-400);
}

.philosophy__text {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 40px;
}

.philosophy__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    text-align: left;
}

.pillar {
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.pillar__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal-400), var(--blue-500));
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.pillar__icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.pillar h4 {
    color: white;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.0625rem;
}

.pillar p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin: 0;
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background: var(--bg-alt);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: start;
}

.contact__info h2 {
    margin: 16px 0 24px;
}

.contact__info p {
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact__email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.25s var(--ease);
    margin-top: 8px;
}

.contact__email:hover {
    border-color: var(--teal-700);
    color: var(--teal-700);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
    padding: 14px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-body);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 0;
    border-color: var(--teal-700);
    box-shadow: 0 0 0 3px rgba(26, 115, 133, 0.12);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.form__note {
    font-size: 0.8125rem;
    color: var(--ink-mute);
}

.form__status {
    font-size: 0.875rem;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: none;
}

.form__status--success {
    display: block;
    background: rgba(47, 184, 92, 0.1);
    color: #1F6B46;
    border: 1px solid rgba(47, 184, 92, 0.2);
}

.form__status--error {
    display: block;
    background: rgba(235, 87, 87, 0.1);
    color: #B73D3D;
    border: 1px solid rgba(235, 87, 87, 0.2);
}

/* ---------- Footer ---------- */
.footer {
    padding: 64px 0 32px;
    background: var(--blue-900);
    color: rgba(255, 255, 255, 0.7);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand-mark {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    margin-bottom: 20px;
}

.footer__brand h4 {
    color: white;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.footer__brand h4 em {
    color: var(--teal-400);
}

.footer__brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer__col h5 {
    color: white;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__col a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer__col a:hover {
    color: var(--teal-400);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- App detail page ---------- */
.app-hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.app-hero--stroll { background: linear-gradient(160deg, #0F3A28 0%, #1F6B46 50%, #2FB85C 100%); }
.app-hero--scan   { background: linear-gradient(160deg, #0A1634 0%, #1A7385 50%, #4DC0D9 100%); }
.app-hero--day    { background: linear-gradient(160deg, #0A1634 0%, #1E3C85 50%, #4367C7 100%); }

.app-hero__inner {
    color: white;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 28px;
    transition: color 0.2s;
}

.app-hero__back:hover { color: white; }

.app-hero h1 {
    color: white;
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

.app-hero h1 em { color: rgba(255, 255, 255, 0.78); }

.app-hero__subtitle {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.55;
    max-width: 540px;
}

.app-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.app-hero__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.app-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-hero__ctas .btn--primary {
    background: white;
    color: var(--ink);
}

.app-hero__ctas .btn--primary:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.app-hero__ctas .btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.app-hero__ctas .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

.app-hero__visual {
    position: relative;
    display: grid;
    place-items: center;
}

.app-hero__icon-img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.4));
    animation: icon-float 6s var(--ease) infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-14px) rotate(3deg); }
}

/* Feature grid */
.features {
    padding: 100px 0;
}

.features__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.features__header h2 { margin: 12px 0 16px; }

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature {
    padding: 32px 28px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.feature__icon--stroll { background: rgba(47, 184, 92, 0.12); color: var(--green-600); }
.feature__icon--scan   { background: rgba(26, 115, 133, 0.12); color: var(--teal-700); }
.feature__icon--day    { background: rgba(38, 75, 168, 0.12); color: var(--blue-700); }

.feature__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

.feature h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.0625rem;
    margin-bottom: 8px;
}

.feature p {
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}

/* How it works */
.howto {
    padding: 100px 0;
    background: var(--bg-alt);
}

.howto__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.howto__header h2 { margin: 12px 0 16px; }

.howto__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    counter-reset: step;
}

.howto__step {
    padding: 28px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    counter-increment: step;
    position: relative;
}

.howto__step::before {
    content: "0" counter(step);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    color: var(--teal-500);
    opacity: 0.4;
    display: block;
    margin-bottom: 12px;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.howto__step h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.howto__step p {
    color: var(--ink-soft);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* FAQ */
.faq {
    padding: 100px 0;
}

.faq__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.faq__list {
    max-width: 780px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__item summary {
    padding: 24px 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.0625rem;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    list-style: none;
    transition: color 0.2s;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:hover { color: var(--teal-700); }

.faq__item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--teal-700);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item-body {
    padding: 0 0 24px;
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 0.9375rem;
}

/* Stats / comparison */
.compare {
    padding: 100px 0;
    background: var(--bg-alt);
}

.compare__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.compare__table {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    font-size: 0.9375rem;
}

.compare__table th,
.compare__table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare__table tr:last-child td { border-bottom: 0; }

.compare__table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--ink);
    font-size: 0.875rem;
}

.compare__table th.highlight {
    background: linear-gradient(135deg, var(--teal-700), var(--blue-700));
    color: white;
}

.compare__table td { color: var(--ink-soft); }

.compare__table td.highlight {
    background: rgba(26, 115, 133, 0.04);
    color: var(--ink);
    font-weight: 500;
}

.compare__check { color: var(--green-600); font-weight: 600; }
.compare__x { color: #B73D3D; font-weight: 600; }

/* Legal pages */
.legal {
    padding: 80px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.legal h3 { font-size: 1.125rem; margin: 24px 0 12px; font-family: var(--font-body); font-weight: 600; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; }
.legal a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .concept__steps,
    .apps__grid,
    .features__grid,
    .philosophy__pillars {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .howto__steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__grid,
    .app-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .app-hero__visual {
        order: -1;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: grid;
        place-items: center;
    }

    .nav__links.open {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-alt);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 640px) {
    .hero { padding: 64px 0 80px; }
    .concept, .apps, .philosophy, .contact, .features, .howto, .faq, .compare { padding: 80px 0; }

    .contact__form { padding: 28px; }

    .howto__steps {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .compare__table { font-size: 0.8125rem; }
    .compare__table th, .compare__table td { padding: 12px 14px; }
}

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