/* =========================================================================
   Veedrobe — Landing design system (Editorial / showroom · Terracotta)
   Ivory base · warm terracotta signature accent · blush/sand color blocks.
   Phone mockups faithfully recreate the real app screens.
   ========================================================================= */

:root {
    /* Surfaces */
    --cream: #F7F2EA;
    --cream-deep: #EFE9DF;
    --warm-ivory: #FFFDF8;
    --paper: #FFFFFF;

    /* Ink */
    --charcoal: #25211C;
    --soft-charcoal: #5E554B;
    --taupe: #9A8D7B;

    /* Signature accent — warm terracotta */
    --terracotta: #C65D3B;
    --terracotta-deep: #A8472B;
    --terracotta-soft: #F3D9CD;

    /* Secondary accents */
    --sage: #7B8B68;
    --sage-deep: #59684B;
    --soft-blush: #E9CFC3;
    --warm-sand: #D7C2A5;
    --clay: #B98268;

    /* Warm color-block section tints */
    --block-blush: #F8E6DD;
    --block-sand: #F2E8D5;

    /* Lines */
    --line: #E8DFD2;
    --line-soft: rgba(37, 33, 28, 0.08);

    /* Premium dark */
    --ink: #211D18;
    --ink-2: #322A22;

    /* App UI palette (matches the real mobile app) */
    --app-bg: #FAFAF9;
    --app-surface: #F5F3F0;
    --app-primary: #C4B5A6;
    --app-text: #2C2B29;
    --app-text2: #6B6967;
    --app-border: #E8E6E3;

    /* Layered shadow scale */
    --sh-sm: 0 2px 8px -3px rgba(37,33,28,0.18);
    --sh-md: 0 14px 36px -22px rgba(37,33,28,0.30);
    --sh-lg: 0 30px 70px -36px rgba(37,33,28,0.40);
    --sh-xl: 0 50px 110px -50px rgba(37,33,28,0.55);
}

* { -webkit-font-smoothing: antialiased; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

.font-display { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; }
.italic-accent { font-style: italic; font-weight: 500; }
h1, h2, h3 { letter-spacing: -0.015em; }

/* ---- Editorial display type scale ---- */
.display-hero { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(2.9rem, 8.2vw, 6.4rem); line-height: 0.98; letter-spacing: -0.025em; }
.display-2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em; }
.display-3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; }

/* ---- Text helpers ---- */
.text-soft { color: var(--soft-charcoal); }
.text-taupe { color: var(--taupe); }
.text-sage { color: var(--terracotta-deep); } /* signature accent — terracotta */
.text-terracotta { color: var(--terracotta-deep); }
.text-charcoal { color: var(--charcoal); }

/* ---- Editorial numbered section label ---- */
.section-label { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--taupe); font-weight: 600; }
.section-label .num { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 0.95rem; color: var(--terracotta-deep); letter-spacing: 0; }
.section-label::before { content: ""; width: 26px; height: 1px; background: var(--terracotta); display: inline-block; }
.eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--taupe); font-weight: 600; }

/* ---- Paper grain ---- */
.grain::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ---- Hero spotlight (warm) ---- */
.soft-glow {
    position: relative;
    background:
        radial-gradient(58% 50% at 80% 14%, rgba(198, 93, 59, 0.16), transparent 68%),
        radial-gradient(55% 48% at 10% 4%, rgba(243, 217, 205, 0.55), transparent 70%),
        linear-gradient(180deg, var(--warm-ivory) 0%, var(--cream) 62%);
}
.soft-glow::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, transparent 60%, rgba(37,33,28,0.04) 100%); }

/* ---- Hero grid — explicit tracks + min-width:0 so big type never forces
   horizontal overflow on mobile (grid items default to min-width:auto). ---- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-grid > * { min-width: 0; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* ---- Color-block section tints ---- */
