/* Safeeya site styles: design tokens taken from the app (lib/theme/colors.dart),
   shared header/footer, legal accordions and motion. Loaded by every page. */

:root {
  --bg: #FDF3F2;
  --surface: #FFFFFF;
  --surface-muted: #FCE7E6;
  --text: #2A1D22;
  --text-muted: #7A5E66;
  --text-faint: #B09099;
  --border: #F3D8D6;
  --accent: #E57A8A;
  --accent-soft: #FBE1E4;
  --accent-deep: #B6485A;
  --lilac: #C79BD9;
  --lilac-soft: #EFE1F4;
  --warm-1: #E0A855;
  --warm-2: #C98235;
  --deep: #3A2430;
  --deep-2: #2A1D22;

  --grad-rose: linear-gradient(135deg, #F29AA7 0%, #E57A8A 55%, #D7607A 100%);
  --grad-lilac: linear-gradient(135deg, #D9AEEA 0%, #C79BD9 100%);
  --grad-warm: linear-gradient(135deg, #E0A855 0%, #C98235 100%);
  --grad-soft: linear-gradient(135deg, #FFF7F6 0%, #FBE1E4 100%);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --shadow-card: 0 10px 30px rgba(182, 72, 90, 0.10), 0 2px 6px rgba(42, 29, 34, 0.04);
  --shadow-lift: 0 18px 44px rgba(182, 72, 90, 0.18), 0 4px 10px rgba(42, 29, 34, 0.06);

  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-wordmark: 'MonteCarlo', 'Nunito', cursive;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
/* Nunito has no Arabic letters; the app pairs it with Cairo. */
html[data-lang="ar"] { --font-body: 'Cairo', 'Nunito', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: opacity .22s ease;
}
html.lang-switching body { opacity: .4; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page { font-family: var(--font-body); color: var(--text); background: var(--bg); min-height: 100vh; overflow-x: hidden; }
:focus-visible { outline: 3px solid rgba(229, 122, 138, .55); outline-offset: 3px; border-radius: 6px; }

/* ── Wordmark: the app's splash face. Arabic shows صفية in Cairo, like the app. */
.wordmark { font-family: var(--font-wordmark); font-weight: 400; letter-spacing: 0; line-height: 1; }
html[data-lang="ar"] .wordmark { font-family: 'Cairo', sans-serif; font-weight: 700; }

/* ── Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font: 700 15px/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--grad-rose); color: #fff; box-shadow: 0 10px 24px rgba(229, 122, 138, .35); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(229, 122, 138, .45); }
.btn--dark { background: var(--deep-2); color: #fff; }
.btn--soft { background: var(--accent-soft); color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--accent-deep); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.store-btn { min-width: 184px; padding: 13px 24px; font-size: 16px; }
.store-btn svg { flex-shrink: 0; }

/* ── Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 243, 242, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s;
}
html.scrolled .site-header { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(182, 72, 90, .08); background: rgba(253, 243, 242, .94); }
.site-header__bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; transition: padding .3s var(--ease-out); }
html.scrolled .site-header__bar { padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; object-fit: contain; transition: transform .4s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand .wordmark { font-size: 38px; color: var(--accent-deep); transform: translateY(2px); }
html[data-lang="ar"] .brand .wordmark { font-size: 26px; transform: none; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  position: relative; padding: 8px 12px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--accent-deep); background: var(--accent-soft); }
.site-nav a.is-active { color: var(--accent-deep); }
.site-nav a.is-active::after { content: ''; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.lang-select { position: relative; display: inline-flex; align-items: center; }
.lang-select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 700 14px/1 var(--font-body); color: var(--accent-deep);
  background: var(--accent-soft); border: 0; border-radius: var(--r-pill);
  padding-block: 10px; padding-inline: 34px 14px;
}
.lang-select::before {
  content: ''; position: absolute; inset-inline-start: 12px; width: 15px; height: 15px; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B6485A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/svg%3E");
}
.lang-select--dark select { background: rgba(255, 255, 255, .1); color: #fff; }
.lang-select--dark::before { filter: brightness(0) invert(1); opacity: .85; }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: var(--r-pill); background: var(--accent-soft); cursor: pointer; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--accent-deep); transition: transform .3s var(--ease-out), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.mobile-menu > div { overflow: hidden; }
.mobile-menu.is-open { grid-template-rows: 1fr; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 4px 24px 18px; }
.mobile-menu nav a { padding: 13px 4px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu nav a.is-active { color: var(--accent-deep); }
.mobile-menu .btn { margin-top: 14px; }
@media (max-width: 1060px) {
  .site-nav, .hide-mobile { display: none !important; }
  .burger { display: flex; }
}
@media (min-width: 1061px) { .mobile-menu { display: none; } }
@media (max-width: 420px) {
  .site-header__bar { padding-inline: 16px; gap: 10px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand .wordmark { font-size: 32px; }
  .lang-select select { padding-inline: 30px 10px; font-size: 13px; }
}

/* ── Footer */
.site-footer { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: #F6E9EC; padding: 72px 24px 28px; scroll-margin-top: 76px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; width: 520px; height: 520px; inset-inline-end: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 122, 138, .28), transparent 65%); pointer-events: none; }
.site-footer__grid { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .brand { color: #fff; }
.site-footer .brand .wordmark { color: #fff; font-size: 36px; }
.site-footer p { font-size: 14.5px; line-height: 1.7; color: rgba(246, 233, 236, .72); margin: 14px 0 0; max-width: 260px; }
.site-footer h5 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: rgba(246, 233, 236, .5); margin: 0 0 16px; }
html[data-lang="ar"] .site-footer h5 { letter-spacing: 0; }
.site-footer__links { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.site-footer__links a { color: #F6E9EC; text-decoration: none; font-size: 15px; transition: color .2s, transform .2s; }
.site-footer__links a:hover { color: var(--accent); transform: translateX(3px); }
html[dir="rtl"] .site-footer__links a:hover { transform: translateX(-3px); }
.site-footer__bottom { position: relative; max-width: 1180px; margin: 0 auto; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: rgba(246, 233, 236, .6); }
.site-footer__bottom a { color: #fff; font-weight: 700; }
.site-footer__operator { flex-basis: 100%; font-size: 12.5px; line-height: 1.6; color: rgba(246, 233, 236, .55); }

/* ── Sections, cards */
.section { max-width: 1180px; margin: 0 auto; padding: 96px 24px; scroll-margin-top: 76px; }
.section--narrow { max-width: 820px; }
.eyebrow { display: inline-block; margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
html[data-lang="ar"] .eyebrow { letter-spacing: 0; }
.h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 900; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 18px; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 900; line-height: 1.18; margin: 0; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.7; color: var(--text-muted); margin: 0; }
.card {
  position: relative; background: var(--surface); border-radius: var(--r-xl); padding: 26px;
  box-shadow: var(--shadow-card); border: 1px solid rgba(243, 216, 214, .7);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
/* The app's GradientCard: tinted gradient + soft top sheen. */
.gcard { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px; color: #fff; box-shadow: 0 16px 36px rgba(229, 122, 138, .32); }
.gcard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%); pointer-events: none; }
.gcard--rose { background: var(--grad-rose); }
.gcard--warm { background: var(--grad-warm); box-shadow: 0 16px 36px rgba(201, 130, 53, .32); }
.gcard--lilac { background: var(--grad-lilac); box-shadow: 0 16px 36px rgba(199, 155, 217, .35); }
.icon-bubble { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-rose); color: #fff; box-shadow: 0 10px 22px rgba(229, 122, 138, .35); position: relative; overflow: hidden; }
.icon-bubble::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 60%); }
.icon-bubble svg { position: relative; width: 26px; height: 26px; }
.icon-bubble--lilac { background: var(--grad-lilac); box-shadow: 0 10px 22px rgba(199, 155, 217, .4); }
.icon-bubble--warm { background: var(--grad-warm); box-shadow: 0 10px 22px rgba(201, 130, 53, .35); }
.icon-bubble--teal { background: linear-gradient(135deg, #55B0A5, #3F988E); box-shadow: 0 10px 22px rgba(63, 152, 142, .32); }

/* ── Legal pages */
.legal-hero { position: relative; overflow: hidden; padding: 88px 24px 40px; text-align: center; }
.legal-hero .h1 { font-size: clamp(32px, 4.6vw, 46px); }
.legal-hero .updated { display: inline-block; margin-top: 4px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface); color: var(--text-muted); font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-card); }
.legal-body { max-width: 820px; margin: 0 auto; padding: 0 24px 100px; }
.legal-intro { font-size: 16.5px; line-height: 1.8; color: var(--text-muted); margin: 0 0 26px; }
.legal-note { margin: 0 0 26px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--lilac-soft); color: var(--text); font-size: 14.5px; line-height: 1.65; font-weight: 600; }
.acc { background: var(--surface); border-radius: var(--r-xl); padding: 6px 26px; box-shadow: var(--shadow-card); border: 1px solid rgba(243, 216, 214, .7); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__item:last-child { border-bottom: 0; }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 2px; background: none; border: 0; cursor: pointer; font: 800 17px/1.35 var(--font-body); color: var(--text); text-align: start; }
.acc__btn:hover { color: var(--accent-deep); }
.acc__num { display: inline-grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; margin-inline-end: 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-size: 13px; font-weight: 800; }
.acc__title { display: flex; align-items: center; }
.acc__chev { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); transition: transform .35s var(--ease-out), background-color .2s, color .2s; }
.acc__item.is-open .acc__chev { transform: rotate(180deg); background: var(--accent); color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { margin: 0; padding: 0 2px 12px; font-size: 15.5px; line-height: 1.8; color: var(--text-muted); }
.acc__panel p:last-child { padding-bottom: 24px; }
.acc__panel ul { margin: 0 0 12px; padding-inline-start: 22px; color: var(--text-muted); font-size: 15.5px; line-height: 1.75; }
.acc__panel li { margin: 2px 0; }
.acc__panel > div > ul:last-child { margin-bottom: 24px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 22px; }

/* ── Soft animated background (hero, legal headers) */
.blobs {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .7; animation: drift 18s ease-in-out infinite alternate; }
.blob--1 { width: 520px; height: 520px; top: -180px; inset-inline-start: -120px; background: radial-gradient(circle, rgba(229, 122, 138, .45), transparent 65%); }
.blob--2 { width: 460px; height: 460px; top: -120px; inset-inline-end: -140px; background: radial-gradient(circle, rgba(199, 155, 217, .45), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.blob--3 { width: 380px; height: 380px; bottom: -200px; left: 38%; background: radial-gradient(circle, rgba(224, 168, 85, .28), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
.above-blobs { position: relative; z-index: 1; }

/* ── Motion */
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes splash-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.d-0 { --d: 0; } .d-1 { --d: 1; } .d-2 { --d: 2; } .d-3 { --d: 3; } .d-4 { --d: 4; } .d-5 { --d: 5; } .d-6 { --d: 6; } .d-7 { --d: 7; } .d-8 { --d: 8; }
.anim-splash { animation: splash-in .9s var(--ease-out) both; }
.anim-rise { animation: rise-in .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
.anim-float { animation: float 6s ease-in-out infinite; }
/* Scroll reveal (motion.js adds .in). Without JS everything stays visible. */
html.js-motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.js-motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js-motion .reveal { opacity: 1; transform: none; }
}

/* ── Forms (delete account) */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 800; color: var(--text); }
.field input, .field textarea {
  font: 500 15.5px/1.4 var(--font-body); color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(229, 122, 138, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 6px 0 18px; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.form-error { color: #C0392B; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding-inline-start: 50px; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); min-height: 34px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-rose); color: #fff; font-weight: 800; font-size: 14px; }
.steps b { color: var(--text); }
.steps--light li { color: rgba(255, 255, 255, .95); font-weight: 600; }
.steps--light li::before { background: rgba(255, 255, 255, .28); }
.pill-path { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 800; color: var(--accent-deep); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding-inline-start: 28px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.check-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B6485A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

/* ══ Home page (1.1) ══════════════════════════════════════════════════════ */
.btn--light { background: #fff; color: var(--accent-deep); box-shadow: 0 10px 24px rgba(42, 29, 34, .12); }
.btn--outline-light { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.pill--premium { background: var(--grad-warm); color: #fff; box-shadow: 0 6px 14px rgba(201, 130, 53, .3); }
.pill--soft { background: var(--accent-soft); color: var(--accent-deep); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head .lead { margin-top: 14px; }
.section-head--start { margin-inline: 0; text-align: start; }
.tint { background: linear-gradient(180deg, rgba(251, 225, 228, .55), rgba(253, 243, 242, 0)); }

/* Tablet frame (iPad screenshot) */
.tablet-wrap { position: relative; display: flex; justify-content: center; margin-top: 40px; }
.tablet-wrap .glow { position: absolute; width: 520px; height: 520px; max-width: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(229, 122, 138, .28), transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; }
.tablet { position: relative; z-index: 1; width: min(760px, 100%); padding: 12px; border-radius: 30px; background: linear-gradient(145deg, #3a2a31, #1b1216); box-shadow: 0 34px 70px rgba(42, 29, 34, .24), 0 8px 18px rgba(42, 29, 34, .12), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.tablet img { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--bg); }
@media (max-width: 600px) { .tablet { padding: 7px; border-radius: 18px; } .tablet img { border-radius: 12px; } }

/* Phone frame around real app screenshots */
.phone {
  position: relative; width: 280px; aspect-ratio: 640 / 1385; padding: 9px; border-radius: 44px;
  background: linear-gradient(145deg, #3a2a31, #1b1216);
  box-shadow: 0 34px 70px rgba(42, 29, 34, .28), 0 8px 18px rgba(42, 29, 34, .14), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  flex-shrink: 0;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 35px; background: var(--bg); }
.phone::after { content: ''; position: absolute; top: 17px; left: 50%; width: 76px; height: 21px; margin-left: -38px; border-radius: 12px; background: #120c0f; }
.phone--sm { width: 236px; border-radius: 38px; padding: 8px; }
.phone--sm img { border-radius: 30px; }
.phone--sm::after { top: 15px; width: 64px; height: 18px; margin-left: -32px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 24px 88px; }
.hero__grid { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__copy .lead { max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__how { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent-deep); text-decoration: none; }
.hero__how svg { transition: transform .3s var(--ease-out); }
.hero__how:hover svg { transform: translateY(3px); }
.hero__phones { position: relative; height: 640px; }
.hero__phones .phone--front { position: absolute; top: 10px; inset-inline-start: 6%; z-index: 2; }
.hero__phones .phone--back { position: absolute; top: 70px; inset-inline-end: 0; z-index: 1; transform: rotate(7deg); opacity: .96; }
html[dir="rtl"] .hero__phones .phone--back { transform: rotate(-7deg); }
.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-lift);
  font-weight: 800; font-size: 14px; color: var(--text); white-space: nowrap; backdrop-filter: blur(6px);
}
.float-chip svg { width: 18px; height: 18px; color: var(--accent-deep); flex-shrink: 0; }
.float-chip--a { top: 64px; inset-inline-start: -8%; animation-delay: -2s; }
.float-chip--b { bottom: 90px; inset-inline-end: 4%; animation-delay: -4s; }
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy .lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__phones { height: 540px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero__phones .phone { width: 228px; border-radius: 36px; padding: 8px; }
  .hero__phones .phone img { border-radius: 29px; }
  .hero__phones .phone--front { inset-inline-start: 2%; }
  .float-chip { font-size: 13px; padding: 9px 13px; }
  .float-chip--a { top: 60px; inset-inline-start: 0; }
  .float-chip--b { bottom: 50px; inset-inline-end: 0; }
}
@media (max-width: 420px) {
  .hero__phones { height: 440px; max-width: 340px; }
  .hero__phones .phone { width: 180px; border-radius: 30px; padding: 7px; }
  .hero__phones .phone img { border-radius: 24px; }
  .hero__phones .phone--back { top: 50px; inset-inline-end: 6px; }
  .hero__phones .phone::after { top: 13px; width: 54px; height: 16px; margin-left: -27px; }
}

/* Feature cards grid */
.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.cards-4 h3 { font-size: 19px; font-weight: 900; margin: 0 0 8px; }
.cards-4 p { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); margin: 0; }

/* Split rows (copy + phone) */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split--media-first { grid-template-columns: .9fr 1.1fr; }
.split--media-first .split__media { order: -1; }
.split__media { display: flex; justify-content: center; position: relative; }
.split__media .glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 122, 138, .32), transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; }
.split__media .phone { z-index: 1; }
.split .check-list { margin-top: 22px; }
.split .check-list li { font-size: 15.5px; }
@media (max-width: 900px) {
  .split, .split--media-first { grid-template-columns: 1fr; gap: 36px; }
  .split--media-first .split__media { order: 0; }
}

/* Life stages */
.stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stages::before { content: ''; position: absolute; top: 46px; inset-inline: 12%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--lilac), var(--warm-1), var(--accent)); opacity: .45; }
.stage { position: relative; text-align: center; padding: 0 8px; }
.stage .icon-bubble { width: 64px; height: 64px; margin: 14px auto 18px; }
.stage h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.stage p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
@media (max-width: 820px) {
  .stages { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .stages::before { display: none; }
}

/* Pregnancy story: tabs + cross-fading phone */
.story { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.story__tabs { display: flex; flex-direction: column; gap: 8px; }
.story__tab {
  position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; width: 100%;
  padding: 16px 18px; border-radius: var(--r-xl); border: 1px solid transparent; background: transparent;
  text-align: start; cursor: pointer; font-family: var(--font-body); color: var(--text);
  transition: background-color .3s, box-shadow .3s, border-color .3s, transform .3s var(--ease-out);
}
.story__tab:hover { background: rgba(255, 255, 255, .6); }
.story__tab.is-active { background: #fff; border-color: rgba(243, 216, 214, .8); box-shadow: var(--shadow-card); }
.story__num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-weight: 900; font-size: 14px; transition: background .3s, color .3s; }
.story__tab.is-active .story__num { background: var(--grad-rose); color: #fff; }
.story__tab b { display: block; font-size: 17px; font-weight: 900; margin: 5px 0 2px; }
.story__tab span.desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.story__tab span.desc > span { overflow: hidden; }
.story__tab.is-active span.desc { grid-template-rows: 1fr; }
.story__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.story__tab.is-active.is-auto .story__bar::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: var(--grad-rose); transform-origin: left; animation: story-progress 6s linear forwards; }
html[dir="rtl"] .story__tab.is-active.is-auto .story__bar::after { transform-origin: right; }
@keyframes story-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story__phone { position: relative; }
.story__phone .screens { position: absolute; inset: 9px; border-radius: 35px; overflow: hidden; background: var(--bg); }
.story__phone .screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .8s var(--ease-out); }
.story__phone .screens img.is-active { opacity: 1; transform: none; }
.story__phone .phone > img.spacer { visibility: hidden; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 26px; margin-top: 44px; padding: 26px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .7); border: 1px solid rgba(243, 216, 214, .7); }
.note-soft { margin: 18px 0 0; font-size: 13.5px; color: var(--text-muted); font-weight: 600; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 30px; }
  .story__phone { display: flex; justify-content: center; order: -1; }
  .story__tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .story__tab { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Sharing card */
.share-card { background: #fff; border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-lift); border: 1px solid rgba(243, 216, 214, .7); width: 100%; max-width: 400px; position: relative; z-index: 1; }
.share-card__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.share-card__head b { display: block; font-size: 16px; font-weight: 900; }
.share-card__head small { color: var(--text-muted); font-weight: 600; font-size: 13px; }
.share-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 15px; font-weight: 700; }
.share-row:last-child { border-bottom: 0; }
.share-row .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-deep); }
.share-row .ico svg { width: 17px; height: 17px; }
.share-row .tag { margin-inline-start: auto; }
.tag { padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; white-space: nowrap; }
.tag--on { background: #DDF1EE; color: #2F7A71; }
.tag--off { background: #F5DEDA; color: #9C4A3D; }
.tag--pause { background: var(--lilac-soft); color: #7B4E91; }

/* Invite rewards */
.rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 8px; }
.reward { border-radius: var(--r-xl); padding: 18px 20px; }
.reward b { display: block; font-size: 30px; font-weight: 900; line-height: 1.1; }
.reward .lbl { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 700; opacity: .95; }

/* Premium comparison */
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: stretch; }
.compare .card h3, .compare .gcard h3 { margin: 0 0 14px; font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.gcard .check-list li { color: rgba(255, 255, 255, .95); font-weight: 700; }
.gcard .check-list li::before { background-color: rgba(255, 255, 255, .28); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.trial { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .2); font-weight: 800; position: relative; }
.trial small { display: block; font-weight: 600; opacity: .92; margin-top: 4px; font-size: 13.5px; line-height: 1.55; }
.report-float {
  margin-top: 28px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(28px, 6vw, 72px);
  padding: clamp(28px, 5vw, 56px) clamp(24px, 6vw, 80px); border-radius: var(--r-xl);
  background: linear-gradient(135deg, #fff 0%, #fdf0f1 100%); border: 1px solid rgba(243, 216, 214, .9);
  box-shadow: 0 18px 40px rgba(229, 122, 138, .14);
}
.report-float .phone { width: 300px; max-width: 100%; }
.report-float__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--grad-warm); color: #fff; font-size: 14px; font-weight: 800;
}
.report-float p { margin: 18px 0 0; max-width: 420px; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; font-weight: 900; color: var(--text); }
@media (max-width: 820px) {
  .report-float { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .report-float .phone { width: 260px; }
  .report-float p { margin-inline: auto; }
}
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }

/* Trust + FAQ + CTA */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.trust h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 900; }
.trust p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-weight: 800; color: var(--accent-deep); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.cta { position: relative; overflow: hidden; text-align: center; padding: 64px 28px; border-radius: 32px; }
.cta .h2 { color: #fff; }
.cta p { margin: 12px auto 28px; max-width: 520px; font-size: 17px; color: rgba(255, 255, 255, .92); font-weight: 600; }
.cta .hero__actions { justify-content: center; position: relative; }
.cta__mark { width: 104px; height: 104px; margin: 0 auto 18px; display: block; position: relative; padding: 12px; box-sizing: border-box; background: #fff; border-radius: 28px; box-shadow: 0 14px 30px rgba(90, 30, 50, .25); }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
