/*
 * RockyDoo marketing site.
 *
 * Colours are lifted verbatim from Palette.blue in the app so the site and the
 * product read as one thing. The "sticker" look — chunky dark-blue outlines and
 * hard, un-blurred drop shadows — is the app's signature, and it is what makes
 * a plain HTML page feel like it belongs to a kids' app rather than a SaaS
 * landing page.
 */

:root {
  --outline:     #1e4a9e;
  --primary:     #3f7fef;
  --light-tint:  #abd9fd;
  --accent:      #ffcf4c;
  --pop:         #ff8d9e;
  --warm:        #f5806e;

  --sky-top:     #c4e6ff;
  --sky-bottom:  #599af4;
  --button-top:  #5b9cf6;
  --button-btm:  #2a60cd;

  --ink:         #24324a;
  --ink-soft:    #5b6b86;
  --card:        #ffffff;

  --radius:      22px;
  --stroke:      3px;
  --measure:     68ch;
}

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

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

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand",
               system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  background-attachment: fixed;
  min-height: 100vh;
}


/* ---- Layout ------------------------------------------------------------- */

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

main { padding-bottom: 64px; }

/* ---- Header ------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--outline);
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
}

/* The app icon, treated the way the App Store treats it: a rounded tile with
   the same chunky outline the app puts around everything else. Its background
   is warm orange against a blue page, which is exactly the contrast that makes
   a logo findable rather than something that dissolves into the header. */
.brand .rock {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--outline);
  box-shadow: 0 2px 0 var(--outline);
  display: block;
}

.logo-hero {
  width: clamp(120px, 30vw, 168px);
  height: auto;
  border-radius: clamp(26px, 6.6vw, 37px);
  border: var(--stroke) solid var(--outline);
  box-shadow: 0 6px 0 var(--outline);
  display: block;
  margin: 0 auto 20px;
}

.site-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--outline);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { background: rgba(255, 255, 255, 0.55); }

.site-nav a[aria-current="page"] {
  background: #fff;
  box-shadow: 0 2px 0 var(--outline);
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 26px 0 40px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  color: var(--outline);
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.65);
}

.hero p {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 600;
  color: var(--outline);
}

.buddy {
  font-size: clamp(64px, 16vw, 104px);
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 5px 0 rgba(30, 74, 158, 0.28));
}

/* ---- Cards -------------------------------------------------------------- */

.card {
  background: var(--card);
  border: var(--stroke) solid var(--outline);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--outline);
  padding: 26px 24px;
  margin: 0 0 26px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--outline);
}

.card h3 {
  margin: 22px 0 6px;
  font-size: 1.1rem;
  color: var(--outline);
}

.card > :last-child { margin-bottom: 0; }

.card p, .card li { max-width: var(--measure); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.grid .card { margin: 0; }

.emoji-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  border-radius: 16px;
  background: var(--light-tint);
  border: var(--stroke) solid var(--outline);
  margin-bottom: 12px;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  border: var(--stroke) solid var(--outline);
  background: linear-gradient(to bottom, var(--button-top), var(--button-btm));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--outline);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--outline); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--outline); }

.btn-sun {
  background: var(--accent);
  color: var(--outline);
}

.center { text-align: center; }

/* ---- Text --------------------------------------------------------------- */

a { color: var(--primary); }
a:hover { color: var(--outline); }

.lede {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--outline);
}

.muted {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.updated {
  display: inline-block;
  background: var(--light-tint);
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--outline);
  margin-bottom: 18px;
}

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 7px; }

dl { margin: 0; }
dt { font-weight: 800; color: var(--outline); margin-top: 16px; }
dd { margin: 4px 0 0; }

/* A short definition-style list for "who gets what data". Rendered as a table
   on wide screens because the pairing is the whole point, and stacked on
   narrow ones because a two-column table at 360px is unreadable. */
.recipients {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 0;
}

.recipients th,
.recipients td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--light-tint);
  vertical-align: top;
}

.recipients th {
  color: var(--outline);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recipients tr:last-child td { border-bottom: none; }

@media (max-width: 560px) {
  .recipients, .recipients tbody, .recipients tr, .recipients td { display: block; width: 100%; }
  .recipients thead { display: none; }
  .recipients tr { border-bottom: 2px solid var(--light-tint); padding: 10px 0; }
  .recipients tr:last-child { border-bottom: none; }
  .recipients td { border: none; padding: 2px 0; }
  .recipients td:first-child { font-weight: 800; color: var(--outline); }
}

/* ---- Footer ------------------------------------------------------------- */

.site-footer {
  border-top: var(--stroke) solid var(--outline);
  background: rgba(255, 255, 255, 0.55);
  padding: 24px 0 34px;
  text-align: center;
  color: var(--outline);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.site-footer a { color: var(--outline); font-weight: 700; }

/* ---- Accessibility ------------------------------------------------------ */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--outline);
  padding: 12px 18px;
  border: var(--stroke) solid var(--outline);
  border-radius: 0 0 var(--radius) 0;
  font-weight: 800;
  z-index: 10;
}

.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