.block-blush { background: var(--block-blush); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-sand  { background: var(--block-sand);  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Navigation ---- */
.nav-glass { background: rgba(247, 242, 234, 0.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid transparent; transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.nav-glass.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(37,33,28,0.03); }

/* ---- Buttons ---- */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #D06A47 0%, var(--terracotta) 52%, var(--terracotta-deep) 100%);
    color: #FFF7F0;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.10), 0 6px 16px -8px rgba(168,71,43,0.55);
    transition: transform 0.2s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease, filter 0.2s ease;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 55%; z-index: 0;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-18deg);
    animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen { 0%, 22% { left: -75%; } 45%, 100% { left: 145%; } }
.btn-primary:hover { transform: translateY(-1.5px); filter: saturate(1.05) brightness(1.03); box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 14px 28px -8px rgba(168,71,43,0.6); }
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 1px 2px rgba(0,0,0,0.18), 0 4px 12px -8px rgba(168,71,43,0.5); }
.btn-primary i { transition: transform 0.2s ease; }
.btn-primary:hover i { transform: translateX(3px); }

.btn-ghost { border: 1px solid rgba(37,33,28,0.5); color: var(--charcoal); background: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: -0.01em; border-radius: 999px; transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease; }
.btn-ghost:hover { background: var(--charcoal); color: var(--warm-ivory); border-color: var(--charcoal); transform: translateY(-1.5px); }

.btn-on-dark {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #D06A47 0%, var(--terracotta) 52%, var(--terracotta-deep) 100%);
    color: #FFF7F0;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 6px 18px -8px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.25s ease;
}
.btn-on-dark > * { position: relative; z-index: 1; }
.btn-on-dark::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 55%; z-index: 0;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-18deg);
    animation: sheen 5s ease-in-out infinite;
}
.btn-on-dark:hover { transform: translateY(-1.5px); filter: brightness(1.04); }
.btn-on-dark i { transition: transform 0.2s ease; }
.btn-on-dark:hover i { transform: translateX(3px); }

/* ---- Chips / pills ---- */
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 0.78rem; font-weight: 500; color: var(--soft-charcoal); }
.pill-sage { background: rgba(198, 93, 59, 0.12); color: var(--terracotta-deep); }
.pill-blush { background: rgba(233, 207, 195, 0.55); color: var(--clay); }
.rating-chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm); font-size: 0.82rem; color: var(--soft-charcoal); }
.rating-chip .stars { color: var(--terracotta); letter-spacing: 0.05em; }

/* ---- Cards ---- */
.card { position: relative; background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line-soft); border-radius: 22px; box-shadow: var(--sh-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease; }
.card-solid { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease; }
.card-hover { overflow: hidden; }
.card-hover::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--terracotta), var(--warm-sand)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.card-hover:hover::before { transform: scaleX(1); }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--terracotta-soft); }

