/* PIPO.hu – landing page styles
   Colours, sizes and spacing follow the Figma file "PIPO.hu" (page Webdesign). */

:root {
  --ink: #1f2328;
  --muted: #6e7378;
  --lilac: #a9a5e3;
  --indigo: #211c5a;
  --indigo-2: #3a3194;
  --indigo-card: #2a2470;
  --teal: #5ec8c6;
  --teal-dark: #1e7473;
  --teal-accent: #2e9c9b;
  --teal-ink: #17302f;
  --honey: #f2b53a;
  --peach: #f4a98a;
  --gutter: 80px;
  --maxw: 1280px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared type ---------- */
.label { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 20px; }
.display { font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
.d-84 { font-size: clamp(46px, 5.9vw, 84px); }
.d-64 { font-size: clamp(38px, 4.45vw, 64px); }
.d-52 { font-size: clamp(34px, 3.6vw, 52px); }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.accent-indigo { color: var(--indigo-2); }
.accent-teal { color: var(--teal-accent); }
.accent-lilac { color: var(--lilac); }
.br-d { display: inline; }

/* ---------- badges & tags ---------- */
.store-badge img { height: 54px; width: auto; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tag-free {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 21px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
.dot.honey { background: var(--honey); }
.dot.ink { background: var(--ink); }
.soon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; background: var(--honey);
  font-size: 12px; font-weight: 600; line-height: 18px; color: var(--ink); white-space: nowrap;
}

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.nav-bar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); transition: box-shadow .2s; }
.nav-bar.scrolled { box-shadow: 0 1px 0 rgba(31,35,40,.08); }
html { scroll-padding-top: 90px; }
.nav .logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 40px; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--indigo-2); }
.nav-badge img { height: 42px; width: auto; }
.lang { display: inline-flex; gap: 6px; font-size: 14px; color: rgba(31,36,41,.5); }
.lang .on { color: var(--ink); font-weight: 600; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 22px; border: 0;
  background: #f3f1fa; cursor: pointer; padding: 0; position: relative;
}
.menu-btn span { position: absolute; left: 13px; height: 2px; border-radius: 1px; background: var(--indigo); transition: transform .2s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; width: 18px; }
.menu-btn span:nth-child(2) { top: 21px; width: 14px; }
.menu-btn span:nth-child(3) { top: 27px; width: 18px; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero-wrap { padding: 0 16px; }
.hero-box {
  border-radius: 40px;
  background: linear-gradient(135deg, #f3f1fa 0%, #f7f6fc 55%, #e6f5f4 100%);
  max-width: 1408px; margin: 0 auto; overflow: hidden;
}
.hero { display: flex; gap: 40px; align-items: flex-start; justify-content: space-between; padding: 40px 64px 56px; }
.hero-copy { flex: 0 1 600px; display: flex; flex-direction: column; gap: 40px; padding-top: 0; }
.hero-copy .display { width: 640px; max-width: 100%; }
.hero-copy .text { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.store-btn {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  border-radius: 20px; min-height: 64px;
}
.store-btn .icon { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.store-btn .t { display: flex; flex-direction: column; }
.store-btn .name { font-size: 15px; font-weight: 600; line-height: 23px; display: flex; align-items: center; gap: 8px; }
.store-btn .sub { font-size: 12px; line-height: 18px; }
.store-btn.btn-sleep { background: var(--indigo); color: #fff; }
.store-btn.btn-sleep .sub { color: rgba(255,255,255,.65); }
.store-btn.btn-sleep .tag-free { padding: 3px 10px; font-size: 11px; line-height: 17px; }
.store-btn.btn-sleep .apple { width: 20px; height: 20px; margin-left: 4px; }
.store-btn.btn-routine { border: 1px dashed rgba(31,35,40,.6); padding-right: 22px; gap: 14px; cursor: default; }
.store-btn.btn-routine .sub { color: var(--muted); }
.store-btn.btn-sleep:hover { background: #2b2575; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; font-weight: 500; color: var(--muted); }
.meta li { display: flex; align-items: center; gap: 8px; }
.hero-media { flex: 0 1 640px; margin-right: -24px; position: relative; }
.hero-media img { width: 100%; }

/* ---------- facts strip ---------- */
.facts {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 26px; padding-bottom: 26px;
  font-size: 22px; letter-spacing: -0.02em; line-height: 33px;
}
.facts .l { font-weight: 300; }
.facts .sep { width: 12px; height: 12px; flex: none; color: var(--teal); }

/* ---------- Baby Sleep section ---------- */
.sleep {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #211c5a 0%, #14113a 100%);
  padding: 60px 0;
}
.ring { position: absolute; border-radius: 50%; border: 1px solid; pointer-events: none; transform: translate(-50%, -50%); left: 23%; top: 47%; }
.ring.r1 { width: 520px; height: 520px; border-color: rgba(169,165,227,.14); }
.ring.r2 { width: 760px; height: 760px; border-color: rgba(169,165,227,.10); }
.ring.r3 { width: 1000px; height: 1000px; border-color: rgba(169,165,227,.07); }
.sleep .wrap, .routine .wrap { position: relative; display: flex; flex-direction: column; gap: 88px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; }
.intro-main { display: flex; flex-direction: column; gap: 32px; flex: 0 1 780px; }
.intro-logo { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.intro-logo img { height: 64px; width: auto; }
.intro-side { flex: 0 1 420px; display: flex; flex-direction: column; gap: 28px; }
.sleep .intro-side p.copy { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.72); }
.sleep .try { font-size: 14px; color: rgba(255,255,255,.55); }
.sleep .try a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }

.showcase { display: flex; gap: 64px; align-items: center; }
.showcase .phones { flex: 0 1 600px; }
.sound-index { flex: 1 1 616px; display: flex; flex-direction: column; gap: 36px; }
.sound-index .label { color: rgba(255,255,255,.5); }
.cat { display: flex; gap: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.cat h3 { flex: 0 0 96px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.55); line-height: 21px; }
.cat ul { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 28px; line-height: 42px; max-width: 420px; }
.cat li { display: flex; align-items: center; gap: 10px; }
.cat li:nth-child(even) { font-weight: 300; }
.cat li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 468px; }
.card .visual { border-radius: 20px; overflow: hidden; }
.card .visual img, .lock img, .next-rest img, .detail img { width: 100%; }
.card h3 { font-size: 22px; line-height: 26px; }
.card .desc { font-size: 14px; line-height: 21px; font-weight: 300; }
.card .foot { font-size: 12px; line-height: 18px; margin-top: auto; }
.card .kicker { font-size: 13px; font-weight: 500; line-height: 20px; }
.card .statement { font-size: 23px; line-height: 1.22; font-weight: 500; }
.card .bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; font-size: 12px; line-height: 17px; }
.asterisk { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.asterisk svg { width: 18px; height: 18px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack .card { min-height: 0; flex: 1; }

.sleep .card.dark { background: var(--indigo-card); border: 1px solid rgba(255,255,255,.08); }
.sleep .card.dark .desc { color: rgba(255,255,255,.62); }
.sleep .card.dark .foot { color: rgba(255,255,255,.5); }
.sleep .card.lilac { background: var(--lilac); color: var(--indigo); }
.sleep .card.lilac .kicker, .sleep .card.lilac .bottom { color: rgba(33,28,90,.7); }
.sleep .card.lilac .statement .hl { color: var(--indigo-2); }
.sleep .card.lilac .asterisk { background: var(--indigo); color: var(--lilac); }
.lock img { border-radius: 22px; width: 100%; }
.card.white { background: #fff; color: var(--indigo); gap: 14px; }
.timer-head { font-size: 14px; font-weight: 500; }
.big-num { display: flex; align-items: center; gap: 10px; }
.big-num b { font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.big-num span { font-size: 12px; line-height: 16px; opacity: .6; }
.bar { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.bar .cap { opacity: .55; }
.bar .track { display: flex; gap: 4px; height: 10px; }
.bar .track i { border-radius: 5px; }
.bar .scale { display: flex; justify-content: space-between; font-size: 11px; opacity: .5; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.rows li { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(33,28,90,.08); font-size: 13px; line-height: 20px; }
.rows li i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rows li span { flex: 1; opacity: .75; }
.rows li b { font-weight: 500; }
.mini { padding: 20px; gap: 12px; }
.mini h3 { font-size: 18px; line-height: 27px; }
.mini .desc { font-size: 13px; line-height: 20px; }
.mini .thumb { border-radius: 16px; overflow: hidden; }

/* ---------- Baby Routine ---------- */
.routine { background: linear-gradient(180deg, #d7f1f0 0%, #ffffff 100%); padding: 60px 0; overflow: hidden; }
.routine .wrap { gap: 80px; }
.routine .intro { align-items: flex-end; }
.routine .intro-side .lead { max-width: 440px; }
.routine-phones { display: flex; justify-content: center; align-items: flex-end; gap: 32px; margin: 0 auto; width: 100%; }
.rphone { margin: 0; width: 338px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rphone.mid { width: 369px; }
.rphone img { width: 100%; }
.rphone figcaption { text-align: center; font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 300px; white-space: nowrap; }
.rphone figcaption b { display: block; font-weight: 500; color: var(--teal-ink); font-size: 15px; margin-bottom: 2px; }
.routine .card.white { color: var(--teal-ink); border: 1px solid rgba(14,42,42,.06); box-shadow: 0 10px 30px rgba(14,42,42,.07); }
.routine .card.white .desc { color: rgba(23,48,47,.65); }
.routine .card.white .foot { color: rgba(23,48,47,.5); }
.routine .card.teal { background: linear-gradient(180deg, #1e7473 0%, #123f3e 100%); color: #fff; }
.routine .card.teal .kicker { color: rgba(116,217,214,.9); }
.routine .card.teal .statement { font-size: 28px; }
.routine .card.teal .statement .hl { color: #74d9d6; }
.routine .card.teal .bottom { color: rgba(255,255,255,.7); }
.routine .card.teal .asterisk { background: #74d9d6; color: #123f3e; }
.next-rest img { border-radius: 16px; }
.plus-tag { align-self: flex-start; padding: 5px 12px; border-radius: 99px; background: #e3f5f4; color: var(--teal-dark); font-size: 12px; font-weight: 500; line-height: 18px; }
.routine .card h3.t20 { font-size: 20px; line-height: 25px; }
.detail img { border-radius: 16px; border: 1px solid rgba(14,42,42,.08); }
.routine .rows li { border-top-color: rgba(23,48,47,.08); }
.row-card { flex-direction: row; align-items: center; padding: 16px; gap: 14px; border-radius: 24px; min-height: 0; }
.row-card .thumb { width: 76px; flex: none; border-radius: 16px; overflow: hidden; }
.row-card h3 { font-size: 15px; line-height: 19px; margin-bottom: 4px; }
.row-card .desc { font-size: 12px; line-height: 17px; }
.routine .stack { gap: 12px; }

/* ---------- principles ---------- */
.section { padding: 60px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; }
.sec-head .main { display: flex; flex-direction: column; gap: 28px; flex: 0 1 780px; }
.sec-head .lead { flex: 0 1 420px; }
.principles .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.principle { display: flex; gap: 24px; padding-top: 28px; border-top: 1px solid rgba(31,35,40,.2); }
.principle img { width: 52px; height: 52px; flex: none; }
.principle h3 { font-size: 20px; line-height: 30px; margin-bottom: 16px; }
.principle p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- plans ---------- */
.plans { padding: 20px 0 60px; }
.plan-cards { display: grid; grid-template-columns: 456fr 800fr; gap: 24px; margin-top: 56px; }
.plan-sleep {
  border-radius: 28px; padding: 40px; color: #fff; display: flex; flex-direction: column; gap: 20px;
  background: linear-gradient(180deg, #3a3194 0%, #211c5a 100%); overflow: hidden;
}
.plan-sleep .app { width: 64px; height: 64px; border-radius: 14px; }
.plan-sleep .name { font-size: 15px; font-weight: 500; }
.plan-sleep h3 { font-size: 38px; line-height: 41px; letter-spacing: -0.02em; }
.plan-sleep p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.7); }
.plan-sleep .peek { margin: 4px -4px 0; }
.routine-plans {
  border-radius: 36px; padding: 24px; display: flex; flex-direction: column; gap: 24px;
  background: linear-gradient(127deg, #d7f1f0 0%, #edf9f7 100%);
}
.rp-head { display: flex; align-items: center; gap: 16px; padding: 8px 0 0 8px; }
.rp-head img { width: 56px; height: 56px; border-radius: 13px; }
.rp-head .title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 20px; font-weight: 600; line-height: 30px; }
.rp-head .soon { padding: 3px 10px; }
.rp-head p { font-size: 14px; color: rgba(31,35,40,.6); line-height: 21px; }
.rp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; flex: 1; }
.plan { border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.plan .tier { font-size: 15px; font-weight: 500; }
.plan .price { font-size: 38px; line-height: 41px; font-weight: 500; letter-spacing: -0.02em; margin-top: -16px; }
.plan .note { font-size: 14px; margin-top: -16px; }
.plan ul li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid; font-size: 15px; line-height: 23px; }
.plan ul li::before { content: "—"; font-size: 14px; flex: none; }
.plan .status {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 23px;
}
.plan .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--honey); }
.plan.free { background: #fff; color: var(--ink); }
.plan.free .tier { margin-bottom: 0; }
.plan.free .note { color: var(--muted); }
.plan.free ul li { border-color: rgba(31,35,40,.1); }
.plan.free ul li::before { color: var(--teal); }
.plan.free .status { background: #eef7f6; color: var(--teal-dark); }
.plan.plus { background: linear-gradient(155deg, #2e9c9b 0%, #1e7473 100%); color: #fff; box-shadow: 0 24px 50px rgba(30,116,115,.3); }
.plan.plus .note { color: rgba(255,255,255,.6); }
.plan.plus ul li { border-color: rgba(255,255,255,.2); }
.plan.plus ul li::before { color: #bff0ee; }
.plan.plus .status { background: rgba(255,255,255,.16); }

/* ---------- FAQ ---------- */
.faq { padding: 60px 0; }
.faq .sec-head .lead { flex: none; font-size: 15px; color: rgba(31,35,40,.6); }
.faq .sec-head .lead a { text-decoration: underline; text-underline-offset: 3px; }
.faq-body { display: flex; gap: 40px; margin-top: 64px; align-items: flex-start; }
.accordion { flex: 0 1 560px; }
.faq-panel { flex: 0 1 680px; }
.qa { border-bottom: 1px solid rgba(31,35,40,.1); border-radius: 0; transition: background .2s; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 30px 28px; font-size: 20px; line-height: 30px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa .ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 999px; transition: background .2s, transform .2s; }
.qa .ico svg { width: 14px; height: 14px; }
.qa .ico .arrow { display: none; }
.qa .answer { padding: 0 36px 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.qa .answer p { font-size: 16px; line-height: 1.6; color: rgba(31,35,40,.75); }
.qa .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.qa .chips span { background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; line-height: 21px; }
.qa[open] { background: #eeebfb; border-radius: 28px; border-bottom-color: transparent; }
.qa[open] summary { padding-top: 32px; font-size: 22px; line-height: 1.5; }
.qa[open] .ico { background: #1f1a3a; color: #fff; }
.qa[open] .ico .plus { display: none; }
.qa[open] .ico .arrow { display: block; }

/* ---------- final CTA ---------- */
.cta-wrap { padding: 24px; }
.cta {
  position: relative; max-width: 1392px; margin: 0 auto; border-radius: 40px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #3b3094 0%, #14123b 100%);
  padding: 120px 640px 80px 80px; min-height: 720px;
  display: flex; flex-direction: column; gap: 32px; justify-content: flex-end;
}
.cta .app { width: 136px; height: 136px; border-radius: 30px; }
.cta .text { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.75); max-width: 460px; }
.btn-outline {
  display: inline-flex; align-items: center; padding: 16px 22px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5); font-size: 15px; font-weight: 500; line-height: 23px;
}
.btn-outline:hover { background: rgba(255,255,255,.08); }
.cta .photo { position: absolute; right: 24px; top: 24px; bottom: 24px; width: 600px; }
.cta .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }

/* ---------- footer ---------- */
.footer { padding: 72px 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; }
.foot-brand img { height: 36px; width: auto; margin-bottom: 12px; }
.foot-brand p { font-size: 15px; color: var(--muted); }
.foot-cols { display: flex; gap: 96px; }
.foot-cols h4 { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; line-height: 20px; }
.foot-cols li { font-size: 15px; line-height: 23px; margin-bottom: 12px; }
.foot-cols a:hover { color: var(--indigo-2); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(31,35,40,.12); font-size: 13px; color: var(--muted); }
.foot-bottom .lang { font-size: 13px; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .nav-links { gap: 24px; }
  .hero { padding: 40px 40px 48px; }
  .hero-copy .display { width: auto; }
  .facts { flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 18px; }
  .intro, .sec-head { gap: 40px; }
  .showcase { flex-direction: column; gap: 56px; }
  .showcase .phones { max-width: 600px; }
  .sound-index { width: 100%; }
  .showcase .phones, .sound-index { flex: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { min-height: 0; }
  .principles .cols { grid-template-columns: 1fr; gap: 28px; }
  .plan-cards { grid-template-columns: 1fr; }
  .plan-sleep .peek { max-width: 480px; }
  .faq-panel { display: none; }
  .rphone { width: 30%; } .rphone.mid { width: 33%; }
  .accordion { flex: 1; }
  .cta { padding: 80px 48px 48px; min-height: 0; justify-content: flex-start; }
  .cta .photo { position: static; width: auto; max-width: 600px; margin-top: 16px; }
  .cta .photo img { border-radius: 28px; }
  .foot-top { flex-direction: column; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav { position: relative; flex-wrap: wrap; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    width: 100%; order: 3; padding: 24px 4px 8px; font-size: 18px;
  }
  .hero { flex-direction: column; align-items: center; }
  .hero-copy { flex: none; width: 100%; }
  .hero-media { flex: none; margin: 0 auto; max-width: 520px; width: 100%; }
  .intro, .routine .intro { flex-direction: column; align-items: flex-start; }
  .intro-main, .intro-side { flex: none; width: 100%; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .sec-head .main, .sec-head .lead { flex: none; }
  .faq-body { margin-top: 40px; }
}

/* =========================================================
   Mobile (Figma: 390 px frames)
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .nav .logo img { height: 26px; }
  .hero-wrap { padding: 0 10px; }
  .hero-box { border-radius: 32px; }
  .hero { padding: 32px 20px 24px; gap: 36px; }
  .hero-copy { gap: 24px; }
  .hero-copy .text { font-size: 16px; }
  .store-btn { width: 100%; }
  .store-btn.btn-sleep .apple { margin-left: auto; }
  .hero-media { max-width: 330px; margin-left: 4px; }
  .facts { flex-wrap: nowrap; justify-content: flex-start; gap: 10px; padding: 18px 20px; font-size: 14px; line-height: 21px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .facts::-webkit-scrollbar { display: none; }
  .facts .sep { width: 9px; height: 9px; }

  .sleep, .routine, .section, .faq { padding: 32px 0; }
  .plans { padding: 12px 0 32px; }
  .sleep .wrap { gap: 48px; }
  .routine .wrap { gap: 40px; }
  .intro { gap: 28px; }
  .intro-main { gap: 24px; }
  .intro-logo img { height: 52px; }
  .ring { display: none; }
  .showcase { gap: 40px; }
  .cat { flex-direction: column; gap: 10px; padding-top: 16px; }
  .cat h3 { flex-basis: auto; }
  .cat ul { font-size: 18px; line-height: 30px; gap: 4px 16px; }
  .sound-index { gap: 24px; }

  .features { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .routine-phones { justify-content: center; }
  .rphone:not(.mid) { display: none; }
  .rphone.mid { width: 100%; max-width: 300px; }
  .rphone figcaption { white-space: normal; }
  .routine .card.teal .statement { font-size: 24px; }

  .principles .cols { margin-top: 40px; }
  .principle { gap: 18px; }
  .principle h3 { font-size: 18px; margin-bottom: 8px; line-height: 26px; }

  .plan-cards { margin-top: 40px; gap: 20px; }
  .plan-sleep { padding: 28px 24px; }
  .plan-sleep h3 { font-size: 30px; line-height: 34px; }
  .routine-plans { padding: 16px; border-radius: 28px; }
  .rp-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rp-cards { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
  .plan .price { font-size: 30px; line-height: 36px; }
  .plan .status { font-size: 14px; padding: 14px 12px; white-space: nowrap; }
  .plan { gap: 20px; }

  .qa summary { padding: 22px 4px; font-size: 16px; line-height: 1.45; }
  .qa .ico { width: 36px; height: 36px; }
  .qa[open] summary { padding: 24px 20px 4px; font-size: 17px; }
  .qa .answer { padding: 12px 20px 24px; }
  .qa .answer p { font-size: 15px; }

  .cta-wrap { padding: 10px; }
  .cta { padding: 48px 24px 24px; border-radius: 32px; gap: 24px; }
  .cta .app { width: 88px; height: 88px; border-radius: 20px; }
  .cta .text { font-size: 16px; }
  .store-badge img { height: 50px; }

  .footer { padding: 48px 0 40px; }
  .foot-cols { flex-wrap: wrap; gap: 28px 40px; }
  .foot-bottom { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
