/* DuoDen website. Colours mirror frontend/src/theme.ts: Cobalt (the app's default palette)
   in light mode, Midnight in dark mode. Type: Figtree for UI and body, Newsreader for
   headings, as in the app. */

:root {
  --bg: #FFFFFF;
  --canvas: #E9EEFA;
  --card: #EEF3FF;
  --surface: #FFFFFF;
  --ink: #15213B;
  --muted: #4A5672;
  --primary: #3056E8;
  --primary-deep: #2240B8;
  --on-primary: #FFFFFF;
  --accent: #F05A71;
  --accent-text: #C8344D;
  --link: #2A4BD0;
  --line: #DCE4F7;
  --line2: #C3CFEC;
  --tag-bg: #FFE3E8;
  --tag-text: #A82540;
  --night: #15213B;          /* dark panels (simBg) */
  --night-text: #E6ECF9;
  --night-muted: rgba(230, 236, 249, .72);
  --night-accent: #FF9EAD;
  --night-line: rgba(230, 236, 249, .14);
  --nav-bg: rgba(255, 255, 255, .86);
  --shadow-card: 0 8px 24px rgba(21, 33, 59, .07);
  --shadow-lift: 0 40px 70px -30px rgba(21, 33, 59, .45), 0 14px 30px -16px rgba(21, 33, 59, .3);

  /* The room inside the phone (Cobalt "Airy" room). Same in both schemes: it is a screen. */
  --wall: #F5F8FF;
  --wall2: #E6EDFC;
  --floor: #DCE4F6;
  --floor2: #C7D2EC;
  --bed1: #2240B8;
  --bed2: #3056E8;
  --bed4: #B7C7FA;
  --bowl1: #DB4760;
  --bowl3: #F05A71;

  --serif: "Newsreader", ui-serif, Georgia, serif;
  --ui: "Figtree", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r-md: 18px;
  --r-lg: 26px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111B2E;
    --canvas: #0B1322;
    --card: #18243A;
    --surface: #202E45;
    --ink: #EAF2FF;
    --muted: #AEBBD2;
    --primary: #EAF2FF;
    --primary-deep: #FFFFFF;
    --on-primary: #111B2E;
    --accent: #D7F65B;
    --accent-text: #D7F65B;
    --link: #D7F65B;
    --line: #2E3D57;
    --line2: #41526F;
    --tag-bg: #D7F65B;
    --tag-text: #111B2E;
    --night: #0B1322;
    --night-accent: #D7F65B;
    --nav-bg: rgba(17, 27, 46, .86);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lift: 0 40px 70px -30px rgba(0, 0, 0, .8), 0 14px 30px -16px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--primary); color: var(--on-primary); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; }
