@font-face {
  font-family: 'Fredoka';
  src: url('assets/fonts/Fredoka-SemiBold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('assets/fonts/NunitoSans-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('assets/fonts/NunitoSans-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('assets/fonts/NunitoSans-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-display: swap;
}

/* The app's colours, from lib/ui/brand.dart. */
:root {
  --tangerine: #f2661b;
  --ember: #c2410c;
  --ember-deep: #7c2d12;
  --ink: #1b2433;
  --board: #fff4e8;

  --bg: #f7f7f4;
  --text: #1b2433;
  --muted: #4a5466;
  --card: #ffffff;
  --line: #dadde3;
  --tint: #efe6dc;
  --accent: #c2410c;
  --on-accent: #ffffff;
  --soft: #fde7d7;
  --on-soft: #7c2d12;
  --shadow: 0 1px 2px rgb(27 36 51 / 0.06), 0 14px 36px rgb(27 36 51 / 0.09);

  --heading: 'Fredoka', 'Nunito Sans', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #11161f;
    --text: #eef1f5;
    --muted: #b8c0cc;
    --card: #1b2230;
    --line: #333c4c;
    --tint: #161c27;
    --accent: #ff8a4c;
    --on-accent: #3a1300;
    --soft: #7c2d12;
    --on-soft: #ffdcc9;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 36px rgb(0 0 0 / 0.35);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--text);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo__mark {
  width: 40px;
  height: 40px;
  flex: none;
}
.logo--small {
  font-size: 1.5rem;
}
.logo--small .logo__mark {
  width: 32px;
  height: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.play {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.15s ease;
}
.play:hover {
  transform: translateY(-2px);
}
.play img {
  width: 188px;
  height: 56px;
}

/* Hero */

.eyebrow {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow--accent {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  /* Ink text on tangerine: white would fall below a readable contrast. */
  color: var(--ink);
  background:
    radial-gradient(110% 90% at 85% 15%, #ffa266 0%, rgb(242 102 27 / 0) 60%),
    radial-gradient(90% 80% at 0% 100%, #d4510d 0%, rgb(212 81 13 / 0) 70%),
    var(--tangerine);
  overflow: hidden;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
}

.tag {
  display: inline-block;
  margin-top: 0.08em;
  padding: 0.02em 0.22em 0.08em;
  border-radius: 0.22em;
  background: var(--board);
  color: var(--ink);
  transform: rotate(-2deg);
  box-shadow: 0 8px 20px rgb(124 45 18 / 0.25);
}

.lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 30px;
}
.get__note {
  max-width: 19em;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 500px;
}

.photo-card {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 7%;
  width: 64%;
  margin: 0;
  padding: 10px;
  border-radius: 20px;
  background: var(--board);
  transform: rotate(-5deg);
  box-shadow: 0 24px 50px rgb(90 30 0 / 0.35);
}
.photo-card img {
  border-radius: 12px;
}

.phone {
  padding: 8px;
  border-radius: 36px;
  background: #0e131b;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 30px 60px rgb(27 36 51 / 0.3);
}
.phone img {
  width: 100%;
  border-radius: 28px;
}

.hero .phone {
  position: relative;
  width: min(260px, 52%);
  margin-right: 4%;
  transform: rotate(4deg);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 34px 70px rgb(90 30 0 / 0.45);
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}
.section--tight {
  padding-block: 0 clamp(40px, 6vw, 72px);
}
.section--tint {
  background: var(--tint);
}

.section__head {
  max-width: 40em;
}
.section__head h2,
.split h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.2vw, 3rem);
}
.section__head > p:last-child:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.15rem;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 1.6rem;
}
.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* The phone rises out of its stage and is cut off at the bottom edge. */
.step__stage {
  display: flex;
  justify-content: center;
  height: 400px;
  padding-top: 36px;
  border-radius: 28px;
  background: var(--tint);
  overflow: hidden;
}
.step__stage .phone {
  width: min(250px, 78%);
  align-self: flex-start;
}
.step:nth-child(2) .step__stage {
  background: var(--soft);
}

.step__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 1.15rem;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 290px;
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.gallery__item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
}
.gallery__item--wide {
  grid-column: span 2;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--board);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgb(27 36 51 / 0.2);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}
.feature__icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 16px;
  background: var(--soft);
  stroke: var(--on-soft);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  margin-top: 18px;
  font-size: 1.35rem;
}
.feature ul {
  margin: 12px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
}
.feature li + li {
  margin-top: 6px;
}
.feature li::marker {
  color: var(--accent);
}

/* Machines */

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
}
.machines {
  display: grid;
  gap: 4px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.machines li {
  padding: 16px 0 16px 22px;
  border-left: 4px solid var(--tangerine);
}
.machines h3 {
  font-size: 1.25rem;
}
.machines p {
  margin-top: 4px;
  color: var(--muted);
}

.note-card {
  padding: 32px;
  border-radius: 28px;
  background: var(--ink);
  color: #eef1f5;
}
.note-card h3 {
  font-size: 1.6rem;
  color: #ffffff;
}
.note-card p {
  margin-top: 10px;
  color: #c9d2e3;
  font-size: 1.1rem;
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.plan {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}
.plan--pro {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.plan h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
}
.plan__badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--on-soft);
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
}
.plan__sub {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.ticks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 34px;
}
.ticks li + li {
  margin-top: 12px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Privacy and safety */

.pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pair__item {
  padding: 32px;
  border-radius: 28px;
  background: var(--tint);
}
.pair__item h2 {
  font-size: 1.6rem;
}
.pair__item p {
  margin-top: 10px;
  color: var(--muted);
}

/* Closing call */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 88px);
  padding: clamp(40px, 7vw, 80px) 24px;
  border-radius: 32px;
  color: var(--ink);
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, #ffa266 0%, rgb(242 102 27 / 0) 65%),
    var(--tangerine);
}
.cta__mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 0 0 4px var(--board);
}
.cta h2 {
  margin-top: 22px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.cta p {
  max-width: 30em;
  text-wrap: balance;
  margin: 14px 0 28px;
  font-size: 1.15rem;
}

/* Footer */

.site-footer {
  padding-block: 36px 48px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}
.fine {
  max-width: 60em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Narrower screens */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__art {
    min-height: 0;
    padding-block: 8px 24px;
  }
  .hero .phone {
    width: min(230px, 54%);
  }
  .hero .phone {
    margin-right: 6%;
  }
  .photo-card {
    width: 62%;
    bottom: 10%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 460px;
    margin-inline: auto;
  }
  .step__stage {
    height: 360px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .site-header .pill {
    padding: 0 18px;
  }
  .hero {
    border-radius: 24px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 10px;
  }
  .gallery__item--wide-sm {
    grid-column: span 2;
  }
  .gallery__item {
    border-radius: 16px;
  }
  .gallery__caption {
    left: 10px;
    bottom: 10px;
    padding: 4px 11px;
    font-size: 0.8rem;
  }

  .features,
  .plans,
  .pair {
    grid-template-columns: 1fr;
  }
  .feature,
  .plan,
  .pair__item,
  .note-card {
    padding: 24px;
  }
  .cta {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pill,
  .play {
    transition: none;
  }
}
