/* A la mesa landing page. No build step and no external resources. */

:root {
  color-scheme: light;
  --ground: #f8f4ef;
  --surface: #ffffff;
  --surface-sunken: #f1ebe4;
  --ink: #1b1714;
  --ink-secondary: #5e554d;
  --border: #e3dad0;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fbe9de;
  --night: #202427;
  --on-night: #f3eee2;
  --steam: #f7900f;
  --shadow: 0 18px 40px -18px rgba(32, 36, 39, 0.35);
  --radius: 22px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #15181a;
    --surface: #1f2427;
    --surface-sunken: #282e32;
    --ink: #f3eee2;
    --ink-secondary: #b9b0a5;
    --border: #353c41;
    --accent: #ff8a4c;
    --accent-ink: #1b1714;
    --accent-soft: #3a2619;
    --night: #0d0f10;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #15181a;
  --surface: #1f2427;
  --surface-sunken: #282e32;
  --ink: #f3eee2;
  --ink-secondary: #b9b0a5;
  --border: #353c41;
  --accent: #ff8a4c;
  --accent-ink: #1b1714;
  --accent-soft: #3a2619;
  --night: #0d0f10;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: none;
  gap: 22px;
}

.nav a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--ink);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-button,
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: block;
}

:root[data-theme="dark"] .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  filter: brightness(1.08);
}

.button-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: var(--surface);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Hero */

.hero {
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 96px;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-secondary);
  max-width: 34em;
}

.hero-shots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.phone {
  width: min(240px, 46%);
  border-radius: 30px;
  border: 7px solid var(--night);
  background: var(--night);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: none;
}

.phone img {
  border-radius: 23px;
}

.hero-shots .phone:last-child {
  margin-top: 48px;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 44em;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--ink-secondary);
  font-size: 1.1rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.section-alt .steps li {
  background: var(--ground);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.steps p {
  color: var(--ink-secondary);
  margin: 0;
}

/* Audience blocks: text beside screenshots */

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

.split + .split {
  margin-top: 72px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .split.reverse .split-media {
    order: -1;
  }
}

.split-media {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.screen {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--ink-secondary);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.checks strong {
  color: var(--ink);
}

/* Features grid */

.features {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature .emoji {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 12px;
}

.feature p {
  color: var(--ink-secondary);
  margin: 0;
  font-size: 0.97rem;
}

/* Demo */

.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 2px 24px;
}

.gallery figure {
  margin: 0;
  flex: none;
  width: 200px;
  scroll-snap-align: start;
}

.gallery figure.wide {
  width: min(480px, 80vw);
}

.gallery figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  text-align: center;
}

/* Contact */

.cta {
  background: var(--night);
  color: var(--on-night);
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
}

.cta p {
  color: color-mix(in srgb, var(--on-night) 80%, transparent);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

.cta .actions {
  justify-content: center;
}

.cta .button-primary {
  background: var(--steam);
  color: #1b1714;
}

@media (min-width: 720px) {
  .cta {
    padding: 64px 48px;
  }
}

.footer {
  padding: 32px 0 48px;
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.footer a {
  color: inherit;
}
