/* Atlaroo marketing site. Colours, type and radii follow design/atlaroo/tokens.json. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fffbf3;
  --surface: #ffffff;
  --line: #f1e7d6;
  --ink: #1f2a44;
  --muted: #5b6272;
  --primary: #f28c38;
  --primary-edge: #c96a1f;
  --primary-soft: #fde3c2;
  --primary-text: #a9520f;
  --success: #4cb782;
  --success-soft: #e6f4ec;
  --success-text: #236e4b;
  --freeze-soft: #ddeff8;
  --hint-soft: #fde4e1;
  --fill-yellow: #f9e3a8;
  --fill-green: #cfe8d3;
  --fill-peach: #f8d2b8;
  --fill-lilac: #dcd3f0;
  --fill-blue: #cde6f5;
  --fill-pink: #f6cfd3;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --edge: 6px;
  --wrap: 1120px;
  --gutter: 16px;
  --focus: #1f2a44;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Nunito",
    ui-rounded,
    "SF Pro Rounded",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
}
h2 {
  font-size: clamp(1.85rem, 1.4rem + 2vw, 2.75rem);
}
h3 {
  font-size: 1.35rem;
  font-weight: 800;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--primary-text);
}
strong {
  font-weight: 800;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 243, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 251, 243, 0.82);
    backdrop-filter: blur(10px);
  }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.site-nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.site-nav a {
  display: inline-block;
  padding: 10px 12px;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.site-nav a:hover {
  background: var(--primary-soft);
  color: var(--ink);
}
@media (min-width: 980px) {
  .site-nav ul {
    display: flex;
  }
}

/* Buttons */
.btn {
  --btn-bg: var(--primary);
  --btn-edge: var(--primary-edge);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 var(--edge) 0 var(--btn-edge);
  font: inherit;
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: var(--edge);
  transition:
    transform 150ms ease-out,
    box-shadow 150ms ease-out;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 calc(var(--edge) + 1px) 0 var(--btn-edge);
}
.btn:active {
  transform: translateY(var(--edge));
  box-shadow: 0 0 0 var(--btn-edge);
}
.btn-small {
  min-height: 48px;
  padding: 8px 18px;
  font-size: 1rem;
  --edge: 4px;
}
.btn-quiet {
  --btn-bg: var(--surface);
  --btn-edge: var(--line);
  border: 2px solid var(--line);
}

