/* Dayseye — website styles.
   Built from the iOS app itself: Shared/BloomColors.xcassets, BloomDays/DesignSystem
   and the App Store screenshots. Components mirror the app's: day cards, the pinned
   hero card, chips, grouped rows, the gradient "Nuovo" button and the paywall plans. */

:root {
  --bg: #fff7fb;
  --bg-alt: #f5f0ff;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.95);
  --separator: rgba(42, 24, 56, 0.08);
  --fill: rgba(42, 24, 56, 0.06);

  --ink: #2a1838;
  --ink-2: #3d2b4c;
  --ink-soft: #6e5a7e;

  --primary: #7452e8;
  --primary-strong: #5b3cc9;
  --on-primary: #ffffff;
  --down: #b39cff;
  --up: #ff9ec4;
  --up-text: #c2306f;
  --chip: #2a1838;
  --on-chip: #ffffff;
  --soft-btn: #ede6ff;
  --soft-btn-text: #5b3cc9;
  --danger-tint: #ffe4e9;

  --hero-start: #ffdceb;
  --hero-end: #fff3f8;
  --hero-border: rgba(255, 255, 255, 0.95);
  --down-start: #e9e1ff;
  --down-end: #f8f4ff;
  --fab-start: #c2306f;
  --fab-end: #7452e8;
  --glow-lavender: rgba(179, 156, 255, 0.38);
  --glow-petal: rgba(255, 158, 196, 0.3);
  --track: #f6dbe7;
  --track-down: #e9e1ff;

  --lavender-bg: #e3d9ff; --lavender-ink: #7452e8;
  --petal-bg: #ffd6e7;    --petal-ink: #c2306f;
  --peach-bg: #ffe1d2;    --peach-ink: #b5562a;
  --mint-bg: #dff4ec;     --mint-ink: #17795a;
  --sky-bg: #e2eaff;      --sky-ink: #3d5dc2;
  --plum-bg: #ede3f2;     --plum-ink: #6e5a7e;

  --warn-bg: #fff1de;
  --warn-ink: #6b3b00;

  --shadow-card: 0 8px 24px rgba(116, 82, 232, 0.1);
  --shadow-group: 0 1px 3px rgba(42, 24, 56, 0.06);
  --shadow-fab: 0 14px 30px rgba(116, 82, 232, 0.35);
  --shadow-phone: 0 40px 80px rgba(116, 82, 232, 0.28);

  --r-chip: 10px;
  --r-input: 16px;
  --r-group: 22px;
  --r-card: 28px;
  --r-hero: 32px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", Nunito, -apple-system, "PingFang SC", sans-serif;
  --max: 1160px;
  --nav-h: 80px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120c1a;
    --bg-alt: #1c1426;
    --surface: #1c1426;
    --glass: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --separator: rgba(255, 255, 255, 0.1);
    --fill: rgba(255, 255, 255, 0.08);

    --ink: #f7f0ff;
    --ink-2: #e6daf2;
    --ink-soft: #b8a8c8;

    --primary: #bfa9ff;
    --primary-strong: #bfa9ff;
    --on-primary: #120c1a;
    --down: #9d86f5;
    --up: #f07aae;
    --up-text: #ffa8cb;
    --chip: #f7f0ff;
    --on-chip: #120c1a;
    --soft-btn: #2a2245;
    --soft-btn-text: #bfa9ff;
    --danger-tint: #3a1f2a;

    --hero-start: #3a1f33;
    --hero-end: #22162b;
    --hero-border: rgba(255, 168, 203, 0.18);
    --down-start: #2a2245;
    --down-end: #1c1426;
    --fab-start: #f07aae;
    --fab-end: #9d86f5;
    --glow-lavender: rgba(157, 134, 245, 0.26);
    --glow-petal: rgba(240, 122, 174, 0.2);
    --track: rgba(255, 255, 255, 0.1);
    --track-down: rgba(255, 255, 255, 0.1);

    --lavender-bg: #2a2245; --lavender-ink: #bfa9ff;
    --petal-bg: #3a1f33;    --petal-ink: #ffa8cb;
    --peach-bg: #3a2a22;    --peach-ink: #ffb48a;
    --mint-bg: #1b3329;     --mint-ink: #5fd3a6;
    --sky-bg: #1f2840;      --sky-ink: #9db6ff;
    --plum-bg: #2a2030;     --plum-ink: #c9b4da;

    --warn-bg: #3a2a14;
    --warn-ink: #ffc46e;

    --shadow-card: none;
    --shadow-group: none;
    --shadow-fab: 0 14px 30px rgba(0, 0, 0, 0.4);
    --shadow-phone: 0 40px 80px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; padding: 0; }
