/* Dewbloom — the landing page. One stylesheet, no build step.
   The look follows the design canvas "Dewbloom landing page": a glossy garden scene on top,
   warm cream sections below. Colours are the game's own. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --cream: #FFF8E7;
  --sand: #F3EBCF;
  --ink: #33443A;
  --green: #1F5A2E;
  --leaf: #2E7D32;
  --sky-ink: #1C6B8F;
  --accent: #D9480F;
  --accent-shade: rgba(120, 40, 0, 0.35);
  --card-edge: #EADFC2;
  --phone: #17202A;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 700 17px/1.5 "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: #14401F; }
:focus-visible { outline: 3px solid #1B68AE; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: #fff; font-weight: 900; }
.skip:focus { top: 12px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 7vw, 96px); }
.band { background: var(--sand); }

.eyebrow { font-size: 14px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf); }
.title { margin-top: 8px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; font-weight: 900; color: var(--green); }
.lead { margin-top: 14px; font-size: 18px; }
.center { text-align: center; }
.center .title, .center .lead { margin-inline: auto; }
.center .title { max-width: 760px; }
.center .lead { max-width: 640px; }

/* ---- Buttons ---- */

.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px 14px 20px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  box-shadow: 0 6px 0 var(--accent-shade), 0 14px 24px rgba(120, 60, 0, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store[href]:hover { color: #fff; transform: translateY(-2px); }
.store[href]:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--accent-shade); }
.store svg { flex: none; }
.store__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store__text small { font-size: 13px; font-weight: 800; }
.store__text strong { font-size: 21px; font-weight: 900; }

.ghost {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 24px; border-radius: 999px;
  background: #fff; color: var(--green); font-size: 17px; font-weight: 900; text-decoration: none;
  box-shadow: 0 5px 0 rgba(30, 90, 120, 0.2);
  transition: transform 0.12s ease;
}
.ghost:hover { transform: translateY(-2px); }

/* ---- The top of the page: the garden as one scene ---- */