/* Store badges: text badges drawn in CSS, not official artwork. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 12px;
}
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 164px;
  min-height: 60px;
  padding: 8px 20px 9px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: 0 5px 0 #0f1629;
  margin-bottom: 5px;
  transition:
    transform 150ms ease-out,
    box-shadow 150ms ease-out;
}
.store-badge:hover {
  color: #fff;
  transform: translateY(-1px);
}
.store-badge:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 #0f1629;
}
.store-badge .badge-small {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.store-badge .badge-big {
  font-size: 1.35rem;
  font-weight: 900;
}
.store-badge .badge-soon {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 1px 8px;
  align-self: flex-start;
}
.store-badge .badge-soon[hidden] {
  display: none;
}
.fine {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 72px 0;
}
@media (min-width: 720px) {
  .section {
    padding: 104px 0;
  }
}
.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head p {
  font-size: 1.15rem;
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-text);
  margin-bottom: 12px;
}
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Hero */
.hero {
  padding: 40px 0 64px;
}
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-lead {
  font-size: 1.2rem;
  max-width: 36em;
}
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 24px 0 0;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 4% 0;
  border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
  background: var(--fill-blue);
}
.hero-art .phone {
  position: relative;
  width: min(260px, 62vw);
  transform: rotate(3deg);
}
.hero-roo {
  position: relative;
  width: min(150px, 34vw);
  margin-right: -36px;
  margin-bottom: -6px;
  z-index: 2;
}
.hero-roo img {
  width: 100%;
}
@media (min-width: 900px) {
  .hero {
    padding: 64px 0 96px;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
  .hero-art .phone {
    width: 290px;
  }
  .hero-roo {
    width: 180px;
  }
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.hero-points li {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Phone frames */
.phone {
  border-radius: 38px;
  padding: 9px;
  background: var(--ink);
  box-shadow:
    0 24px 48px -24px rgba(31, 42, 68, 0.45),
    0 2px 0 rgba(31, 42, 68, 0.2);
}
.phone img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
  background: var(--bg);
}
.tablet {
  border-radius: 30px;
  padding: 12px;
  background: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(31, 42, 68, 0.45);
}
.tablet img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* How it works */
.steps {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  counter-increment: step;
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  background: var(--fill-yellow);
}
.step:nth-child(2) {
  background: var(--fill-green);
}
.step:nth-child(3) {
  background: var(--fill-peach);
}
.step:nth-child(4) {
  background: var(--fill-lilac);
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 0 rgba(31, 42, 68, 0.12);
}
.step p {
  margin: 0;
}

/* Games */
.games {
  display: grid;
  gap: 32px 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .games {
    gap: 40px 24px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}
.game figure {
  margin: 0;
}
.game .phone {
  max-width: 240px;
  margin: 0 auto 16px;
}
@media (max-width: 719px) {
  .game .phone {
    padding: 6px;
    border-radius: 26px;
  }
  .game .phone img {
    border-radius: 21px;
  }
  .game h3 {
    font-size: 1.1rem;
  }
  .game p {
    font-size: 0.98rem;
  }
}
.game h3 {
  margin-bottom: 6px;
}
.game p {
  margin: 0;
  color: var(--muted);
}
.tag {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 10px;
}

/* Video */
.video-frame {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 10px solid var(--surface);
  box-shadow: 0 24px 48px -24px rgba(31, 42, 68, 0.35);
  background: var(--surface);
}
.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

/* Expeditions */
.expeditions {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .expeditions {
    grid-template-columns: 1fr 1fr;
  }
}
.expedition {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: var(--fill-blue);
  display: grid;
  gap: 24px;
}
.expedition + .expedition {
  background: var(--fill-pink);
}
.expedition-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 440px;
}
.expedition-shots .phone {
  padding: 7px;
  border-radius: 30px;
}
.expedition-shots .phone img {
  border-radius: 24px;
}
.expedition-shots .phone:nth-child(2) {
  margin-top: 28px;
}
.expedition h3 {
  font-size: 1.6rem;
  font-weight: 900;
}
.stops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.stops li {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 800;
  font-size: 0.95rem;
}
.callout {
  margin-top: 32px;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  background: var(--primary-soft);
  display: flex;
  gap: 16px;
  align-items: center;
}
.callout img {
  width: 56px;
  flex: none;
}
.callout p {
  margin: 0;
}

/* Parents */
.parents {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 960px) {
  .parents {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.features {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
.feature {
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg);
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.feature h3 svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.feature p {
  margin: 0;
  color: var(--muted);
}
.parents + .fine {
  margin-top: 32px;
}
.parent-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 480px;
  margin: 0 auto;
}
.parent-shots .phone:nth-child(2) {
  margin-top: 36px;
}
.parent-shots .tablet {
  grid-column: 1 / -1;
}

/* Pricing */
.plans {
  display: grid;
  gap: 24px;
  max-width: 880px;
}
@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  position: relative;
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px 26px;
}
.plan-best {
  border-color: var(--primary);
  background: #fff8ef;
}
.plan-flag {
  position: absolute;
  top: -16px;
  left: 22px;
  background: var(--primary);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 14px;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 3px 0 var(--primary-edge);
}
.plan h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.price {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 6px 0 4px;
}
.price span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--muted);
}
.plan ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.plan li {
  position: relative;
  padding-left: 30px;
  margin: 8px 0;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23236E4B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}
.founding {
  margin-top: 28px;
  max-width: 880px;
  border-radius: var(--radius-md);
  background: var(--fill-yellow);
  padding: 20px 24px;
}
.founding p {
  margin: 0;
}

/* FAQ */
.faq {
  max-width: 820px;
}
.faq details {
  border-bottom: 2px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 800;
  font-size: 1.15rem;
  min-height: 56px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq .answer {
  padding: 0 4px 20px;
  max-width: 44em;
}

/* Closing call to action */
.closing {
  text-align: center;
}
.closing .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing img.roo {
  width: 120px;
  margin-bottom: 16px;
}
.closing .store-badges {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 40px;
  margin-top: 0;
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: var(--primary-soft);
}
.site-footer :focus-visible {
  outline-color: #fff;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.site-footer h2 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin: 6px 0;
}
.site-footer .legal-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  color: #d5d9e3;
}

/* Document pages (privacy, terms, support) */
.doc {
  padding: 48px 0 88px;
}
.doc .wrap {
  max-width: calc(800px + 2 * var(--gutter));
}
.doc h1 {
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
}
.doc h2 {
  font-size: 1.6rem;
  margin-top: 2.2em;
}
.doc h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}
.doc ul,
.doc ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.doc li {
  margin: 0.35em 0;
}
.doc .lead {
  font-size: 1.15rem;
  color: var(--muted);
}
.draft-banner {
  border: 3px dashed var(--primary-edge);
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 0 32px;
}
.draft-banner p {
  margin: 0;
}
.draft-banner strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
}
.toc {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.toc h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.toc ol {
  margin: 0;
  columns: 2 220px;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.98rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 900;
  background: var(--bg);
}
tr:last-child td {
  border-bottom: 0;
}
.card-grid {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}
@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.card h2,
.card h3 {
  margin-top: 0;
}
.card ol {
  margin-bottom: 0;
}
.notice {
  border-radius: var(--radius-md);
  background: var(--fill-blue);
  padding: 18px 22px;
  margin: 20px 0;
}
.notice p:last-child {
  margin-bottom: 0;
}

/* 404 */
.lost {
  text-align: center;
  padding: 72px 0 104px;
}
.lost img {
  width: 180px;
  margin: 0 auto 24px;
}
.lost .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover,
  .store-badge:hover {
    transform: none;
  }
}

/* Stacked table rows on phones: each cell carries its column name. */
@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    background: none;
  }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    min-width: 0;
  }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table-wrap tr {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    padding: 6px 0;
  }
  .table-wrap td {
    border: 0;
    padding: 6px 16px;
  }
  .table-wrap td:first-child {
    font-weight: 900;
    font-size: 1.05rem;
  }
  .table-wrap td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-text);
  }
}
