/* The Kickabout tour, in the Blewis Studio brand.
   Colours: loch blue for ink and dark panels, slate for body text, haar
   for the page, amber only on loch blue (never as text on a light
   background). Contrast: slate on haar 6.5:1, loch on haar 10.9:1,
   haar on loch 10.9:1, amber on loch 6:1.
   Mobile first: one column, widening from 720px. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --loch: #1e3a4c;
  --loch-deep: #142a37;
  --amber: #f2a93b;
  --slate: #4a5a66;
  --haar: #f2f5f7;
  --surface: #ffffff;
  --line: #d9e0e5;
  --bezel: #142a37;
  --shadow: 0 10px 28px rgba(30, 58, 76, 0.12);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--haar);
  color: var(--slate);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--loch);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

p {
  margin: 0;
}

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

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

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

/* Buttons: real links styled as buttons. Amber only sits on loch blue. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
}

.btn-amber {
  background: var(--amber);
  color: var(--loch);
}

.btn-ghost {
  border-color: var(--haar);
  color: var(--haar);
}

.btn-loch {
  background: var(--loch);
  color: var(--haar);
}

.btn-small {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 0.95rem;
  border-color: var(--loch);
  color: var(--loch);
  background: var(--surface);
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn-small:hover {
  background: var(--haar);
}

/* Hero */
.hero {
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(242, 169, 59, 0.18), transparent 70%),
    linear-gradient(160deg, var(--loch), var(--loch-deep));
  color: var(--haar);
  padding: clamp(40px, 8vw, 88px) 0 clamp(36px, 6vw, 64px);
  border-bottom: 6px solid var(--amber);
}

.hero :focus-visible,
.contact :focus-visible {
  outline-color: var(--amber);
}

.hero-inner {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--amber);
}

.hero h1 {
  color: var(--haar);
  font-size: clamp(3rem, 12vw, 5.5rem);
  letter-spacing: -0.03em;
}

.hero-lede {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.hero-text {
  max-width: 60ch;
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "✓";
  color: var(--amber);
  font-weight: 700;
  margin-right: 8px;
}

/* Jump links */
.jump {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  padding: 12px 0;
  margin-block: 0;
}

.jump a {
  display: inline-block;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.jump a:hover {
  text-decoration: underline;
}

/* Sections */
section {
  display: grid;
  gap: 22px;
  margin-top: clamp(56px, 9vw, 88px);
  scroll-margin-top: 16px;
}

.head {
  display: grid;
  gap: 10px;
}

.label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.lede {
  font-size: 1.12rem;
  max-width: 64ch;
}

.story {
  display: grid;
  gap: 14px;
  max-width: 66ch;
}

.note {
  font-size: 0.95rem;
}

.stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.checks,
.tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  max-width: 70ch;
}

.checks li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
}

.checks li::before {
  content: "✓";
  color: var(--loch);
  font-weight: 700;
}

.tips li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
}

.tips li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--loch);
}

/* Try it */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 28px;
}

.panel-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel-copy .label {
  margin-top: 6px;
}

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

.roles li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.roles li:last-child {
  border-bottom: 1px solid var(--line);
}

.roles div {
  display: grid;
  gap: 2px;
  flex: 1 1 260px;
}

.roles b {
  color: var(--loch);
}

.roles span {
  font-size: 0.95rem;
}

/* Screenshots */
figure {
  margin: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

figcaption {
  display: grid;
  gap: 4px;
  font-size: 0.98rem;
}

figcaption b {
  color: var(--loch);
}

.phone {
  border: 9px solid var(--bezel);
  border-radius: 34px;
  overflow: hidden;
  background: var(--bezel);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 280px;
  justify-self: center;
}

.phone img {
  width: 100%;
  aspect-ratio: 390 / 780;
}

.browser {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.browser .bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--haar);
}

.browser .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.browser img {
  width: 100%;
  aspect-ratio: 1040 / 700;
}

.detail {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.phones {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px 24px;
}

.wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 24px;
}

.mixed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Features */
.features {
  display: grid;
  gap: 20px;
}

.feature {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.feature .phone {
  max-width: 240px;
}

.feature-copy {
  display: grid;
  gap: 12px;
  max-width: 56ch;
}

/* Contact */
.contact {
  background: linear-gradient(160deg, var(--loch), var(--loch-deep));
  color: var(--haar);
  border-radius: 22px;
  padding: clamp(24px, 6vw, 48px);
  gap: 18px;
  border-bottom: 6px solid var(--amber);
}

.contact h2 {
  color: var(--haar);
}

.contact p {
  max-width: 60ch;
}

.footer {
  margin-top: 56px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
}

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

.footer a {
  font-weight: 700;
}

/* Wider screens */
@media (min-width: 560px) {
  .phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .panel {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }

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

  .mixed {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 40px;
  }

  .feature {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 40px;
  }

  .feature:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  }

  .feature:nth-of-type(even) figure {
    order: 2;
  }

  .feature:has(.detail) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 980px) {
  .phones {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Features two to a row, each with its screenshot on the left. */
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature,
  .feature:nth-of-type(even) {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    align-content: start;
  }

  .feature:nth-of-type(even) figure {
    order: 0;
  }

  .feature:has(.detail) {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature .phone {
    max-width: 200px;
  }
}