/* Round icon tile */
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(198, 93, 59, 0.12); color: var(--terracotta-deep); font-size: 1.05rem; flex: none; transition: transform 0.35s ease, background 0.35s ease; }
.card-hover:hover .icon-tile { transform: scale(1.06) rotate(-3deg); }
.icon-tile.blush { background: rgba(233, 207, 195, 0.55); color: var(--clay); }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---- Marquee (style vocabulary) ---- */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; padding: 1.1rem 0; animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; color: var(--soft-charcoal); display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-item::after { content: "✦"; color: var(--terracotta); font-size: 0.8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Dark band ---- */
.band-dark { position: relative; background: radial-gradient(60% 60% at 80% 0%, rgba(198,93,59,0.20), transparent 60%), radial-gradient(50% 50% at 10% 100%, rgba(215,194,165,0.12), transparent 60%), linear-gradient(160deg, var(--ink) 0%, #1A1713 100%); color: #FFF8EE; overflow: hidden; }
.band-dark .text-dim { color: rgba(255,248,238,0.72); }

/* ---- Stat / counter ---- */
.stat-num { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }

/* ---- Premium dark card ---- */
.premium-dark { position: relative; background: radial-gradient(70% 60% at 85% 10%, rgba(198,93,59,0.18), transparent 60%), linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #FFF8EE; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: var(--sh-xl); overflow: hidden; }

/* =========================================================================
   PHONE + faithful app UI
   ========================================================================= */
.phone { position: relative; width: 340px; max-width: 86vw; aspect-ratio: 300 / 650; background: linear-gradient(145deg, #2C2722, #1B1814); border-radius: 50px; padding: 12px; box-shadow: var(--sh-xl), inset 0 0 0 1px rgba(255,255,255,0.04); }
.phone-screen { width: 100%; height: 100%; background: var(--app-bg); border-radius: 40px; overflow: hidden; position: relative; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #161310; border-radius: 999px; z-index: 5; }

.app-ui { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--app-bg); color: var(--app-text); padding: 40px 14px 12px; font-family: -apple-system, 'Inter', sans-serif; font-size: 12px; overflow: hidden; }

/* main header */
.ah { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 10px; }
.ah-user { display: flex; align-items: center; gap: 9px; }
.ah-avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--app-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.ah-greet { font-size: 10px; color: var(--app-text2); line-height: 1.1; }
.ah-name { font-size: 13px; font-weight: 600; line-height: 1.15; }
.ah-actions { display: flex; gap: 8px; }
.ah-btn { width: 32px; height: 32px; border-radius: 999px; background: var(--app-surface); border: 1px solid var(--app-border); display: flex; align-items: center; justify-content: center; color: var(--app-text2); font-size: 13px; }

/* weather */
.aw { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 16px; padding: 12px 14px; margin-bottom: 11px; background: linear-gradient(135deg, rgba(196,181,166,0.22), rgba(196,181,166,0.08)); box-shadow: 0 6px 16px -12px rgba(44,43,41,0.4); }
.aw-left { display: flex; align-items: center; gap: 11px; }
.aw-emoji { font-size: 30px; line-height: 1; }
.aw-temp { font-size: 19px; font-weight: 700; line-height: 1.1; }
.aw-cond { font-size: 10px; color: var(--app-text2); }
.aw-div { width: 1px; height: 36px; background: rgba(44,43,41,0.12); }
.aw-right { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.aw-date { font-size: 9.5px; color: var(--app-text2); }
.aw-advice { background: rgba(196,181,166,0.30); color: #8a7a64; font-size: 9px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }

/* outfit card */
/* Outfit card container is intentionally transparent — the real app card bg ≈ screen bg.
   The nested cards are the garment tiles, the explanation row and the occasion pill. */
.acard { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.acard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.acard-title { font-size: 13px; font-weight: 700; }
.acard-sub { font-size: 9px; color: var(--app-text2); margin-top: 1px; }
.acard-try { display: flex; align-items: center; gap: 5px; background: #3730A3; color: #fff; border-radius: 10px; padding: 6px 9px; }
.acard-try .ico { font-size: 12px; }
.acard-try .l1 { font-size: 10px; font-weight: 700; line-height: 1.1; }
.acard-try .l2 { font-size: 8px; opacity: 0.85; line-height: 1.1; }

/* masonry */
.amasonry { flex: 1; min-height: 0; display: grid; grid-template-columns: 55% 45%; gap: 6px; }
.acol { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.atile { position: relative; background: #fff; border: 1px solid var(--app-border); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 10px -7px rgba(44,43,41,0.45); }
.atile.top { flex: 1.2; } .atile.bottom { flex: 0.8; } .atile.eq { flex: 1; }
.atile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9px; }
.atile .cat { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 8px; font-weight: 600; color: #fff; padding: 9px 4px 5px; background: linear-gradient(transparent, rgba(0,0,0,0.30)); letter-spacing: 0.02em; }
.ascore { flex: 1; background: #FAFAFA; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ascore .hrt { color: var(--app-text2); opacity: 0.55; font-size: 13px; }
.ascore .pct { font-size: 23px; font-weight: 800; letter-spacing: -1px; color: var(--app-text); }
.ascore .lab { font-size: 10px; font-weight: 600; color: var(--app-text2); letter-spacing: 0.4px; }

/* explanation row */
.aexpl { margin-top: 7px; background: var(--app-surface); border-radius: 9px; padding: 9px 10px; display: flex; align-items: center; gap: 7px; }
.aexpl .spark { color: var(--app-primary); font-size: 13px; }
.aexpl .body { flex: 1; min-width: 0; }
.aexpl .t { font-size: 11px; font-weight: 700; letter-spacing: -0.2px; }
.aexpl .s { font-size: 9px; color: var(--app-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aexpl .chev { color: var(--app-text2); font-size: 11px; }

/* occasion pill */
.aocc { margin-top: 6px; display: flex; align-items: center; gap: 7px; background: #1E3A8A; border-radius: 10px; padding: 9px 10px; }
.aocc .ibadge { width: 24px; height: 24px; border-radius: 999px; background: rgba(255,255,255,0.18); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.aocc .body { flex: 1; }
.aocc .l1 { font-size: 11px; font-weight: 700; color: #fff; line-height: 1.1; }
.aocc .l2 { font-size: 9px; color: rgba(255,255,255,0.72); line-height: 1.1; }
.aocc .chev { color: rgba(255,255,255,0.55); font-size: 10px; }

/* detail screen variant */
.app-ui.detail { padding-top: 40px; }
.adetail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.adetail-head .back { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--app-border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--app-text); }
.adetail-head .t { font-size: 14px; font-weight: 700; }
.auyum { display: flex; flex-direction: column; align-items: flex-end; background: rgba(196,181,166,0.20); border-radius: 10px; padding: 4px 10px; }
.auyum .l { font-size: 8px; color: var(--app-text2); }
.auyum .v { font-size: 15px; font-weight: 800; color: var(--app-text); line-height: 1; }
.aitems3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 11px; }
.aitems3 .it { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 0.8; background: #fff; border: 1px solid var(--app-border); box-shadow: 0 4px 10px -7px rgba(44,43,41,0.45); }
.aitems3 .it img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.aitems3 .it .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 6px 5px; background: linear-gradient(transparent, rgba(0,0,0,0.42)); }
.aitems3 .it .c { font-size: 6.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: rgba(255,255,255,0.85); display: block; }
.aitems3 .it .n { font-size: 8.5px; font-weight: 600; color: #fff; }
.anote { border-radius: 11px; padding: 10px 11px; margin-bottom: 7px; background: var(--app-surface); }
.anote .h { font-size: 11px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.anote .x { font-size: 9.5px; color: var(--app-text2); line-height: 1.5; }
.anote.color { background: rgba(139,159,139,0.13); }
.anote.color .dot { width: 8px; height: 8px; border-radius: 999px; background: #8B9F8B; }
.anote.tip { background: rgba(196,165,116,0.16); }
.anote.tip .dot { width: 8px; height: 8px; border-radius: 999px; background: #C4A574; }

/* Swipe gesture legend (marketing side) */
.gesture { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gesture:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.gesture .g-key { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; flex: none; }

/* Floating mini cards around the phone */
.float-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-lg); }
.float-soft { animation: floaty 7s ease-in-out infinite; }
.float-soft.delay { animation-delay: 1.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.parallax { will-change: transform; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-soft, .marquee-track { animation: none; } .app-slide { transition: none; } .app-slide * { animation: none !important; } .btn-primary::before, .btn-on-dark::before { animation: none; display: none; } }

/* ---- Sticky mobile CTA ---- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0 0.8rem calc(0.7rem + env(safe-area-inset-bottom)); transform: translateY(160%); transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.sticky-cta.show { transform: translateY(0); }
.sticky-dock { display: flex; align-items: center; gap: 0.7rem; background: rgba(33, 29, 24, 0.9); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 0.55rem 0.55rem 0.55rem 1.1rem; box-shadow: 0 20px 44px -18px rgba(0,0,0,0.6); }
.sticky-dock .s-info { flex: 1; min-width: 0; }
.sticky-dock .s-t { color: #FFF7F0; font-weight: 600; font-size: 0.9rem; line-height: 1.15; letter-spacing: -0.01em; }
.sticky-dock .s-s { color: rgba(255,247,240,0.6); font-size: 0.7rem; margin-top: 1px; }
.sticky-dock a { flex: none; white-space: nowrap; }

/* ---- Scroll to top ---- */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 999px; background: var(--terracotta); color: #FFF8EE; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 55; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---- Mobile menu ---- */
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: var(--cream); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; }
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-link { font-family: 'Fraunces', Georgia, serif; font-size: 1.7rem; color: var(--charcoal); padding: 0.6rem 0; }

/* ---- Video demo ---- */
.video-frame { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--sh-xl); }
.video-frame video { display: block; width: 100%; height: auto; }
.video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(37, 33, 28, 0.14); transition: opacity 0.3s ease; }
.video-play { width: 82px; height: 82px; border-radius: 999px; background: rgba(255, 253, 248, 0.94); color: var(--terracotta-deep); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--sh-lg); transition: transform 0.3s ease; }
.video-overlay:hover .video-play { transform: scale(1.07); }

/* ---- Lang toggle ---- */
.lang-toggle { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--soft-charcoal); border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0.4rem 0.7rem; transition: border-color 0.2s ease, color 0.2s ease; }
.lang-toggle:hover { border-color: var(--terracotta); color: var(--terracotta-deep); }

::selection { background: rgba(198, 93, 59, 0.22); }

/* =========================================================================
   Hero phone carousel — auto story: Çek → Düzenle → Öner
   ========================================================================= */
.phone-carousel { position: absolute; inset: 0; }
.app-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s; }
.app-slide.active { opacity: 1; visibility: visible; transform: none; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 8; border-radius: 40px; }
.cam-flash.fire { animation: flash 0.5s ease; }
@keyframes flash { 0% { opacity: 0; } 14% { opacity: 0.92; } 100% { opacity: 0; } }

/* camera capture screen */
.app-ui.cam { background: #17130E; color: #fff; padding: 38px 0 0; }
.cam-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; }
.cam-top .x { width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cam-top .ttl { font-size: 13px; font-weight: 600; }
.cam-view { position: relative; flex: 1; min-height: 0; margin: 0 12px; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 38%, #2B2620, #100D08); display: flex; align-items: center; justify-content: center; }
.cam-view img { width: 66%; height: 66%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.55)); }
.cam-frame { position: absolute; inset: 20px; border: 1.5px solid rgba(255,255,255,0.45); border-radius: 18px; }
.cam-hint { text-align: center; font-size: 11px; color: rgba(255,255,255,0.82); padding: 12px 14px 6px; }
.cam-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 22px; }
.cam-ico { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.cam-shutter { width: 58px; height: 58px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.25), inset 0 0 0 3px #17130E; }

/* processed / added screen */
.added-head { text-align: center; margin-bottom: 10px; }
.added-head .t { font-size: 14px; font-weight: 700; }
.added-head .s { font-size: 9.5px; color: var(--app-text2); margin-top: 2px; }
.added-hero { position: relative; flex: 1; min-height: 0; background: #fff; border: 1px solid var(--app-border); border-radius: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px -16px rgba(44,43,41,0.4); margin-bottom: 10px; }
.added-hero img { width: 58%; height: 80%; object-fit: contain; }
.added-check { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 999px; background: #2BB673; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 8px 16px -6px rgba(43,182,115,0.6); }
.added-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(196,181,166,0.92); color: #3a3026; font-size: 9px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.added-row { display: flex; gap: 7px; margin-bottom: 10px; }
.added-thumb { flex: 1; aspect-ratio: 1; background: #fff; border: 1px solid var(--app-border); border-radius: 11px; position: relative; }
.added-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.added-cta { background: var(--app-primary); color: #3a3026; text-align: center; font-size: 12px; font-weight: 700; padding: 11px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.added-cta .sp { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* video-like internal motion — runs each time a scene becomes active */
.app-slide.active .cam-view img { animation: kenburns 5s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.app-slide.active .added-hero img { animation: vfadeup 0.6s both; }
.app-slide.active .added-check { animation: vpop 0.55s 0.2s both; }
.app-slide.active .added-badge { animation: vfadeup 0.5s 0.3s both; }
.app-slide.active .added-thumb { animation: vpop 0.5s both; }
.app-slide.active .added-thumb:nth-child(1) { animation-delay: 0.25s; }
.app-slide.active .added-thumb:nth-child(2) { animation-delay: 0.35s; }
.app-slide.active .added-thumb:nth-child(3) { animation-delay: 0.45s; }
.app-slide.active .added-thumb:nth-child(4) { animation-delay: 0.55s; }
.app-slide.active .added-cta { animation: vfadeup 0.5s 0.6s both; }
.app-slide.active .acard .atile, .app-slide.active .acard .ascore { animation: vtilein 0.6s both; }
.app-slide.active .acol:first-child .atile:first-child { animation-delay: 0.12s; }
.app-slide.active .acol:first-child .atile:last-child { animation-delay: 0.22s; }
.app-slide.active .acol:last-child .atile { animation-delay: 0.32s; }
.app-slide.active .acol:last-child .ascore { animation-delay: 0.42s; }
.app-slide.active .aexpl { animation: vfadeup 0.5s 0.5s both; }
.app-slide.active .aocc { animation: vfadeup 0.5s 0.58s both; }
@keyframes vpop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes vfadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes vtilein { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

/* carousel step indicator (below phone) */
.carousel-steps { display: flex; align-items: center; justify-content: center; margin-top: 1.6rem; }
.cstep { display: flex; align-items: center; gap: 0.5rem; }
.cstep .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: background 0.3s, transform 0.3s; }
.cstep.on .dot { background: var(--terracotta); transform: scale(1.35); }
.cstep .lbl { font-size: 0.8rem; color: var(--taupe); transition: color 0.3s; }
.cstep.on .lbl { color: var(--charcoal); font-weight: 600; }
.carousel-steps .sep { width: 26px; height: 1px; background: var(--line); margin: 0 0.85rem; }

@media (max-width: 640px) {
    .phone { width: 286px; border-radius: 44px; }
    .marquee-item { font-size: 1.15rem; }
    /* tighter type so nothing overflows on small screens */
    .display-hero { font-size: 2.2rem; line-height: 1.06; letter-spacing: -0.02em; }
    .display-2 { font-size: 1.8rem; }
    .display-3 { font-size: 1.45rem; }
    .rating-chip { font-size: 0.72rem; padding: 0.35rem 0.75rem; }
    .section-label { font-size: 0.66rem; }
    /* centered, app-store-style mobile hero */
    .hero-copy { text-align: center; }
    .hero-copy .rating-chip { margin-left: auto; margin-right: auto; }
    .hero-copy .hero-cta, .hero-copy .hero-trust { justify-content: center; }
}
