/* Fonts: Space Grotesk, Fraunces, Silkscreen, SIL OFL 1.1, see /licenses/fonts.txt */
/* Strolly website: the app's paper look. Tokens mirror apps/mobile/tailwind.config.js. */
@font-face {
  font-family: "Space Grotesk";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/space-grotesk-400.637578d47b.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/space-grotesk-600.279a5d22b8.ttf") format("truetype");
}
@font-face {
  font-family: "Fraunces";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fraunces-600.9f03c0fe70.ttf") format("truetype");
}
@font-face {
  font-family: "Fraunces";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fraunces-700.3404710f1f.ttf") format("truetype");
}
@font-face {
  font-family: "Silkscreen";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/silkscreen-400.4956740860.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --bg: #f4f1eb;
  --bg-alt: #ece8df;
  --surface: #ffffff;
  --ink: #221e18;
  --text: #3c382f;
  --muted: #665f52;
  --line: #d8d1c4;
  --hairline: #e6dfd3;
  --edge: #4a3f33;
  --card-edge: #ddd4c4;
  --card-ground: #d1c6b3;
  --primary: #6c4dd6;
  --primary-edge: #4b2fb0;
  --primary-soft: #ece7fc;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --pix: "Silkscreen", "Courier New", monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-edge);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1.5px solid var(--edge);
  border-radius: 14px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 20px;
}

/* header and footer */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font: 700 1.5rem / 1 var(--serif);
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

main {
  flex: 1;
  padding-block: 20px 56px;
}

.foot {
  border-top: 1px solid var(--hairline);
  padding-block: 28px 40px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.foot p {
  margin: 8px 0 0;
}

/* type */
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem);
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.1875rem;
}

.sub {
  margin: 10px 0 0;
  font: 600 0.9375rem / 1.3 var(--sans);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.lead {
  font-size: 1.1875rem;
  color: var(--text);
  max-width: 34rem;
}

/* enamel key (the one primary action) and its white companion */
.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 14px;
  margin: 28px 0 8px;
}
.key {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  margin-bottom: 4px;
  border: 1.5px solid;
  border-radius: 9999px;
  font: 400 0.875rem / 1 var(--pix);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  isolation: isolate;
}
.key::before {
  content: "";
  position: absolute;
  inset: 3px 3px auto 3px;
  height: 48%;
  border-radius: 9999px;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  z-index: -1;
  pointer-events: none;
}
.key--primary {
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.05)),
    var(--primary);
  border-color: var(--primary-edge);
  box-shadow:
    0 4px 0 var(--primary-edge),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
a.key {
  transition:
    transform 80ms ease-out,
    box-shadow 80ms ease-out;
}
a.key:active {
  transform: translateY(3px);
}
a.key--primary:active {
  box-shadow: 0 1px 0 var(--primary-edge);
}
a.key--primary:hover {
  color: #fff;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 18px 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}
.store svg {
  flex: none;
  color: var(--muted);
}
.store span {
  display: grid;
  line-height: 1.2;
}
.store small {
  font-size: 0.8125rem;
  color: var(--muted);
}
.store b {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
}
a.store:hover {
  border-color: var(--edge);
}

.note {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* home */
.hero {
  display: grid;
  gap: 36px;
  padding-block: 8px 12px;
}
.points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  max-width: 34rem;
  display: grid;
  gap: 14px;
}
.points li {
  position: relative;
  padding-left: 28px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.phones {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: flex-start;
}
.phone {
  flex: 0 1 250px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1.5px solid var(--edge);
  border-radius: 34px;
  background: var(--ink);
  box-shadow: 0 24px 36px -26px rgba(34, 30, 24, 0.55);
}
.phone:nth-child(2) {
  margin-top: 40px;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 27px;
  background: var(--bg);
}

.strudl-row {
  display: flex;
  align-items: flex-end;
  margin-top: 28px;
  max-width: 34rem;
  border-bottom: 2px dashed var(--primary);
  height: 112px;
}
.visual .strudl-row {
  max-width: none;
}
.strudl {
  width: 144px;
  height: 108px;
  margin-bottom: -2px;
  background: url("/assets/strudl-walk.bdc0559e3f.png") 0 0 / 576px 108px no-repeat;
  image-rendering: pixelated;
  animation: strudl 0.8s steps(4) infinite;
}
.strudl--sniff {
  background-image: url("/assets/strudl-sniff.d837afec47.png");
  animation-duration: 1.2s;
}
@keyframes strudl {
  to {
    background-position-x: -576px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .strudl {
    animation: none;
  }
  a.key {
    transition: none;
  }
}

/* prose pages */
.page {
  max-width: 44rem;
}
.page + .page {
  margin-top: 32px;
}
.page > header {
  margin-bottom: 28px;
}
.prose h2 {
  margin-top: 2.1em;
  scroll-margin-top: 16px;
}
.prose h3 {
  margin-top: 1.6em;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0.9em 0 0;
}
.prose ul {
  padding-left: 1.3em;
}
.prose li {
  margin-top: 0.55em;
}
.prose li::marker {
  color: var(--primary);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose > :first-child {
  margin-top: 0;
}

.card {
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1.5px solid var(--card-edge);
  border-radius: 16px;
  box-shadow: 0 2px 0 var(--card-ground);
}
.card > :first-child {
  margin-top: 0;
}
.card h2 {
  font-size: 1.25rem;
}
.card p {
  margin: 0.7em 0 0;
}
.card .keys {
  margin-bottom: 0;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.faq details {
  background: var(--surface);
  border: 1.5px solid var(--card-edge);
  border-radius: 16px;
  box-shadow: 0 2px 0 var(--card-ground);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-edge);
  font: 700 1.125rem / 1 var(--sans);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details > div {
  padding: 0 20px 18px;
}
.faq details p {
  margin: 0;
}

/* numbered steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1.5px solid var(--primary);
  color: var(--primary-edge);
  font: 600 1.0625rem / 1 var(--serif);
}
.steps li::marker {
  content: none;
}

.center {
  text-align: center;
}
.center .strudl-row {
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
    padding-block: 28px 20px;
  }
  .phones {
    gap: 24px;
  }
  .phone:nth-child(2) {
    margin-top: 72px;
  }
  .top {
    padding-block: 20px;
  }
}

@media (max-width: 400px) {
  .phones {
    gap: 12px;
  }
  .key {
    padding-inline: 20px;
  }
}