svg { flex: none; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.round { font-family: var(--font-round); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ambient background — AmbientBackground in the app: blush with two blooms of light */
.ambient { position: absolute; inset: 0 0 auto; height: 1400px; pointer-events: none; z-index: -1; overflow: hidden; }
.ambient::before, .ambient::after { content: ""; position: absolute; border-radius: 50%; }
.ambient::before { width: 820px; height: 820px; right: -260px; top: -300px; background: radial-gradient(closest-side, var(--glow-lavender), transparent); }
.ambient::after { width: 700px; height: 700px; left: -300px; top: 420px; background: radial-gradient(closest-side, var(--glow-petal), transparent); }

/* ——— Small building blocks ——— */
.caps {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.chip svg { width: 16px; height: 16px; }
.chip.dark { background: var(--chip); color: var(--on-chip); }
.chip.down { color: var(--primary); }
.chip.up { color: var(--up-text); }
.chip.sm { height: 30px; padding: 0 12px; font-size: 14px; }

.tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
}
.tile svg { width: 22px; height: 22px; }
.tile.sm { width: 32px; height: 32px; border-radius: 9px; }
.tile.sm svg { width: 17px; height: 17px; }
.tile.mini { width: 22px; height: 22px; border-radius: 7px; }
.tile.mini svg { width: 13px; height: 13px; }
.t-lavender { background: var(--lavender-bg); color: var(--lavender-ink); }
.t-petal { background: var(--petal-bg); color: var(--petal-ink); }
.t-peach { background: var(--peach-bg); color: var(--peach-ink); }
.t-mint { background: var(--mint-bg); color: var(--mint-ink); }
.t-sky { background: var(--sky-bg); color: var(--sky-ink); }
.t-plum { background: var(--plum-bg); color: var(--plum-ink); }

.progress { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--up), var(--up-text)); width: var(--p, 50%); }
.progress.down { background: var(--track-down); }
.progress.down > span { background: linear-gradient(90deg, var(--up), var(--primary)); }

/* Buttons — the app's: gradient FAB, primary "Condividi", soft "Modifica", dark chip */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn-gradient { background: linear-gradient(110deg, var(--fab-start), var(--fab-end)); color: #fff; box-shadow: var(--shadow-fab); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px rgba(116, 82, 232, 0.25); }
.btn-soft { background: var(--soft-btn); color: var(--soft-btn-text); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 16px;
  background: var(--chip);
  color: var(--on-chip);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
  transition: transform 0.2s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 24px; height: 24px; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; }

.circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.circle-btn svg { width: 20px; height: 20px; }

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.site-nav.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  border-bottom-color: var(--separator);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-round); font-weight: 900; font-size: 24px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 16px rgba(179, 156, 255, 0.35); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.2s;
}
.nav-links a:not(.btn):hover { background: var(--fill); }
.nav-links a.is-active { background: var(--chip); color: var(--on-chip); }
.nav-links .btn { margin-left: 8px; }

.nav-toggle { display: none; }

