@font-face {
  font-family: "Fredoka";
  src: url("/assets/fredoka-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #fbf6ee;
  --bg-deep: #f3eadc;
  --surface: #ffffff;
  --text: #3b3a4a;
  --muted: #6e6a7d;
  --line: #e7ded0;
  --accent: #ff8c1a;
  --accent-text: #ffffff;
  --glass: #e8eef3;
  --glass-line: #3b3a4a;
  --ice: rgba(214, 237, 255, 0.55);
  --badge-ring: #2b6cb0;
  --paint-red: #e63946;
  --paint-blue: #2f6fdb;
  --paint-yellow: #ffcf33;
  --paint-green: #2a9d6f;
  --paint-purple: #9b7bea;
  --blob-a: rgba(242, 140, 128, 0.22);
  --blob-b: rgba(115, 166, 242, 0.2);
  --blob-c: rgba(250, 209, 102, 0.26);
  --shadow: 0 18px 40px -22px rgba(59, 58, 74, 0.45);
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151d;
    --bg-deep: #1d1c27;
    --surface: #24232f;
    --text: #f1ede6;
    --muted: #aaa6b8;
    --line: #34323f;
    --glass: #2a2937;
    --glass-line: #c4c1d6;
    --ice: rgba(190, 222, 255, 0.35);
    --badge-ring: #6ea8f0;
    --blob-a: rgba(115, 51, 77, 0.35);
    --blob-b: rgba(46, 71, 128, 0.35);
    --blob-c: rgba(115, 89, 38, 0.25);
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(40rem 30rem at 85% -5%, var(--blob-b), transparent 70%),
    radial-gradient(36rem 28rem at -10% 20%, var(--blob-a), transparent 70%),
    radial-gradient(30rem 24rem at 60% 55%, var(--blob-c), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand,
.button {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.lang a {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}

.lang a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-text);
}

@media (max-width: 720px) {
  .site-nav .nav-link {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paint-green);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.02;
}

.hero h1 .paint {
  background: linear-gradient(90deg, var(--paint-red), var(--accent) 35%, var(--paint-yellow) 55%, var(--paint-green) 75%, var(--paint-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 28px;
  max-width: 34rem;
  font-size: 19px;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 10px 24px -12px var(--accent);
}

.button.primary[aria-disabled="true"] {
  cursor: default;
  opacity: 0.92;
}

.button.ghost {
  background: var(--surface);
  border: 1px solid var(--line);
}

.button svg {
  width: 20px;
  height: 20px;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.pouring {
  animation: bob 4.8s ease-in-out infinite;
}

.stream {
  animation: stream 4.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes stream {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .pouring,
  .stream {
    animation: none;
  }
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    max-width: 460px;
    margin-inline: auto;
  }
}

/* Sections */
section {
  padding: 56px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4.5vw, 40px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 14px 0 6px;
  font-size: 21px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
}

.icon svg {
  width: 26px;
  height: 26px;
}

.i-red { background: var(--paint-red); }
.i-blue { background: var(--paint-blue); }
.i-yellow { background: var(--paint-yellow); color: #3b3a4a; }
.i-green { background: var(--paint-green); }
.i-purple { background: var(--paint-purple); }
.i-orange { background: var(--accent); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 22px 22px 76px;
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font: 600 20px "Fredoka", system-ui, sans-serif;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Screenshots */
.shots {
  display: flex;
  gap: 22px;
  justify-content: center;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
}

.phone {
  flex: 0 0 auto;
  width: min(250px, 70vw);
  margin: 0;
  padding: 10px;
  border-radius: 38px;
  background: #1b1a22;
  box-shadow: var(--shadow);
  scroll-snap-align: center;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.phone:nth-child(2) {
  transform: translateY(-18px);
}

/* Centered on wide screens; on a phone the row starts at the left so every shot can be scrolled to. */
@media (max-width: 860px) {
  .shots {
    justify-content: flex-start;
  }

  .phone:nth-child(2) {
    transform: none;
  }
}

/* Studio band */
.band {
  border-radius: 32px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.band h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.band p {
  margin: 0;
  color: var(--muted);
}

.band svg {
  width: 96px;
  height: 96px;
}

@media (max-width: 640px) {
  .band {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

/* Legal and support pages */
.doc {
  max-width: 760px;
  padding: 48px 0 24px;
}

.doc h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 6vw, 46px);
}

.doc .meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.doc h2 {
  margin: 36px 0 10px;
  font-size: 24px;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 19px;
}

.doc p,
.doc li {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.doc .summary {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.doc .summary ul {
  margin: 8px 0 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc .table-scroll {
  overflow-x: auto;
}

.faq details {
  padding: 16px 20px;
  margin: 10px 0;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font: 600 18px "Fredoka", system-ui, sans-serif;
}

.faq details p {
  margin: 10px 0 0;
}

mark.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #ffe066;
  color: #3b3a4a;
  font-weight: 600;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}
