/* Deenable website. Colours are the app's Garden theme (src/index.css), light and dark. Every section is
   one rounded field of colour: a large heading on the left, plain reading text on the right. Real app
   screenshots appear whole, never cropped, and only where they show something words can't. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F7F8F4;
  --surface: #FFFFFF;
  --ink: #17251E;
  --muted: #526158;
  --accent: #176B46;
  --on-accent: #FFFFFF;
  --deco: #B58A35;
  --soft: #E4EEE6;
  --accent-bg: #176B46;
  --accent-ink: #FFFFFF;
  --accent-muted: #D3E8DA;
  --line: rgba(23, 37, 30, 0.12);
  --ring: #176B46;

  --radius: 28px;
  --margin: 12px;
  --pad-x: clamp(24px, 6vw, 96px);
  --pad-y: clamp(72px, 10vw, 152px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;

  /* Five type steps. */
  --step-small: 15px;
  --step-body: 17px;
  --step-lead: clamp(18px, 1.3vw, 20px);
  --step-heading: clamp(24px, 2.2vw, 32px);
  --step-display: clamp(40px, 4.6vw, 72px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101A15;
    --surface: #17261E;
    --ink: #F1F7F2;
    --muted: #AFBFB3;
    --accent: #8ED5AB;
    --on-accent: #102018;
    --deco: #D6B76B;
    --soft: #1C2E24;
    --accent-bg: #1F4A33;
    --accent-ink: #F1F7F2;
    --accent-muted: #C9DFD0;
    --line: rgba(241, 247, 242, 0.14);
    --ring: #8ED5AB;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 10; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 999px; }
.skip:focus { top: var(--margin); }

/* One button shape for the whole page. On a green field it turns light. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: var(--step-body);
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), opacity var(--t-hover) ease;
}
.button:hover { opacity: 0.9; }
.button:active { transform: scale(0.97); }
.button-light { background: var(--accent-ink); color: var(--accent-bg); }

/* ---------- Top bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark svg { width: 1.2em; height: 1.2em; fill: none; stroke-linecap: round; }
.arch-deco { stroke: var(--deco); stroke-width: 2; }
.arch-ink { stroke: var(--ink); stroke-width: 1.5; }
.bar nav { display: flex; gap: 28px; font-size: var(--step-small); }
.bar nav a { text-decoration: none; padding: 8px 0; }
.bar nav a:hover { text-decoration: underline; }

/* ---------- Panels: the one section shape ---------- */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--margin); padding: 0 var(--margin); }
.panel {
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  align-items: start;
}
.panel-soft { background: var(--soft); }
.panel-accent { background: var(--accent-bg); color: var(--accent-ink); }
.panel h2, .head {
  grid-column: 1 / span 5;
}
.panel h2 {
  font-size: var(--step-display);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 12ch;
  text-wrap: balance;
}
.head p { margin-top: 24px; font-size: var(--step-lead); color: var(--muted); max-width: 34ch; }
.list { grid-column: 7 / span 6; display: grid; gap: 40px; }
.list dt { font-size: var(--step-heading); font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; }
.list dd { margin-top: 10px; font-size: var(--step-lead); max-width: 44ch; color: var(--muted); }
.panel-accent .list dd { color: var(--accent-muted); }
.intro { font-size: var(--step-heading); line-height: 1.3; letter-spacing: -0.01em; max-width: 26ch; }

/* ---------- Hero ---------- */
.hero { align-items: center; min-height: calc(100svh - 72px); padding-block: clamp(48px, 6vw, 96px); }
.hero-words { grid-column: 1 / span 6; }
.hero h1 {
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 10ch;
  text-wrap: balance;
}
.lede { margin-top: 32px; font-size: var(--step-lead); max-width: 38ch; color: var(--accent-muted); }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.soon { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step-small); color: var(--accent-muted); }
.soon svg { width: 18px; height: 18px; fill: currentColor; }

/* A whole screenshot in a plain rounded frame, never cropped. */
.phone img { width: 100%; border-radius: 9% / 4.2%; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.hero-phone { grid-column: 8 / span 4; width: 100%; max-width: 340px; justify-self: center; }

/* ---------- Three screens ---------- */
.shots { padding-block: clamp(56px, 7vw, 112px); }
.shot-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(20px, 4vw, 64px); }
.shot-row figure { display: grid; gap: 16px; }
.shot-row figcaption { text-align: center; font-size: var(--step-small); color: var(--muted); }

/* ---------- How it works: numbered steps ---------- */
.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; font-size: var(--step-lead); color: var(--muted); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1em;
  font-size: var(--step-heading);
  font-weight: 700;
  color: var(--accent);
}
.steps b { display: block; margin-bottom: 6px; font-size: var(--step-heading); font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Themes: the app's own colours ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.swatches li { display: flex; align-items: center; gap: 14px; font-size: var(--step-lead); font-weight: 600; }
.swatch { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--a); box-shadow: 0 0 0 1px var(--line); }
.swatch::after { content: ''; position: absolute; inset: 0; background: var(--b); clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ---------- Sources ---------- */
.names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.names li { font-size: var(--step-body); line-height: 1.6; }
.names .kind { font-weight: 650; margin-bottom: 4px; }

/* ---------- Questions ---------- */
.faq { gap: 32px; }
.faq dt { font-size: var(--step-lead); }
.faq dd { font-size: var(--step-body); }
.faq a { color: var(--ink); }

/* ---------- The last invitation ---------- */
.cta .list { align-content: start; justify-items: start; gap: 28px; }
.cta .intro { color: var(--accent-muted); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  padding: 32px var(--pad-x) 40px;
  font-size: var(--step-small);
  color: var(--muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--ink); }

/* ---------- Motion: parts of each section rise into place, once. Content shows without script. ---------- */
.js .rise { opacity: 0; transform: translateY(24px); }
.js .rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; }
  .button:active { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel h2, .head, .list, .hero-words { grid-column: 1 / -1; }
  .hero-phone { grid-column: 1 / -1; max-width: 300px; }
  .hero { min-height: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --margin: 8px; --pad-x: 20px; --pad-y: 72px; --radius: 22px; --step-display: clamp(36px, 10vw, 44px); --step-heading: 22px; --step-lead: 18px; }
  .bar { padding: 12px 20px; }
  .bar nav { display: none; }
  .hero { padding-block: 56px 48px; gap: 48px; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 56px); }
  .lede { margin-top: 20px; }
  .actions { margin-top: 28px; flex-direction: column; align-items: flex-start; }
  .hero-phone { max-width: 260px; }
  .panel { gap: 36px; }
  .list { gap: 32px; }
  .shots { padding: 40px 0; }
  .shot-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 0 20px 8px; scrollbar-width: none; justify-content: flex-start; }
  .shot-row::-webkit-scrollbar { display: none; }
  .shot-row figure { flex: 0 0 68%; scroll-snap-align: center; }
  .steps li { padding-left: 44px; }
  .names { gap: 28px 16px; }
  .footer { flex-direction: column; padding: 28px 20px 32px; }
}
