/* Homora landing page. Same palette and type as the app. */
:root {
  --bg: #fbf7f2; --card: #fff; --ink: #2b2420; --muted: #6e6259; --line: #ece4da; --soft: #f4ede4;
  --accent: #bd4c1b; --accent-bright: #e86a3a; --good: #167a54; --violet: #8e5bd6;
  --radius: 22px; --shadow: 0 2px 0 rgba(60, 40, 20, .04), 0 10px 30px rgba(60, 40, 20, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Nunito', -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 21px; letter-spacing: 0; }
p { margin: 0; }
.hidden { display: none !important; }
main > section { max-width: 1120px; margin: 0 auto; padding: 64px 20px; }

.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; padding: 14px 26px; border-radius: 999px; min-height: 48px; text-align: center; transition: transform .12s, box-shadow .12s; box-shadow: 0 4px 0 #94380f; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #94380f; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.btn.big { font-size: 20px; padding: 17px 34px; }
.btn.small { padding: 9px 18px; min-height: 0; font-size: 16px; box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.fine { color: var(--muted); font-size: 15px; font-weight: 700; }

/* nav */
.nav { max-width: 1120px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px; }
.nav nav a:not(.btn):hover { color: var(--accent); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding-top: 36px !important; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); font-weight: 700; margin: 18px 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.invite { display: inline-block; background: #efe7fb; color: #4b2a8c; border-radius: 14px; padding: 10px 16px; font-weight: 800; margin-bottom: 18px; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.hero-art .deco { position: absolute; right: -10px; bottom: 10px; width: 46%; max-width: 300px; opacity: .95; }
.eyebrow { display: inline-block; background: #dff5ea; color: var(--good); font-weight: 900; font-size: 15px; border-radius: 999px; padding: 5px 14px; margin-bottom: 14px; }

/* phone frame holding a real screenshot or the recording */
.phone { position: relative; z-index: 1; width: 270px; margin: 0; background: #2b2420; border-radius: 38px; padding: 9px; box-shadow: 0 24px 50px rgba(60, 40, 20, .26); }
.phone .screen { display: block; width: 100%; height: auto; border-radius: 30px; background: var(--bg); }
.demo { position: relative; z-index: 1; margin: 0; }
.demo figcaption { text-align: center; font-size: 14px; font-weight: 800; color: var(--muted); margin-top: 16px; }
.hero .phone { transform: rotate(-2deg); }
.phone.s { width: 100%; max-width: 230px; border-radius: 30px; padding: 7px; box-shadow: 0 14px 34px rgba(60, 40, 20, .2); margin: 0 auto; }
.phone.s .screen { border-radius: 24px; aspect-ratio: 640 / 1150; object-fit: cover; object-position: top; }

/* the reading path */
.reading, .adapts, .family { text-align: center; }
.sub { color: var(--muted); font-weight: 700; max-width: 40em; margin: 12px auto 0; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 36px; text-align: left; }
.step { margin: 0; }
.step figcaption, .cards figcaption { margin-top: 14px; color: var(--muted); font-weight: 700; font-size: 16px; line-height: 1.45; }
.step figcaption b, .cards figcaption b { display: block; color: var(--ink); font-size: 19px; font-weight: 900; margin-bottom: 2px; }
.read-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 26px 16px; text-align: center; aspect-ratio: 640 / 1180; display: flex; flex-direction: column; justify-content: center; gap: 12px; max-width: 230px; margin: 0 auto; }
.read-card span { font-size: 25px; font-weight: 800; line-height: 1.3; }
.read-card small { color: var(--muted); font-weight: 800; font-size: 15px; }
.read-card em { font-style: normal; font-weight: 800; background: #c9f0dc; color: #0f6b43; border-radius: 14px; padding: 10px; }
.read-card em.off { background: var(--soft); color: var(--ink); }
.path { margin-top: 40px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.chips span { background: var(--card); border-radius: 999px; padding: 8px 16px; font-weight: 800; box-shadow: 0 1px 0 rgba(60, 40, 20, .08); }
.chips i { font-style: normal; color: var(--accent); margin-left: 6px; }

/* how it adapts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; text-align: left; }
.facts div { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.facts p { color: var(--muted); font-weight: 700; font-size: 16px; margin-top: 8px; }

/* family organizer */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; text-align: left; }
.cards figure { margin: 0; }
.fridge-row { margin-top: 40px; text-align: left; }
.fridge-shot { width: 100%; max-width: 330px; margin: 0 auto; display: block; border: 10px solid #d9dde0; border-radius: 22px; box-shadow: var(--shadow); }
.feature-pair { padding-top: 20px !important; }

/* ways to add */
.how { text-align: center; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 34px; text-align: left; }
.way { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.way img { display: block; height: 96px; width: auto; margin-bottom: 10px; }
.way img.small { height: 72px; margin: 12px 0 22px; }
.way img.round { border-radius: 50%; }
.way p { color: var(--muted); font-size: 16px; font-weight: 700; margin-top: 6px; }
.check { margin-top: 26px; font-weight: 900; font-size: 20px; color: var(--good); }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 34px 0; }
.feature.flip > :first-child { order: 2; }
.feature > img { width: 100%; max-width: 380px; margin: 0 auto; display: block; }
.feature > .phone.s { max-width: 250px; }
.feature > img.narrow { max-width: 260px; }
.feature p { color: var(--muted); font-weight: 700; margin-top: 12px; }
.feature ul, .trust ul, .plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.feature li, .trust li, .plan li { position: relative; padding: 5px 0 5px 30px; font-weight: 700; }
.feature li:before, .trust li:before, .plan li:before { content: '✓'; position: absolute; left: 0; top: 5px; width: 21px; height: 21px; line-height: 21px; text-align: center; border-radius: 50%; background: #dff5ea; color: var(--good); font-weight: 900; font-size: 13px; }

/* fridge example */
.fridge { width: 100%; max-width: 330px; margin: 0 auto; background: var(--bg); border: 10px solid #d9dde0; border-radius: 26px; padding: 16px; box-shadow: var(--shadow); font-size: 14px; }
.f-clock { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.f-clock small { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.f-date { color: var(--muted); font-weight: 800; margin: 2px 0 12px; }
.f-kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.f-kids div { background: var(--card); border-radius: 14px; border-bottom: 5px solid var(--c); text-align: center; padding: 8px 4px; box-shadow: 0 1px 0 rgba(60, 40, 20, .06); }
.f-kids img { width: 44px; height: 44px; border-radius: 50%; display: block; margin: 0 auto 2px; }
.f-kids b { display: block; }
.f-kids span { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.f-card { background: var(--card); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 0 rgba(60, 40, 20, .06); }
.f-card p { font-weight: 700; padding: 3px 0; }
.f-card i { font-style: normal; font-weight: 900; display: inline-block; width: 38px; }
.f-card em { font-style: normal; background: #fff1d6; color: #8a5a00; border-radius: 8px; padding: 0 6px; font-weight: 800; font-size: 12px; }

/* trust */
.trust { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; background: var(--card); border-radius: 32px; box-shadow: var(--shadow); padding: 44px !important; margin-top: 30px !important; }
.trust img { width: 100%; }
.trust li b { font-weight: 900; }
.trust p { margin-top: 14px; font-weight: 800; }

/* pricing */
.pricing { text-align: center; }
.pricing .sub { color: var(--muted); font-weight: 800; margin-top: 10px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; justify-content: center; margin-top: 30px; text-align: left; }
.plan { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; }
.plan.plus { border: 3px solid var(--accent-bright); background: linear-gradient(170deg, #fff6ee, #fff 60%); }
.price { font-size: 32px; font-weight: 900; margin-top: 4px; letter-spacing: -.02em; }
.yearly { font-weight: 800; color: var(--muted); }
.yearly span { background: #dff5ea; color: var(--good); border-radius: 999px; padding: 2px 10px; font-size: 14px; margin-left: 4px; white-space: nowrap; }
.plan ul { flex: 1; margin-bottom: 22px; }

/* faq */
.faq { max-width: 760px !important; }
.faq h2 { text-align: center; margin-bottom: 22px; }
details { background: var(--card); border-radius: 16px; box-shadow: 0 1px 0 rgba(60, 40, 20, .06); margin-bottom: 10px; padding: 0 20px; }
summary { cursor: pointer; font-weight: 900; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary:after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--accent); }
details[open] summary:after { content: '–'; }
details p { color: var(--muted); font-weight: 700; padding-bottom: 18px; }

.final { text-align: center; }
.final h2 { margin: 6px 0 22px; }
.final .fine { margin-top: 14px; }

footer { max-width: 1120px; margin: 0 auto; padding: 26px 20px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 700; font-size: 15px; border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  body { font-size: 17px; }
  main > section { padding: 44px 18px; }
  .nav nav a:not(.btn):not(.signin) { display: none; }
  .nav nav { gap: 14px; }
  .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 14px !important; }
  .hero-art { min-height: 0; padding: 10px 0 0; }
  .hero-art .deco { display: none; }
  .hero .phone { width: 250px; }
  .steps, .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-left: -18px; margin-right: -18px; padding: 6px 18px 14px; -webkit-overflow-scrolling: touch; }
  .step, .cards figure { flex: 0 0 72%; max-width: 270px; scroll-snap-align: center; }
  .facts { grid-template-columns: 1fr; }
  .feature .phone.s { max-width: 220px; }
  .cta-row .btn { flex: 1 1 100%; }
  .feature { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
  .feature.flip > :first-child { order: 0; }
  .feature > img { max-width: 280px; }
  .trust { grid-template-columns: 1fr; padding: 28px 22px !important; margin: 10px 14px 0 !important; text-align: left; }
  .trust img { max-width: 170px; margin: 0 auto; display: block; }
  .plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- "tap an age" ---------- */
.try { text-align: center; }
.try-ages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 18px; }
.try-ages button { border: 2px solid transparent; background: var(--card); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 1px 0 rgba(60, 40, 20, .08); color: var(--ink); }
.try-ages button.on { background: var(--accent); color: #fff; }
.try-box { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; max-width: 900px; margin: 0 auto 22px; }
.try-plan, .try-sample { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.try-plan h3 { font-size: 22px; margin: 0 0 10px; }
.try-plan ul { margin: 0; padding-left: 20px; }
.try-plan li { margin-bottom: 8px; font-weight: 700; color: var(--muted); }
.try-sample { background: #fff8e6; }
.try-label { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; color: #8a6400; }
.try-q { font-size: 22px; font-weight: 900; margin: 8px 0 14px; line-height: 1.3; }
.try-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.try-opts button { flex: 1 1 90px; border: 0; border-radius: 16px; background: #fff; padding: 16px 10px; font: inherit; font-size: 22px; font-weight: 900; cursor: pointer; box-shadow: 0 2px 0 rgba(60, 40, 20, .12); color: var(--ink); }
.try-opts button.right { background: #c9f0dc; color: #0f6b43; }
.try-opts button.wrong { background: #f1ece6; color: #a59a8f; }
.try-why { margin-top: 12px; font-weight: 800; color: #0f6b43; min-height: 24px; opacity: 0; transition: opacity .25s; }
.try-why.show { opacity: 1; }
.try-why.soft { color: var(--muted); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; }
.founding { background: #fff3d6; border-radius: 14px; padding: 10px 12px; margin: 10px 0; font-weight: 700; font-size: 15px; }
@media (max-width: 760px) {
  .try-box { grid-template-columns: 1fr; }
  .try-ages button { padding: 8px 12px; font-size: 14px; }
}
