/* How Old Do I Look? AI Scanner — landing styles
   Brand: pastel pink→violet→sky gradients, teal accent, coral CTA */

:root {
  --pink: #f9a8d4;
  --violet: #c4b5fd;
  --sky: #a5d8f0;
  --teal: #34c8b8;
  --teal-ink: #0e8f83;
  --coral: #f2827f;
  --coral-dark: #e2635f;
  --ink: #14121a;
  --ink-soft: #4a4658;
  --muted: #736f82;
  --bg: #ffffff;
  --bg-soft: #faf7ff;
  --card: #ffffff;
  --line: #ece8f5;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 2px 10px rgba(40, 20, 80, .06);
  --shadow: 0 14px 40px rgba(60, 30, 110, .12);
  --shadow-lg: 0 30px 70px rgba(60, 30, 110, .18);
  --grad-hero: linear-gradient(135deg, #f9a8d4 0%, #c4b5fd 46%, #a5d8f0 100%);
  --grad-soft: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  --maxw: 1160px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { padding: clamp(56px, 8vw, 110px) 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer;
  padding: 15px 30px; border-radius: 100px; border: 0; transition: transform .18s ease, box-shadow .18s ease, background .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 12px 26px rgba(226, 99, 95, .38); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(226, 99, 95, .46); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav .btn { padding: 10px 20px; font-size: .92rem; }

/* Language selector */
.lang-select {
  appearance: none; font-family: inherit; font-weight: 600; font-size: .9rem; color: var(--ink);
  background: rgba(255,255,255,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23736f82' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 100px; padding: 9px 32px 9px 16px; cursor: pointer;
}
.lang-select:focus { outline: 2px solid var(--violet); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero */
.hero { position: relative; background: var(--grad-hero); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(255,255,255,.55), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: clamp(50px, 7vw, 90px); }
.hero h1 { color: #17131f; }
.hero .lead { color: #3a3350; max-width: 520px; }
.badge-trust {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.8); color: #17131f; font-weight: 700; font-size: .85rem;
  padding: 8px 16px; border-radius: 100px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.badge-trust b { color: var(--teal-ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #4a4262; font-weight: 600; }
.hero-note span { opacity: .55; margin: 0 8px; }

/* Phone visual */
.phone-stack { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(300px, 78%); border-radius: 42px; background: #111; padding: 10px;
  box-shadow: var(--shadow-lg); position: relative; z-index: 2; transform: rotate(-3deg);
}
.phone img { border-radius: 32px; display: block; width: 100%; }
.phone-back {
  position: absolute; width: min(250px, 62%); border-radius: 38px; background: #111; padding: 8px;
  box-shadow: var(--shadow); top: 40px; right: 2%; transform: rotate(6deg); z-index: 1; opacity: .96;
}
.phone-back img { border-radius: 30px; width: 100%; }
.bubble {
  position: absolute; z-index: 3; background: var(--teal); color: #08312c; font-weight: 800;
  padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 1.1rem;
}
.bubble::after { content: ""; position: absolute; bottom: -7px; left: 16px; border: 8px solid transparent; border-top-color: var(--teal); border-bottom: 0; }
.bubble-1 { top: 8%; left: 4%; }
.bubble-2 { bottom: 16%; right: 0; background: #fff; color: var(--ink); }
.bubble-2::after { border-top-color: #fff; }

/* Trust bar */
.trustbar { background: var(--bg-soft); border-block: 1px solid var(--line); }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 70px); padding-block: 30px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat span { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Feature grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 44px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--grad-soft); color: #17131f;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: .96rem; }

/* How it works */
.how { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 44px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px 26px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; inset-inline-start: 26px; width: 44px; height: 44px; border-radius: 13px;
  background: var(--coral); color: #fff; font-weight: 800; font-size: 1.15rem; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(226,99,95,.4);
}
.step h3 { margin-top: 8px; }
.step p { margin: 0; font-size: .96rem; }

/* Screenshots gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 40px 22px 30px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 10px; }
.shot { flex: 0 0 auto; width: 240px; scroll-snap-align: center; }
.shot img { border-radius: 26px; box-shadow: var(--shadow); border: 5px solid #111; }
.shot p { text-align: center; font-size: .88rem; font-weight: 600; color: var(--muted); margin-top: 14px; }

/* Guides */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 44px; }
.guide-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet); }
.guide-card .tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-ink); margin-bottom: 10px; }
.guide-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.guide-card p { font-size: .93rem; flex: 1; }
.guide-card .more { font-weight: 700; color: var(--coral-dark); font-size: .92rem; margin-top: 6px; }
.guide-card .more::after { content: " →"; }

/* FAQ */
.faq { background: var(--bg-soft); }
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: start; background: none; border: 0; font-family: inherit; font-weight: 700; font-size: 1.02rem; color: var(--ink); padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { flex: 0 0 auto; width: 20px; height: 20px; transition: transform .25s; color: var(--muted); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { margin: 0 0 10px; font-size: .97rem; }
.faq-a a { color: var(--coral-dark); font-weight: 700; }
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* CTA band */
.cta-band { background: var(--grad-hero); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 50% 120%, rgba(255,255,255,.5), transparent); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #17131f; }
.cta-band .lead { color: #3a3350; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc9dd; padding: 60px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { color: #a49fb6; font-size: .92rem; max-width: 280px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 14px; }
.footer-col a { display: block; color: #a49fb6; font-size: .93rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2b2735; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #837e95; }
.footer-langs { border-top: 1px solid #2b2735; margin-top: 40px; padding-top: 22px; }
.footer-langs h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 14px; }
.footer-langs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-langs a { color: #a49fb6; font-size: .9rem; padding: 4px 0; display: block; }
.footer-langs a:hover { color: #fff; }
.footer-langs a[aria-current="page"] { color: #fff; font-weight: 600; }

/* Language hint banner (offered, never forced) */
.lang-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px 22px; background: var(--ink); color: #e9e6f2; font-size: .92rem; }
.lang-hint-msg { flex: 1 1 auto; }
.lang-hint-go { color: #fff; font-weight: 600; text-decoration: underline; }
.lang-hint-close { background: none; border: 0; color: #a49fb6; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.lang-hint-close:hover { color: #fff; }

/* Guide article pages */
.article-hero { background: var(--grad-soft); padding: clamp(40px,6vw,72px) 0 clamp(30px,4vw,44px); }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 16px; font-weight: 600; }
.breadcrumb a { color: var(--teal-ink); }
.breadcrumb span { opacity: .5; margin: 0 6px; }
.article { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.4em; }
.article-body p, .article-body li { color: var(--ink-soft); font-size: 1.04rem; }
.article-body ul, .article-body ol { padding-inline-start: 1.3em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .5em; }
.callout {
  background: var(--bg-soft); border: 1px solid var(--line); border-inline-start: 4px solid var(--teal);
  border-radius: 14px; padding: 22px 24px; margin: 26px 0;
}
.callout h3 { margin-top: 0; }
.callout .btn { margin-top: 8px; }
.step-inline { display: flex; gap: 16px; margin: 18px 0; }
.step-inline .n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: var(--coral); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step-inline div p { margin: 0; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin-top: 24px; }
.related a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-weight: 700; box-shadow: var(--shadow-sm); transition: .2s; }
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--coral-dark); }

/* Mobile */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .phone-stack { margin-top: 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav .btn { padding: 10px 13px; }
  .nav .btn span { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; inset-inline: 0; flex-direction: column;
    background: #fff; padding: 18px 22px; gap: 6px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 10px 0; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .nav-actions .btn-hide { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}

/* RTL */
[dir="rtl"] .phone { transform: rotate(3deg); }
[dir="rtl"] .phone-back { transform: rotate(-6deg); right: auto; left: 2%; }
[dir="rtl"] .bubble::after { left: auto; right: 16px; }