.hero {
  position: relative; overflow: hidden;
  padding: 0 24px clamp(120px, 14vw, 200px);
  background: linear-gradient(180deg, #8FD6FF 0%, #C9EDFF 46%, #EAF9FF 100%);
}
.cloud { position: absolute; }
.cloud--1 { top: 15%; left: 43%; width: 11%; min-width: 70px; opacity: 0.95; }
.cloud--2 { top: 7%; right: 3%; width: 8%; min-width: 56px; opacity: 0.9; }
.cloud--3 { top: 30%; left: -2%; width: 9%; min-width: 60px; opacity: 0.85; }

.ground { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(170px, 21vw, 300px); }
.hill { position: absolute; border-radius: 50%; }
.hill--1 { left: -10%; top: 34%; width: 66%; height: 160%; background: #6CCB4F; }
.hill--2 { right: -12%; top: 14%; width: 74%; height: 180%; background: #52B944; }
.hill--3 { left: 20%; top: 58%; width: 62%; height: 120%; background: #7ED957; }
.prop { position: absolute; }
.prop--cherry { left: -4%; bottom: 14%; width: 14%; min-width: 64px; }
.prop--greenhouse { left: 45%; bottom: 3%; width: 12.5%; min-width: 60px; }
.prop--apple { right: -3%; bottom: 20%; width: 13%; min-width: 60px; }
.prop--hydrangea { left: 9%; bottom: 4%; width: 9%; min-width: 46px; }
.prop--tulip { left: 24%; bottom: 6%; width: 5.5%; min-width: 34px; }
.prop--lavender { left: 36%; bottom: 5%; width: 7%; min-width: 40px; }
.prop--sunflower { right: 9%; bottom: 6%; width: 5.5%; min-width: 34px; }

.nav { position: relative; z-index: 2; max-width: 1160px; margin-inline: auto; padding-block: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--green); text-decoration: none; font-size: 26px; font-weight: 900; letter-spacing: -0.01em; }
.brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 3px 8px rgba(20, 70, 110, 0.25); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { padding: 12px 4px; font-size: 16px; font-weight: 800; text-decoration: none; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__cta { padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 900; text-decoration: none; box-shadow: 0 4px 0 var(--accent-shade); }
.nav__cta:hover { color: #fff; }

.hero__row { position: relative; z-index: 2; max-width: 1160px; margin-inline: auto; padding-top: clamp(16px, 3vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.hero__text { flex: 1 1 440px; min-width: 0; padding-bottom: clamp(0px, 2vw, 28px); }
.chip { display: inline-block; margin-bottom: 18px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--sky-ink); font-size: 15px; font-weight: 800; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; font-weight: 900; letter-spacing: -0.02em; color: var(--green); }
.hero h1 span { color: var(--sky-ink); }
.hero__lead { margin-top: 20px; max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); color: #2E5140; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__meta { margin-top: 18px; font-size: 15px; font-weight: 800; color: #1C5876; }

.hero__stage { flex: 1 1 380px; min-width: 0; }
.stage { position: relative; max-width: 500px; margin-inline: auto; aspect-ratio: 1 / 1.16; }
.stage .phone { position: absolute; right: 6%; top: 0; width: 52%; }
.stage__lily { position: absolute; left: -2%; bottom: 3%; width: 58%; filter: drop-shadow(0 18px 18px rgba(20, 70, 40, 0.3)); }

.phone { border-radius: 40px; border: 9px solid var(--phone); background: var(--phone); overflow: hidden; box-shadow: 0 22px 44px rgba(60, 50, 20, 0.25); }
.phone img { display: block; width: 100%; }

/* ---- The game in five numbers ---- */

.stats { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 40px; padding-bottom: 8px; }
.stat { flex: 1 1 170px; padding: 20px 18px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 4px 0 var(--card-edge); }
.stat b { display: block; font-size: 44px; line-height: 1; font-weight: 900; }
.stat span { display: block; margin-top: 6px; font-size: 15px; font-weight: 800; }

/* ---- Two columns: a phone and what it shows ---- */

.duo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 72px; }
.duo__phone { flex: 0 1 290px; }
.duo__text { flex: 1 1 400px; max-width: 540px; }
.how .duo { margin-top: 44px; gap: 40px 64px; }
.how .duo__text { flex-basis: 380px; max-width: 520px; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 4px 0 var(--card-edge); }
.step__n { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #2E97E6; color: #fff; font-size: 24px; font-weight: 900; box-shadow: 0 4px 0 #1B68AE; }
.step h3 { font-size: 20px; font-weight: 900; color: var(--green); }
.step p { margin-top: 4px; font-size: 16px; line-height: 1.45; }

.ticks { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; line-height: 1.45; }
.ticks svg { flex: none; margin-top: 1px; }

.ladder { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.ladder li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; font-weight: 800; box-shadow: 0 4px 0 var(--card-edge); }
.ladder b { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #FFB43A; color: #4A2B00; font-size: 20px; font-weight: 900; }
.aside { margin-top: 22px; display: flex; align-items: center; gap: 14px; line-height: 1.45; }
.aside img { flex: none; width: 96px; }

/* ---- Cards ---- */

.cards { margin-top: 40px; display: grid; gap: 16px; }
.cards--plants { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards--calm { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { padding: 22px; border-radius: 24px; background: #fff; box-shadow: 0 4px 0 #E0D4B0; }
.card img { height: 84px; width: auto; object-fit: contain; }
.card h3 { font-size: 20px; font-weight: 900; color: var(--green); }
.card img + h3 { margin-top: 12px; }
.card p { margin-top: 4px; font-size: 16px; line-height: 1.45; }

/* ---- The garden ---- */

.garden { background: #23742F; color: #fff; }
.garden .eyebrow { color: #FFE27A; }
.garden .title { color: #fff; }
.shelf { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 44px; }
.shelf figure { flex: 0 1 270px; }
.shelf .phone { border-radius: 38px; border-color: #0F2A16; background: #0F2A16; box-shadow: 0 22px 40px rgba(0, 0, 0, 0.3); }
.shelf figcaption { margin-top: 16px; text-align: center; line-height: 1.4; font-weight: 800; }
.garden__last { margin: 40px auto 0; max-width: 640px; text-align: center; }

/* ---- Questions ---- */

.faq { max-width: 820px; }
.faq__list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 18px 22px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--card-edge); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 900; color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 4px 0 6px; font-size: 16px; }

/* ---- The last word ---- */

.final { padding: 0 24px clamp(56px, 7vw, 96px); }
.final__card { max-width: 1040px; margin-inline: auto; padding: clamp(28px, 4vw, 52px); border-radius: 36px; background: #FFE9A6; box-shadow: 0 6px 0 #EBCB6B; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; }
.final__card > img { flex: 0 1 220px; width: 220px; filter: drop-shadow(0 14px 14px rgba(120, 80, 0, 0.25)); }
.final__text { flex: 1 1 380px; max-width: 520px; }
.final__text p { margin-top: 12px; font-size: 19px; line-height: 1.45; color: #3B3A1E; }
.final__text .store { margin-top: 22px; box-shadow: 0 6px 0 var(--accent-shade); }

.foot { background: var(--green); color: #FFF6DD; }
.foot .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.foot strong { font-size: 20px; font-weight: 900; }
.foot span { font-size: 15px; margin-right: auto; }
.foot a { padding: 12px 0; color: #FFF6DD; font-size: 15px; font-weight: 800; }

/* ---- A plain page: the "not found" page ---- */

.plain { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; text-align: center; }
.plain img { width: 200px; }
.plain h1 { margin-top: 18px; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 900; color: var(--green); }
.plain p { margin-top: 10px; }
.plain .ghost { margin-top: 22px; box-shadow: 0 5px 0 var(--card-edge); }

/* ---- Narrow screens ---- */

@media (max-width: 760px) {
  .nav { flex-wrap: nowrap; gap: 12px; }
  .nav__links { display: none; }
  .nav__cta { padding: 11px 16px; font-size: 15px; white-space: nowrap; }
  .brand { font-size: 22px; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  /* on a phone the words fill the sky: one cloud in the corner is enough */
  .cloud--1, .cloud--3 { display: none; }
  .stat { flex-basis: 140px; padding: 16px 12px; }
  .stat b { font-size: 38px; }
  .hero__actions .store, .hero__actions .ghost { flex: 1 1 auto; justify-content: center; }
  .stage { max-width: 380px; }
  .foot span { flex-basis: 100%; }
}

/* ---- A little life, for those who have not asked for stillness ---- */

@media (prefers-reduced-motion: no-preference) {
  .stage__lily { animation: bob 5s ease-in-out infinite; }
  .cloud--1 { animation: drift 38s ease-in-out infinite alternate; }
  .cloud--2 { animation: drift 46s ease-in-out infinite alternate-reverse; }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
  @keyframes drift { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
