/*
 * Andrumly website. One light look, the same as the app (whatever the phone's dark mode):
 * a soft mint-to-blush background, white rounded cards, deep green headings, Nunito with Lora
 * for the quiet voice lines. Every section uses the same card, radius and spacing.
 */
:root {
  color-scheme: light;
  --bg: #f1f6f3;
  --mint: #dcebe4;
  --blush: #f6e9e2;
  --surface: #ffffff;
  --ink: #2c3a36;
  --heading: #2f4f47;
  --muted: #64776f;
  --leaf: #4a7167;
  --leaf-soft: #e3eee9;
  --line: #dde8e3;
  --on-leaf: #ffffff;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --voice: "Lora", Georgia, "Times New Roman", serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(47, 79, 71, 0.04), 0 8px 24px -12px rgba(47, 79, 71, 0.18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65;
  background:
    radial-gradient(48rem 32rem at -10% -5%, var(--mint), transparent 65%),
    radial-gradient(44rem 30rem at 110% 0%, var(--blush), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.2rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 800; }
p { margin: 0; }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
.voice { font-family: var(--voice); font-style: italic; color: var(--muted); font-size: clamp(1.15rem, 2.3vw, 1.35rem); }
.muted { color: var(--muted); }

/* Header and footer */
.top { padding-block: 22px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand img { height: 32px; width: auto; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; font-weight: 700; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 99px; }
.top nav a[aria-current="page"] { color: var(--heading); background: var(--surface); box-shadow: var(--shadow); }
.top nav a:hover { color: var(--heading); }
footer { margin-top: 80px; padding-block: 28px 44px; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Shared card: every block on the site uses it */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card p { color: var(--muted); }

/* Home: hero */
.hero { padding-block: 40px 24px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero .copy { display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 1.12rem; max-width: 33em; }
.cta { display: flex; gap: 14px 18px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 99px; font-weight: 800; text-decoration: none; background: var(--leaf); color: var(--on-leaf); }
.cta .note { color: var(--muted); font-size: 0.95rem; }
.phone { width: min(330px, 100%); justify-self: center; border-radius: 36px; box-shadow: 0 30px 60px -28px rgba(47, 79, 71, 0.45); }

/* Home: sections */
.section { padding-block: 56px 0; display: flex; flex-direction: column; gap: 24px; }
.section > header { display: flex; flex-direction: column; gap: 8px; max-width: 40em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.shot { display: flex; flex-direction: column; gap: 14px; }
.shot img { border-radius: 26px; box-shadow: var(--shadow); }
.shot figcaption { color: var(--muted); font-size: 0.96rem; padding-inline: 4px; }
.shots { margin: 0; }
.premium { background: var(--leaf-soft); box-shadow: none; padding: 32px; gap: 12px; }
.premium p { color: var(--ink); max-width: 46em; }

/* Text pages: help, privacy */
.doc { padding-block: 24px 0; display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); margin-bottom: 4px; }
.doc h2 { font-size: 1.3rem; margin-top: 22px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.meta { color: var(--muted); font-size: 0.95rem; }
details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 20px; }
summary { font-weight: 800; color: var(--heading); cursor: pointer; }
details > p, details > ul { margin-top: 10px; }
details + details { margin-top: 2px; }
.contact { font-size: 1.15rem; font-weight: 800; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 16px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-3.shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 560px) {
  .grid-3.shots { grid-template-columns: minmax(0, 1fr); max-width: 340px; margin-inline: auto; }
  .card { padding: 20px; }
}

/* Listek says the tagline: he sways, blinks now and then, and smiles when you point at him. */
.says { display: flex; align-items: center; gap: 14px; }
.listek { width: 64px; height: auto; flex: none; transform-origin: 50% 95%; animation: sway 6s ease-in-out infinite; cursor: default; }
.listek .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.listek .mouth-happy { opacity: 0; transition: opacity 0.25s; }
.listek .mouth-calm { transition: opacity 0.25s; }
.listek:hover .mouth-happy, .says:hover .mouth-happy { opacity: 1; }
.listek:hover .mouth-calm, .says:hover .mouth-calm { opacity: 0; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

/* The phone with its screens fading one into the next. */
.carousel { justify-self: center; width: min(330px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.frames { position: relative; width: 100%; aspect-ratio: 600 / 1299; border-radius: 36px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(47, 79, 71, 0.45); background: var(--surface); }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.frame.on { opacity: 1; }
.dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.dot.on { background: var(--leaf); transform: scale(1.2); }
.dot:focus-visible, button.button:focus-visible, input:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

/* Savings calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; padding: 28px; }
.sliders { display: flex; flex-direction: column; gap: 6px; }
.sliders label { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--heading); margin-top: 10px; }
.sliders output { color: var(--leaf); font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; accent-color: var(--leaf); height: 28px; }
.result { background: var(--leaf-soft); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.result .big { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1.1; }
.small { font-size: 0.92rem; }

/* "Tell me when it launches" */
.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px; }
.wl-copy { display: flex; flex-direction: column; gap: 8px; }
.wl-copy p { color: var(--muted); }
#wl { display: flex; flex-direction: column; gap: 10px; }
.wl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-row input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 12px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
button.button { font: inherit; font-weight: 800; border: 0; cursor: pointer; }
button.button:disabled { opacity: 0.6; cursor: wait; }
.wl-msg { min-height: 1.4em; font-weight: 700; color: #9a4b2f; }
.wl-msg.ok { color: var(--leaf); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 860px) {
  .calc, .waitlist { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .listek, .listek .eyes { animation: none; }
  .frame, .dot { transition: none; }
}