h1 em, h2 em { font-style: italic; color: var(--primary); }
h3 { font-family: var(--ui); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.005em; }
.label { display: block; font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; max-width: 34em; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lede { margin-top: 18px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { display: block; height: 34px; width: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); opacity: .8; }
.nav ul a:hover { opacity: 1; }
@media (max-width: 860px) { .nav ul { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; background: var(--primary); color: var(--on-primary); padding: 14px 22px; font: 600 16px/1 var(--ui); white-space: nowrap; transition: transform .2s var(--ease), background-color .2s; }
.btn:hover { background: var(--primary-deep); transform: translateY(-1px); }
.btn-soft { background: var(--card); color: var(--ink); }
.btn-soft:hover { background: var(--line); }
.nav .btn { padding: 11px 18px; font-size: 15px; }

/* App Store badge: Apple's artwork, unmodified, 48px tall with clear space around it. */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.badge { display: block; line-height: 0; border-radius: 9px; }
.badge img { height: 48px; width: 143.6px; }
.get small { font-size: 15px; color: var(--muted); }
.get small b { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--canvas), var(--bg)); padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero .lede { margin: 22px 0 32px; }
.eyebrow { display: inline-block; font: 600 13px/1 var(--ui); color: var(--tag-text); background: var(--tag-bg); padding: 8px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero-art { display: grid; gap: 14px; justify-items: center; }
.hero-art figcaption { font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The phone, drawn in CSS: a landscape iPhone showing the pet's room. */
.phone { width: 100%; max-width: 620px; aspect-ratio: 2.1 / 1; padding: 2.2%; border-radius: 9% / 19%; background: #0E1526; box-shadow: var(--shadow-lift), inset 0 0 0 2px #2A3550; }
.screen { position: relative; height: 100%; border-radius: 7.5% / 16%; overflow: hidden; background: linear-gradient(180deg, var(--wall), var(--wall2)); container-type: inline-size; }
.screen .wainscot { position: absolute; left: 0; right: 0; top: 40%; height: 26%; background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(21,33,59,.05) 9% 9.3%); border-top: 2px solid rgba(21,33,59,.06); }
.screen .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, var(--floor), var(--floor2)); border-top: 3px solid #FFFFFF; }
.screen .frame { position: absolute; left: 22%; top: 17%; width: 15%; aspect-ratio: 4 / 5; border-radius: 3px; background: #FFFFFF; padding: 1.2cqw; box-shadow: 0 6px 14px rgba(21,33,59,.16); }
.screen .frame i { display: block; height: 100%; border-radius: 1px; background: linear-gradient(160deg, #F7C9A8 0 30%, #E99B7C 30% 52%, #7B8FC9 52% 100%); }
.screen .clock { position: absolute; right: 18%; top: 12%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 .8cqw var(--bed2), 0 6px 14px rgba(21,33,59,.16); }
.screen .clock::before, .screen .clock::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 2px; margin-left: -1px; background: var(--night); border-radius: 2px; transform-origin: bottom center; }
.screen .clock::before { height: 30%; transform: rotate(-40deg); }
.screen .clock::after { height: 40%; transform: rotate(80deg); }
.screen .plant { position: absolute; left: 4%; bottom: 21%; width: 8%; aspect-ratio: 1 / 1.6; }
.screen .plant::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 34%; border-radius: 0 0 30% 30%; background: #F2F4F8; box-shadow: inset 0 -4px 0 rgba(21,33,59,.08); }
.screen .plant::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 72%; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 35% 35%, #8BC79A, #4F9A6A 70%); }
.screen .bed { position: absolute; right: 7%; bottom: 9%; width: 24%; aspect-ratio: 2.6 / 1; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, var(--bed4) 0 46%, var(--bed2) 48% 70%, var(--bed1) 72%); box-shadow: 0 8px 12px -6px rgba(21,33,59,.35); }
.screen .bowl { position: absolute; left: 17%; bottom: 8%; width: 10%; aspect-ratio: 2.4 / 1; border-radius: 40% 40% 50% 50% / 30% 30% 70% 70%; background: linear-gradient(180deg, var(--bowl3), var(--bowl1)); box-shadow: 0 6px 8px -4px rgba(21,33,59,.35); }
.screen .ball { position: absolute; left: 66%; bottom: 7%; width: 4.4%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FBA3B1, var(--bowl3) 60%); }
.screen .pet { position: absolute; left: 31%; bottom: 5%; width: 36%; filter: drop-shadow(0 10px 6px rgba(21,33,59,.22)); }
.screen .status { position: absolute; left: 3.5%; top: 6%; font: 600 max(10px, 2.3cqw)/1 var(--ui); color: #15213B; background: rgba(255,255,255,.92); padding: 1.3cqw 2cqw; border-radius: 999px; box-shadow: 0 4px 10px rgba(21,33,59,.12); }

/* ---------- Care grid ---------- */
.care-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--r-lg); padding: 26px; }
.card svg { width: 28px; height: 28px; color: var(--primary); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; }
@media (max-width: 960px) { .care-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .care-grid { grid-template-columns: 1fr; } }

/* ---------- Pets ---------- */
.pets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pets figure { margin: 0; }
.pets .shot { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #9A9A9C, #727275 80%); display: grid; place-items: end center; }
.pets .shot img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; padding: 8% 6% 4%; }
.pets .shot img.cover { object-fit: cover; padding: 0; }
.pets figcaption { margin-top: 12px; font-weight: 600; color: var(--ink); }
.pets figcaption span { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
.pets-note { margin-top: 26px; max-width: 46em; }
@media (max-width: 900px) { .pets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Room ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split h2 { margin-bottom: 18px; }
.split .lede + .lede { margin-top: 16px; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(-45deg); }
.ticks b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.panorama { border-radius: var(--r-lg); background: var(--card); padding: clamp(20px, 3vw, 32px); }
.panorama .strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.panorama .strip i { aspect-ratio: 3 / 4; border-radius: 10px; background: linear-gradient(180deg, #DCCFC0 0 62%, #A98B6D 62%); position: relative; overflow: hidden; }
.panorama .strip i::after { content: ""; position: absolute; top: 18%; height: 30%; width: 70%; border-radius: 4px; background: #9DB0DA; }
.panorama .strip i:nth-child(1)::after { left: 40%; }
.panorama .strip i:nth-child(2)::after { left: -30%; background: #9DB0DA; }
.panorama .strip i:nth-child(3)::after { left: 30%; background: #F7C9A8; width: 34%; }
.panorama .strip i:nth-child(4)::after { left: 10%; background: #8BC79A; width: 22%; top: 30%; height: 32%; border-radius: 50%; }
.panorama .arrow { display: block; margin: 14px auto; width: 22px; height: 22px; color: var(--muted); }
.panorama .wide { aspect-ratio: 3.4 / 1; border-radius: 12px; background:
  radial-gradient(ellipse 7% 24% at 77% 46%, #8BC79A 0 98%, transparent 100%),
  linear-gradient(90deg, transparent 0 14%, #9DB0DA 14% 44%, transparent 44% 58%, #F7C9A8 58% 66%, transparent 66%) 0 22% / 100% 34% no-repeat,
  linear-gradient(180deg, #DCCFC0 0 62%, #A98B6D 62%); }
.panorama p { margin-top: 14px; font-size: 15px; text-align: center; }

/* ---------- Duo ---------- */
.duo { background: var(--night); color: var(--night-muted); }
.duo h2 { color: var(--night-text); }
.duo h2 em { color: var(--night-accent); }
.duo .label { color: var(--night-accent); }
.duo .lede { color: var(--night-muted); }
.duo .ticks li { color: var(--night-muted); }
.duo .ticks li::before { border-color: var(--night-accent); }
.duo .ticks b { color: var(--night-text); }
.tent { width: min(100%, 440px); margin: 0 auto; }
.tent-cap { text-align: center; font-size: 14px; margin-top: 10px; color: var(--night-muted); }

/* ---------- Senses and Focus ---------- */
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trio .card { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.trio .off { display: inline-block; margin-top: 14px; font: 600 12px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--card); padding: 6px 9px; border-radius: 999px; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }

.timer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.timer span { padding: 10px 16px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; }
.timer span.on { background: var(--primary); color: var(--on-primary); }

/* ---------- Pricing ---------- */
.pricing { background: var(--canvas); }
.plan { max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: 30px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.plan .trial { display: inline-block; font: 600 13px/1 var(--ui); color: var(--tag-text); background: var(--tag-bg); padding: 8px 12px; border-radius: 999px; }
.plan .price { margin: 18px 0 4px; font: 400 clamp(48px, 7vw, 64px)/1 var(--serif); color: var(--ink); }
.plan .price small { font: 500 18px/1 var(--ui); color: var(--muted); }
.plan .ticks { margin: 22px 0 28px; }
.plan .fine { margin-top: 18px; font-size: 14px; line-height: 1.5; }
.plan .fine a { color: var(--link); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
footer { background: var(--night); color: var(--night-muted); padding: 52px 0 36px; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
footer .brand { color: var(--night-text); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--night-text); }
footer .small { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; }
footer .small a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal and support pages ---------- */
.doc { padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 10vw, 128px); }
.doc .wrap { max-width: 820px; }
.doc-head { margin-bottom: clamp(28px, 5vw, 48px); }
.doc h1 { font-size: clamp(40px, 6.5vw, 64px); margin-bottom: 14px; }
.doc .meta { font-size: 14px; }
.doc .lede { margin-top: 14px; }
.doc-body { max-width: 68ch; }
.doc-body h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; margin: clamp(40px, 5vw, 52px) 0 12px; scroll-margin-top: 90px; }
.doc-body h3 { margin: 26px 0 6px; }
.doc-body p + p { margin-top: 14px; }
.doc-body ul, .doc-body ol { margin: 12px 0 0; padding-left: 1.2em; }
.doc-body li { margin-bottom: 10px; padding-left: 4px; }
.doc-body li::marker { color: var(--accent-text); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a:not(.btn) { color: var(--link); text-underline-offset: 3px; }
.doc-body code { font-size: .92em; background: var(--card); padding: 1px 5px; border-radius: 5px; }
.toc { background: var(--card); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 8px; }
.toc b { display: block; font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 8px; break-inside: avoid; font-size: 15px; }
.toc a, .doc-body .toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.contact-card { background: var(--card); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 30px); display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.contact-card h2 { margin: 0 0 6px; font-size: 26px; }
.contact-card p { font-size: 15px; }
.faq-list h3 { margin-top: 30px; }
@media (max-width: 760px) {
  .toc ol { columns: 1; }
  .contact-card .btn { width: 100%; white-space: normal; }
}

/* Cookie consent banner (consent.js) and the footer "Cookie settings" button. */
.consent { position: fixed; z-index: 300; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--bg); color: var(--ink); border: 1px solid var(--line2); border-radius: 18px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.18); font: 15px/1.45 var(--ui); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; }
.consent a { color: var(--ink); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; }
.consent .btn { padding: 11px 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-ghost:hover { background: var(--card); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