/* ——— Hero ——— */
.hero { position: relative; padding: 32px 0 80px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-title { margin: 0; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.hero-title span { color: var(--primary); }
.hero-lead { margin: 0; color: var(--ink-soft); font-size: 1.25rem; line-height: 1.5; max-width: 520px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fine { font-size: 14px; color: var(--ink-soft); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }

/* Phone frame around a real screenshot */
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 1320 / 2868;
  border-radius: 54px;
  padding: 11px;
  background: #1a1022;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, var(--shadow-phone);
  flex: none;
}
.phone picture { display: block; width: 100%; height: 100%; }
.phone img { display: block; width: 100%; height: 100%; border-radius: 44px; object-fit: cover; background: var(--bg-alt); }
.phone.float { animation: float 7s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Floating widget — the small Home Screen widget */
.widget {
  position: absolute;
  z-index: 2;
  width: 160px;
  height: 160px;
  border-radius: 34px;
  padding: 16px;
  background: linear-gradient(160deg, #ffb8d4, #f07aae);
  color: #2a1838;
  box-shadow: 0 20px 40px rgba(194, 48, 111, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  left: calc(50% - 250px);
  bottom: 70px;
  animation: float 6s ease-in-out infinite 0.6s;
}
.widget .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: #5c0f33; text-transform: uppercase; }
.widget .top svg { width: 18px; height: 18px; }
.widget .n { font-family: var(--font-round); font-size: 52px; font-weight: 900; line-height: 0.95; }
.widget .t { font-size: 14px; font-weight: 700; color: #5c0f33; }

.widget.lock {
  left: auto;
  right: calc(50% - 260px);
  bottom: auto;
  top: 90px;
  width: 150px;
  height: auto;
  border-radius: 24px;
  padding: 14px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  gap: 6px;
  animation-delay: 1.2s;
}
.widget.lock .top { color: var(--primary); }
.widget.lock .n { font-size: 40px; }
.widget.lock .n small { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.widget.lock .t { color: var(--ink-2); font-weight: 600; }

/* ——— Section headings (the app's "In arrivo & in corso" + "Ordina") ——— */
section { position: relative; padding: 56px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.sec-head h2 { margin: 6px 0 0; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
.sec-head p { margin: 10px 0 0; max-width: 560px; font-size: 1.125rem; color: var(--ink-soft); }
.sec-head .link { font-size: 18px; font-weight: 600; color: var(--primary); }
.sec-head .link:hover { text-decoration: underline; }

/* ——— Pinned hero card (count up) & detail hero (count down) ——— */
.count-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-hero);
  padding: 26px 28px 24px;
  background: linear-gradient(160deg, var(--hero-start), var(--hero-end));
  border: 1px solid var(--hero-border);
  box-shadow: 0 14px 34px rgba(194, 48, 111, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-petal), transparent);
  pointer-events: none;
}
.hero-card.down {
  background: linear-gradient(160deg, var(--down-start), var(--down-end));
  box-shadow: 0 14px 34px rgba(116, 82, 232, 0.12);
}
.hero-card.down::before { background: radial-gradient(closest-side, var(--glow-lavender), transparent); }
.hero-card > * { position: relative; }

.hero-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-card .pin { color: var(--up-text); width: 22px; height: 22px; }
.hero-card .label { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--up-text); margin-top: 4px; }
.hero-card.down .label { color: var(--primary); }
.big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big .n { font-family: var(--font-round); font-size: clamp(64px, 9vw, 104px); font-weight: 900; line-height: 0.92; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big .u { font-size: 24px; font-weight: 600; color: var(--up-text); }
.hero-card.down .big .u { color: var(--primary); }
.hero-card .name { font-size: 22px; font-weight: 600; }
.hero-card .date { font-size: 16px; color: var(--ink-soft); }
.hero-card .foot { font-size: 15px; color: var(--ink-soft); }
.hero-card .chip { box-shadow: none; }

.breakdown { display: flex; flex-wrap: wrap; gap: 8px; }
.breakdown span { padding: 8px 14px; border-radius: 16px; background: var(--surface); font-size: 15px; color: var(--ink-soft); }
.breakdown b { font-size: 20px; color: var(--ink); margin-right: 4px; }

/* ——— Day cards (the 2-column grid on Home) ——— */
.day-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

.day-card {
  border-radius: var(--r-card);
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.22s;
}
.day-card:hover { transform: translateY(-3px); }
.day-card .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.day-card .tag { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--primary); }
.day-card .tag.up { color: var(--up-text); }
.day-card .tag svg { width: 14px; height: 14px; }
.day-card .big .n { font-size: 52px; font-weight: 800; color: var(--primary); }
.day-card .big .n.up { color: var(--up-text); }
.day-card .big .u { font-size: 17px; color: var(--ink-soft); }
.day-card .name { margin-top: 10px; font-size: 18px; font-weight: 600; }
.day-card .date { font-size: 15px; color: var(--ink-soft); }

/* ——— Screenshot gallery ——— */
.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 20px 40px;
  margin: 0 -20px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; flex: none; }
.shot .phone { width: 250px; border-radius: 44px; padding: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 24px 50px rgba(116, 82, 232, 0.2); }
.shot .phone img { border-radius: 36px; }
.shot .phone picture { border-radius: 36px; }
.shot figcaption { text-align: center; max-width: 240px; }
.shot figcaption b { display: block; font-size: 17px; }
.shot figcaption span { font-size: 15px; color: var(--ink-soft); }

.gallery-nav { display: flex; gap: 10px; }

/* ——— Feature list (the paywall's list card) & grouped rows ——— */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }

.list-card {
  border-radius: var(--r-card);
  padding: 10px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.list-card .item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; }
.list-card .item + .item { border-top: 1px solid var(--separator); }
.list-card .item h3 { margin: 0; font-size: 18px; font-weight: 700; }
.list-card .item p { margin: 2px 0 0; color: var(--ink-soft); }
.list-card .item .tile { margin-top: 2px; }

.badge-plus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--soft-btn);
  color: var(--soft-btn-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}
.badge-plus svg { width: 11px; height: 11px; }

.grouped {
  border-radius: var(--r-group);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-group);
  padding: 0 20px;
}
.grouped > * + * { border-top: 1px solid var(--separator); }

.g-row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 0; }
.g-row .txt { flex: 1; min-width: 0; }
.g-row .txt b { display: block; font-size: 17px; font-weight: 600; }
.g-row .txt span { display: block; font-size: 15px; color: var(--ink-soft); }
.g-row .val { font-weight: 600; text-align: right; }
.g-row .chev { width: 16px; height: 16px; color: var(--ink-soft); opacity: 0.7; }
a.g-row:hover .txt b { color: var(--primary); }

