/* Smart Mami — site minimal. On-brand cu aplicația. Mobile-first. */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #243B53;
  --ink-soft: #51637A;
  --muted: #8A99AD;
  --hairline: #E7EDF4;
  --blue: #4F93D6;
  --blue-deep: #3D7BBC;
  --blue-tint: #EAF2FB;
  --peach: #F2935A;
  --peach-tint: #FDEEE2;
  --card: #FFFFFF;
  --r-lg: 26px;
  --r-md: 18px;
  --shadow: 0 1px 2px rgba(36,59,83,.04), 0 12px 34px rgba(36,59,83,.08);
  --maxw: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(110% 50% at 85% -5%, #FBE6D6 0%, rgba(251,230,214,0) 50%),
    linear-gradient(178deg, #E9F3FC 0%, #F2F6FA 45%, #FDF2EA 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ── Top bar ───────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 11px;
  padding-top: 20px; padding-bottom: 4px; /* keep .wrap's side gutters */
}
.topbar img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 10px rgba(36,59,83,.12); }
.topbar .brand { font-weight: 900; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.topbar nav { margin-left: auto; display: flex; gap: 18px; }
.topbar nav a { font-weight: 700; font-size: 14.5px; color: var(--ink-soft); }

/* ── Hero (homepage) ───────────────────────── */
.hero { text-align: center; padding: 44px 0 8px; }
.hero .logo-lg { width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 10px 28px rgba(36,59,83,.16); margin: 0 auto 22px; display: block; }
.hero h1 { font-size: clamp(30px, 7vw, 44px); font-weight: 900; letter-spacing: -.025em; margin: 0 0 14px; line-height: 1.08; text-wrap: balance; }
.hero p.lead { font-size: clamp(17px, 4.2vw, 20px); font-weight: 600; color: var(--ink-soft); max-width: 540px; margin: 0 auto; text-wrap: pretty; }

/* store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 11px 18px; min-width: 168px;
}
.badge svg { flex-shrink: 0; }
a.badge:hover { text-decoration: none; background: #1a2d40; }
.badge .b-small { font-size: 11px; font-weight: 600; opacity: .8; line-height: 1; display: block; white-space: nowrap; }
.badge .b-large { font-size: 18px; font-weight: 800; line-height: 1.15; display: block; white-space: nowrap; }

/* app preview: screenshot (in an iPhone frame) + promo video side by side,
   exactly the same size; stacked on narrow screens.
   Frame: 3% padding (percent of width) around the 1320x2868 screenshot →
   outer ratio 1 : 2.1022 (≈ a real iPhone, 0.476). The video box uses the
   same ratio and covers it (crops ~7.5% off each side of the 9:16 clip). */
.preview { margin: 40px auto 0; max-width: 349px; display: grid; gap: 28px; }
.phone {
  position: relative; padding: 3%; background: #1c1c1e; border-radius: 46px;
  box-shadow: inset 0 0 0 2px #48484a, 0 20px 50px rgba(36,59,83,.22);
}
.phone img { width: 100%; height: auto; display: block; border-radius: 37px; }
/* side buttons: action + volume (left), power (right) */
.phone::before, .phone::after {
  content: ''; position: absolute; width: 3px; background: #3a3a3c; border-radius: 2px;
}
.phone::before { left: -3px; top: 18%; height: 16%; background: linear-gradient(#3a3a3c 0 44%, transparent 44% 56%, #3a3a3c 56%); }
.phone::after { right: -3px; top: 24%; height: 11%; }

/* promo video — card-style, with a big play button over the poster */
.promo-player {
  position: relative; aspect-ratio: 1 / 2.1022; border-radius: 46px; overflow: hidden; /* same corners as .phone */
  background: #F3EEE9; box-shadow: var(--shadow);
}
.promo-player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(36,59,83,0) 55%, rgba(36,59,83,.18));
}
.promo-play[hidden] { display: none; }
.promo-play .circle {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; padding-left: 5px;
  background: rgba(255,255,255,.94); color: var(--peach); box-shadow: 0 12px 32px rgba(36,59,83,.28);
  transition: transform .15s ease;
}
.promo-play:hover .circle { transform: scale(1.06); }
.promo-play:focus-visible .circle { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (min-width: 640px) {
  /* items 311.5px wide, gap 28px */
  .preview { max-width: 651px; grid-template-columns: 1fr 1fr; align-items: start; }
  .phone, .promo-player { border-radius: 53px; }
  .phone img { border-radius: 43px; }
}

/* feature mini-row */
.feats { display: grid; gap: 14px; margin: 44px auto 0; max-width: 560px; }
.feat { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow); }
.feat .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-tint); color: var(--blue-deep); display: grid; place-items: center; flex-shrink: 0; }
.feat h3 { margin: 0 0 2px; font-size: 16px; font-weight: 800; }
.feat p { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); line-height: 1.4; }

/* ── Legal / text pages ────────────────────── */
.doc { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(26px, 6vw, 48px); margin: 26px 0 0; }
.doc h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 6px; }
.doc .updated { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 30px 0 8px; letter-spacing: -.01em; }
.doc p, .doc li { font-size: 15.5px; font-weight: 500; color: var(--ink-soft); }
.doc p { margin: 0 0 12px; }
.doc strong { color: var(--ink); font-weight: 800; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 7px; }

.callout {
  background: var(--peach-tint); border: 1px solid #F6C9A8; border-radius: var(--r-md);
  padding: 16px 18px; margin: 16px 0 18px;
}
.callout p { margin: 0; color: #8a4f24; font-weight: 600; }
.callout strong { color: #7a4118; }

/* ── Footer ────────────────────────────────── */
.site-footer { margin: 48px 0 0; border-top: 1px solid var(--hairline); }
.site-footer .wrap { padding-top: 26px; padding-bottom: 40px; }
.site-footer .f-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 22px; margin-bottom: 16px; }
.site-footer .f-links a { font-weight: 700; font-size: 14.5px; color: var(--ink-soft); }
.site-footer .f-meta { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.7; text-align: center; }
.site-footer .f-meta a { color: var(--muted); text-decoration: underline; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14.5px; margin-top: 24px; }

/* narrow phones: keep logo, name and both links on one line inside the gutter */
@media (max-width: 420px) {
  .topbar { gap: 9px; }
  .topbar img { width: 34px; height: 34px; border-radius: 10px; }
  .topbar .brand { font-size: 17px; }
  .topbar nav { gap: 12px; }
  .topbar nav a { font-size: 13.5px; }
}
@media (max-width: 350px) {
  .topbar { flex-wrap: wrap; }
  .topbar nav { margin-left: 0; width: 100%; }
}
