/* Colours and sizes follow src/styles/tokens.css in the app. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --coral: #c84b31;
  --coral-dark: #b5412a;
  --cocoa: #2a3a33;
  --cream: #fff8ec;
  --stone: #5a5f58;
  --muted: #55605a;
  --line: #eadfcb;
  --sand: #f6e7d0;
  --blush: #fbe3da;
  --white: #fff;
  --display: "Fredoka", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --card: 28px;
  --tile: 20px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font: 1.0625rem/1.5 var(--body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.05;
}
h2 {
  font-size: 1.875rem;
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 0.75rem;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
main {
  flex: 1;
  padding-bottom: 4rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
  color: var(--stone);
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
}

/* Header and footer */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font: 600 1.75rem/1 var(--display);
  letter-spacing: -0.01em;
  border-radius: 999px;
}
.logo img {
  width: 1.5rem;
  height: 1.5rem;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-header nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  background: var(--sand);
}
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--stone);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--coral-dark);
}
.btn-outline {
  background: var(--white);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  background: var(--sand);
}
.btn-cream {
  background: var(--cream);
  color: var(--cocoa);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

/* Sections and cards */
section {
  padding: 3rem 0;
}
.grid {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--card);
  padding: 1.5rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card-sand {
  background: var(--sand);
  border-color: var(--sand);
}
.card-dark {
  background: var(--cocoa);
  border-color: var(--cocoa);
  color: var(--cream);
}
.card-dark p {
  color: rgb(255 248 236 / 0.8);
}
.notice {
  background: var(--blush);
  border-radius: var(--tile);
  padding: 1rem 1.25rem;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--blush);
  color: var(--coral);
  font: 600 1.125rem/1 var(--display);
}
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Hero with the phone drawing */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    padding: 4rem 0;
  }
}
.phone {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 1rem;
  border: 10px solid var(--cocoa);
  border-radius: 2.5rem;
  background: var(--cream);
  box-shadow: 0 20px 40px rgb(42 58 51 / 0.2);
}
.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--stone);
  margin-bottom: 1rem;
}
.phone-top img {
  width: 14px;
  height: 14px;
}
.phone-hello {
  font: 600 1.5rem/1.2 var(--display);
  margin-bottom: 1rem;
}
.phone-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.tile {
  background: var(--white);
  border-radius: var(--tile);
  padding: 0.75rem;
  margin-top: 0.5rem;
}
.phone-tiles .tile {
  margin-top: 0;
}
.tile small {
  display: block;
  font-size: 0.75rem;
  color: var(--stone);
}
.tile code {
  font: 1.05rem ui-monospace, monospace;
}
.tile-action {
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
}
.tile-row {
  font-size: 0.9rem;
  font-weight: 600;
}
.tile-row::before {
  content: "⚠ ";
  color: var(--coral);
}
.bar {
  height: 0.75rem;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: var(--sand);
}

/* Pricing */
.price {
  font: 600 2.5rem/1.1 var(--display);
}
.card-highlight {
  border: 2px solid var(--coral);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .checks {
    grid-template-columns: 1fr 1fr;
  }
}
.checks li {
  color: var(--muted);
  padding-left: 1.5rem;
  position: relative;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

/* Help */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--blush);
  color: var(--coral);
  font: 600 1rem/1 var(--display);
}
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--card);
}
.faq details {
  padding: 1rem 1.5rem;
}
.faq details + details {
  border-top: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq details p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}
.narrow {
  max-width: 48rem;
}
.center {
  text-align: center;
}