/* FAQ as grouped rows */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 16px; height: 16px; color: var(--ink-soft); transition: transform 0.2s; }
.faq-item[open] summary svg { transform: rotate(90deg); }
.faq-item p { margin: -4px 0 0; padding: 0 0 18px; color: var(--ink-soft); line-height: 1.6; }
.faq-item a { color: var(--primary-strong); text-decoration: underline; }

/* ——— Pricing: the paywall ——— */
.paywall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.paywall-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 32px; }
.paywall-head img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 16px 34px rgba(179, 156, 255, 0.45); }
.paywall-head .caps { color: var(--primary); font-weight: 800; letter-spacing: 0.16em; }
.paywall-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.025em; font-weight: 800; }
.paywall-head p { margin: 0; color: var(--ink-soft); font-size: 1.125rem; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan {
  position: relative;
  text-align: left;
  border-radius: 24px;
  padding: 18px 20px;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow-group);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.plan:hover { transform: translateY(-2px); }
.plan.wide { grid-column: 1 / -1; padding: 22px; }
.plan .check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--fill);
  display: none;
  place-items: center;
  flex: none;
}
.plan .check svg { width: 16px; height: 16px; opacity: 0; }
.plan b { display: block; font-size: 20px; font-weight: 700; }
.plan span { display: block; font-size: 16px; color: var(--ink-soft); }
.plan[aria-pressed="true"] { border-color: var(--primary); }
.plan.wide .check { display: grid; }
.plan[aria-pressed="true"] .check { display: grid; background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.plan[aria-pressed="true"] .check svg { opacity: 1; }
.plan .ribbon {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #c2306f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.plan.free { grid-column: 1 / -1; background: transparent; border-style: dashed; border-color: var(--separator); box-shadow: none; cursor: default; }
.plan.free:hover { transform: none; }

.plan-cta { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: 6px; }
.plan-cta .btn { width: 100%; }
.plan-cta p { margin: 0; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* ——— Apple Watch & iPad strip ——— */
.devices { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.device-card {
  border-radius: var(--r-hero);
  padding: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.device-card h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.device-card p { margin: 4px 0 0; color: var(--ink-soft); }
.ipad-frame { border-radius: 24px; padding: 8px; background: #1a1022; box-shadow: 0 20px 44px rgba(116, 82, 232, 0.2); }
.ipad-frame img { border-radius: 17px; width: 100%; }
.watches { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: auto 0; }
.watch { width: 170px; border-radius: 40px; padding: 10px; background: #1a1022; box-shadow: 0 16px 34px rgba(42, 24, 56, 0.25); }
.watch img { border-radius: 30px; width: 100%; }

/* ——— Download band ——— */
.download {
  border-radius: var(--r-hero);
  padding: 44px 36px;
  background: linear-gradient(160deg, var(--hero-start), var(--down-start));
  border: 1px solid var(--hero-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.download .who { display: flex; align-items: center; gap: 18px; }
.download img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px rgba(179, 156, 255, 0.4); }
.download h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.download p { margin: 2px 0 0; color: var(--ink-soft); }

/* ——— Footer ——— */
.site-footer { padding: 40px 0 48px; color: var(--ink-soft); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--separator); }
.site-footer .brand { font-size: 20px; color: var(--ink); }
.site-footer .brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; }
.footer-meta { display: grid; gap: 2px; margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.footer-links a, .footer-links > span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; box-shadow: var(--shadow-group); }
.footer-links a:hover { color: var(--primary); }

/* ——— Legal & support pages (the app's detail screen) ——— */
.page-top { padding: 20px 0 8px; }
.page-top .container { max-width: 820px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.page-top h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.page-top p { margin: 0; color: var(--ink-soft); font-size: 1.125rem; }

.page-body { max-width: 820px; padding: 24px 0 72px; display: flex; flex-direction: column; gap: 16px; }

.notice { border-radius: 18px; padding: 14px 18px; background: var(--warn-bg); color: var(--warn-ink); font-size: 15px; line-height: 1.5; margin: 0; }

.doc {
  border-radius: var(--r-card);
  padding: 12px 32px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.doc h2 { margin: 28px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.doc p, .doc li { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); }
.doc p { margin: 8px 0; }
.doc ul { padding-left: 1.2rem; margin: 8px 0; }
.doc strong { color: var(--ink); }
.doc a, .page-body a.inline { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 2px; }
.doc .lede { font-size: 1.125rem; color: var(--ink); margin-top: 20px; }

.page-body .sub { margin: 20px 4px 0; }

/* ——— Reveal on scroll ——— */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js-reveal .reveal.visible { opacity: 1; transform: none; }

/* ——— Responsive ——— */
@media (max-width: 1000px) {
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .devices { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { padding-top: 0; }
  .count-grid, .split, .paywall { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  .container { width: min(100% - 32px, var(--max)); }

  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) - 4px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 18px 18px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(42, 24, 56, 0.16);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li + li { border-top: 1px solid var(--separator); }
  .nav-links a:not(.btn) { height: 52px; padding: 0; border-radius: 0; font-size: 17px; }
  .nav-links a:not(.btn):hover { background: none; color: var(--primary); }
  .nav-links a.is-active { background: none; color: var(--primary); }
  .nav-links li:last-child { border-top: 0; }
  .nav-links .btn { margin: 12px 0 0; width: 100%; }

  .brand { font-size: 22px; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }

  .hero { padding: 12px 0 48px; }
  .hero-lead { font-size: 1.125rem; }
  .phone { width: 270px; }
  .widget { left: 0; bottom: 40px; width: 128px; height: 128px; border-radius: 28px; padding: 13px; }
  .widget .n { font-size: 42px; }
  .widget.lock { display: none; }
  .gallery { margin: 0 -16px; padding: 10px 16px 32px; gap: 20px; }

  section { padding: 40px 0; }
  .hero-card { padding: 22px 20px 20px; }
  .day-grid { gap: 12px; }
  .day-card { padding: 16px; }
  .day-card .big .n { font-size: 42px; }
  .day-card .name { font-size: 16px; }
  .shot .phone { width: 220px; }
  .doc { padding: 6px 20px 22px; }
  .download { padding: 28px 22px; }
  .plans { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════ Marketing layout (v3) ═══════════════════ */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container.narrow { max-width: 820px; }
:lang(zh) .caps { letter-spacing: 0.06em; }
:lang(zh) .hero-title, :lang(zh) .sec-head h2, :lang(zh) .story h2 { letter-spacing: 0; }

/* Language switch */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.lang-switch a { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-group); }
.nav-links .nav-lang { margin-left: 6px; }
.footer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

/* Hero: trust row + fanned phones */
.hero { padding: 24px 0 56px; }
.hero-title { font-size: clamp(2.7rem, 6.4vw, 4.9rem); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 4px 0 0; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--mint-bg); color: var(--mint-ink); box-sizing: content-box; }

.hero-visual { min-height: 660px; align-items: center; }
.hero-glow { position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-lavender), transparent 70%), radial-gradient(closest-side at 30% 70%, var(--glow-petal), transparent 70%); filter: blur(10px); z-index: 0; }
.hero-visual .phone { position: absolute; top: 50%; left: 50%; }
.hero-visual .phone.main { width: 300px; z-index: 2; transform: translate(-50%, -50%); animation: floatMain 7s ease-in-out infinite; }
.hero-visual .phone.side { width: 250px; z-index: 1; opacity: 0.96; }
.hero-visual .phone.side.left { transform: translate(-108%, -46%) rotate(-9deg); }
.hero-visual .phone.side.right { transform: translate(8%, -46%) rotate(9deg); }
@keyframes floatMain { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 10px)); } }
.hero-visual .widget { z-index: 3; left: calc(50% - 290px); bottom: 40px; }
.hero-visual .widget.lock { z-index: 3; right: calc(50% - 345px); left: auto; top: 36px; bottom: auto; }
@media (max-width: 1000px) { .hero-visual .widget.lock { right: calc(50% - 250px); top: 60px; } }
@media (max-width: 720px) { .hero-visual .widget.lock { right: 0; } }

/* Marquee of example days */
.marquee { position: relative; display: flex; overflow: hidden; padding: 6px 0 18px; -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: flex; gap: 12px; flex: none; margin: 0; padding: 0 6px; list-style: none; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.m-item { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-group); white-space: nowrap; }
.m-title { font-weight: 600; }
.m-n { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-round); font-weight: 900; font-size: 18px; color: var(--primary); }
.m-n.up { color: var(--up-text); }
.m-n svg { width: 14px; height: 14px; }
.m-n small { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* Section headings */
.sec-head.center { flex-direction: column; align-items: center; text-align: center; margin-inline: auto; max-width: 720px; }
.sec-head.center p { margin-inline: auto; }
.sec-head.row-head { margin: 44px 0 0; align-items: center; }
.sec-head.row-head h3 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; }

/* Stories: text + phone, alternating */
.stories .container { display: flex; flex-direction: column; gap: 32px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.story.flip .story-copy { order: 2; }
.story-copy { display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
.story-copy h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; }
.story-copy p { margin: 0; font-size: 1.15rem; color: var(--ink-soft); }
.checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 500; }
.checks svg { width: 14px; height: 14px; padding: 5px; border-radius: 50%; background: var(--soft-btn); color: var(--soft-btn-text); box-sizing: content-box; margin-top: 1px; }
.story-visual { position: relative; display: flex; justify-content: center; padding: 48px 20px; border-radius: 40px; overflow: hidden; }
.story-visual.lav { background: linear-gradient(160deg, var(--down-start), var(--down-end)); }
.story-visual.petal { background: linear-gradient(160deg, var(--hero-start), var(--hero-end)); }
.story-visual.mint { background: linear-gradient(160deg, var(--mint-bg), var(--bg-alt)); }
.story-visual .phone { width: 270px; }

/* Widgets on a Home Screen */
.homescreen { border-radius: 40px; padding: 40px 32px 28px; background: radial-gradient(120% 90% at 0% 0%, #ffb8d4 0%, transparent 55%), radial-gradient(110% 90% at 100% 100%, #b39cff 0%, transparent 60%), linear-gradient(160deg, #f6c6dc, #cdbdff); box-shadow: var(--shadow-card); }
.hs-grid { display: grid; grid-template-columns: repeat(3, 170px) 360px; justify-content: center; gap: 28px 26px; }
.wg-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wg-fig figcaption { font-size: 14px; font-weight: 600; color: #3d2b4c; }
.wg { position: relative; width: 170px; height: 170px; border-radius: 36px; padding: 16px; overflow: hidden; display: flex; flex-direction: column; color: #2a1838; box-shadow: 0 14px 30px rgba(42, 24, 56, 0.18); }
.wg-fig.wide .wg { width: 360px; }
.wg-classic { background: linear-gradient(135deg, #ffffff, rgba(227, 217, 255, 0.95)); }
.wg-top { display: flex; justify-content: space-between; align-items: center; }
.tile.mini-30 { width: 30px; height: 30px; border-radius: 10px; }
.tile.mini-30 svg { width: 16px; height: 16px; }
.wg-tag { font-size: 11px; font-weight: 800; color: #7452e8; letter-spacing: 0.02em; }
.wg-n { font-family: var(--font-round); font-size: 50px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin-top: auto; }
.wg-classic .wg-n { color: #7452e8; }
.wg-title { font-size: 15px; font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-sub { font-size: 12px; color: #6e5a7e; }
.wg-bold { background: linear-gradient(135deg, #ffb8d4, #ff9ec4); }
.wg-bold .wg-n { font-size: 42px; }
.wg-over { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: rgba(42, 24, 56, 0.75); text-transform: uppercase; }
.wg-foot { font-size: 13px; font-weight: 800; color: rgba(42, 24, 56, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-bg-icon { position: absolute; width: 74px; height: 74px; right: -14px; top: -12px; color: rgba(255, 255, 255, 0.4); }
.wg-ring { background: #1c1426; color: #f7f0ff; align-items: center; justify-content: center; gap: 8px; }
.ring { --p: 43%; position: relative; width: 104px; height: 104px; border-radius: 50%; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #ffb8d4, #b39cff var(--p), rgba(255, 255, 255, 0.1) var(--p)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px)); mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px)); }
.wg-ring .ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.wg-ring .ring-holder { position: relative; }
.ring-n { display: block; font-family: var(--font-round); font-size: 32px; font-weight: 900; color: #ffb8d4; line-height: 1; }
.ring-u { display: block; font-size: 10px; font-weight: 600; color: #b8a8c8; }
.ring-title { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.ring-title svg { width: 14px; height: 14px; }
.wg-medium { flex-direction: row; gap: 14px; background: #ffffff; padding: 14px; }
.med-hero { width: 150px; flex: none; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; background: linear-gradient(135deg, #ffd6e7, #fff3f8); }
.med-hero .wg-over { color: #c2306f; font-size: 10px; }
.med-hero .wg-n { font-size: 38px; }
.med-sub { font-size: 12px; font-weight: 600; color: #c2306f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.med-list { flex: 1; list-style: none; margin: 0; padding: 2px 0; display: flex; flex-direction: column; justify-content: space-around; min-width: 0; }
.med-list li { display: flex; align-items: center; gap: 9px; }
.med-list .dot { width: 8px; height: 8px; border-radius: 50%; background: #b39cff; flex: none; }
.med-list .dot.up { background: #ff9ec4; }
.med-list .nm { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.med-list .v { font-family: var(--font-round); font-size: 20px; font-weight: 900; color: #7452e8; }
.med-list .v.up { color: #c2306f; }

/* Lock Screen + Watch cards */
.widgets-sec .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.device-card .device-copy h3 { margin: 0; text-align: center; font-size: 18px; font-weight: 700; }
.lockscreen { background: linear-gradient(170deg, #3a1f33 0%, #2a2245 55%, #120c1a 100%); color: #fff; align-items: center; justify-content: space-between; border: none; }
.lockscreen .device-copy h3 { color: #fff; }
.ls-time { display: flex; flex-direction: column; align-items: center; font-family: var(--font-round); font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.ls-date { font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: 0; opacity: 0.85; margin-bottom: 6px; }
.ls-row { display: flex; gap: 14px; align-items: center; }
.ls-circ { width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-content: center; text-align: center; }
.ls-n { font-family: var(--font-round); font-size: 24px; font-weight: 900; line-height: 1; }
.ls-t { font-size: 8px; font-weight: 800; letter-spacing: 0.04em; }
.ls-rect { display: flex; align-items: center; gap: 10px; height: 74px; padding: 0 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ls-rect svg { width: 22px; height: 22px; }
.ls-rect b { display: block; font-family: var(--font-round); font-size: 22px; font-weight: 900; line-height: 1.1; }
.ls-rect div > span { font-size: 12px; font-weight: 600; opacity: 0.85; }
.watches { margin: auto 0; }

/* iPad band */
.ipad-band { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px; align-items: center; margin-top: 24px; padding: 32px; border-radius: 40px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-card); }
.ipad-copy h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.ipad-copy p { margin: 8px 0 0; font-size: 1.1rem; color: var(--ink-soft); }

/* Privacy band */
.privacy-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 48px; border-radius: 40px; background: linear-gradient(160deg, #2a1838, #3a1f50); color: #f7f0ff; }
.privacy-band .caps { color: #bfa9ff; }
.pv-head h2 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; }
.pv-head p { margin: 0 0 16px; font-size: 1.125rem; color: #d9cbe8; }
.pv-head .link { color: #ffb8d4; font-weight: 600; }
.pv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pv-list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: center; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }
.pv-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(191, 169, 255, 0.18); color: #bfa9ff; }
.pv-icon svg { width: 24px; height: 24px; }
.pv-list b { font-size: 17px; }
.pv-list span:not(.pv-icon) { font-size: 15px; color: #cbbcdb; }

/* Final CTA */
.final-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 24px; padding: 56px 56px 0; border-radius: 44px; background: linear-gradient(120deg, #c2306f, #7452e8); color: #fff; }
.final-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 56px; }
.final-copy img { width: 84px; height: 84px; border-radius: 21px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.final-copy h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; }
.final-copy p { margin: 0; font-size: 1.15rem; color: #f3e9ff; }
.store-badge.light { background: #fff; color: #2a1838; }
.final-phones { display: flex; justify-content: center; gap: 18px; align-self: end; }
.final-phones .phone { width: 220px; aspect-ratio: auto; height: 340px; border-radius: 40px 40px 0 0; padding: 9px 9px 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25); }
.final-phones .phone img { height: auto; border-radius: 32px 32px 0 0; object-fit: cover; object-position: top; }
.final-phones .phone:first-child { margin-top: 48px; }

/* Responsive for the new blocks */
@media (max-width: 1100px) {
  .hs-grid { grid-template-columns: repeat(3, 170px); }
  .wg-fig.wide { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .hero-visual .phone.side { display: none; }
  .hero-visual { min-height: 640px; }
  .widgets-sec .devices { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .story, .ipad-band, .privacy-band, .final-card { grid-template-columns: 1fr; }
  .story.flip .story-copy { order: 0; }
  .story { gap: 24px; }
  .final-card { padding: 40px 28px 0; }
  .final-copy { padding-bottom: 8px; }
  .privacy-band { padding: 32px 24px; }
  .footer-side { align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav-links .nav-lang { margin: 12px 0 0; border-top: 0 !important; }
  .nav-links .nav-lang .lang-switch { width: 100%; justify-content: space-between; }
  .nav-links .nav-lang .lang-switch a { flex: 1; justify-content: center; height: 40px; }
  .hero-visual { min-height: 590px; }
  .hero-visual .phone.main { width: 260px; }
  .hero-visual .widget { left: 0; bottom: 30px; }
  .hs-grid { grid-template-columns: repeat(2, 140px); gap: 20px 16px; }
  .hs-grid > .wg-fig:nth-child(3) { grid-column: 1 / -1; }
  .homescreen { padding: 28px 16px 20px; border-radius: 32px; }
  .wg { width: 140px; height: 140px; border-radius: 30px; padding: 13px; }
  .wg-fig.wide .wg { width: 296px; }
  .wg-n { font-size: 40px; }
  .wg-bold .wg-n { font-size: 34px; }
  .ring { width: 84px; height: 84px; }
  .ring-n { font-size: 26px; }
  .med-hero { width: 128px; }
  .med-hero .wg-n { font-size: 30px; }
  .story-visual { padding: 32px 16px; border-radius: 32px; }
  .story-visual .phone { width: 230px; }
  .ls-time { font-size: 60px; }
  .ipad-band { padding: 20px; border-radius: 32px; }
  .final-phones .phone { width: 150px; height: 230px; border-radius: 30px 30px 0 0; }
  .final-phones .phone img { border-radius: 24px 24px 0 0; }
  .m-item { height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
