/* Kinda Sus website. Colors and type follow design/README.md. */

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

:root {
  --red: #E0344C;
  --red-lip: #B3243A;
  --red-ink: #A51F35; /* red text on white, 6.5:1 */
  --sun: #FFC22E;
  --sun-lip: #D9A000;
  --mint: #2ED3A0;
  --mint-lip: #1FA47B;
  --night: #1E1B2E;
  --ink: #2E2A33;
  --muted: #6E6A75;
  --line: #E5E5E5;
  --paper: #FFFFFF;
  --wash: #F7F6F9;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: 20px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-lip); }

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

h1, h2, h3 { font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--night);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header and footer ---------- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow { max-width: 760px; }

.site-header { border-bottom: 2px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.3rem;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }

.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--wash); }

.site-footer {
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 24px 0 32px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Chunky building blocks ---------- */

.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--line);
  padding: 22px 22px 20px;
}

.pill {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  box-shadow: 0 3px 0 var(--sun-lip);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 5px 0 var(--red-lip);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: #fff; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red-lip); }

/* App Store badge placeholder. Swap it for Apple's official badge when the app is live (see site/README.md). */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 22px 8px 12px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  line-height: 1.1;
  text-align: left;
  box-shadow: 0 5px 0 #3A3A3A;
}
.store-badge small { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; opacity: 0.85; }
.store-badge strong { display: block; font-size: 1.25rem; font-weight: 900; }
.store-badge img { width: 36px; height: 36px; border-radius: 9px; }

/* ---------- Landing ---------- */

.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.landing main { flex: 1; display: flex; align-items: center; }

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 36px;
}

.hero-intro { text-align: center; }
.hero-intro .mascot { width: 160px; height: 160px; margin: 0 auto 14px; }
.hero-intro h1 { font-size: clamp(3.1rem, 13vw, 5rem); letter-spacing: -0.02em; margin-top: 12px; }
.hero-intro .lead {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 30ch;
  margin: 8px auto 24px;
}
.hero-intro .fineprint { color: var(--muted); font-size: 0.92rem; margin: 16px 0 0; }

.stage {
  background: var(--night);
  border-radius: 28px;
  padding: 22px 16px 18px;
  box-shadow: 0 6px 0 #0F0D18;
}
.stage h2 { font-size: 1.5rem; margin: 0 6px 14px; color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 4px 0 #D8D6DE;
  padding: 16px 16px 15px;
}
.steps .num {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--night);
}
.steps li:nth-child(1) .num { background: var(--mint); box-shadow: inset 0 -4px 0 var(--mint-lip); }
.steps li:nth-child(2) .num { background: var(--sun); box-shadow: inset 0 -4px 0 var(--sun-lip); }
.steps li:nth-child(3) .num { background: var(--red); box-shadow: inset 0 -4px 0 var(--red-lip); color: #fff; }
.steps h3 { font-size: 1.15rem; margin: 1px 0 3px; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }

.landing .site-footer { border-top: 0; padding-top: 4px; }
.landing .site-footer .wrap { justify-content: center; text-align: center; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .hero-intro { text-align: left; }
  .hero-intro .mascot { width: 190px; height: 190px; margin: 0 0 10px -12px; }
  .hero-intro .lead { margin-left: 0; }
  .stage { padding: 28px 24px 24px; }
  .landing .site-footer .wrap { justify-content: space-between; text-align: left; }
}

/* The mascot's eyes dart, like the app's welcome screen. */
.pupils { animation: dart 5.5s ease-in-out infinite; }
@keyframes dart {
  0%, 38% { transform: translateX(0); }
  44%, 70% { transform: translateX(20px); }
  76%, 100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pupils { animation: none; }
  .btn, .btn:active { transition: none; }
}

/* ---------- Inner pages ---------- */

.page-head { padding: 40px 0 4px; }
.page-head h1 { font-size: clamp(2.3rem, 8vw, 3.1rem); }
.page-head p { color: var(--muted); font-size: 1.15rem; margin: 10px 0 0; }

.content { padding-bottom: 56px; }
.content section { margin-top: 40px; }
.content h2 { font-size: 1.6rem; margin-bottom: 12px; }
.content h3 { font-size: 1.2rem; margin: 22px 0 6px; }
.content p { margin: 0 0 12px; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 14px; }
.content li { margin-bottom: 8px; }
.content li::marker { color: var(--red); }
.content .muted { color: var(--muted); }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  background: var(--sun);
  border: 0;
  box-shadow: 0 5px 0 var(--sun-lip);
}
.contact-card p { margin: 0; }
.contact-card .big { font-size: 1.3rem; font-weight: 900; }
.contact-card .email { color: var(--ink); font-weight: 900; overflow-wrap: anywhere; }
.contact-card .btn { background: var(--night); box-shadow: 0 5px 0 #000; }

.path { font-weight: 900; }
.path span {
  display: inline-block;
  background: var(--wash);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0 9px;
  margin: 2px 0;
}

.how-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; counter-reset: how; }
.how-list li {
  counter-increment: how;
  position: relative;
  padding: 14px 16px 14px 62px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 0 var(--line);
  margin: 0 !important;
}
.how-list li::before {
  content: counter(how);
  position: absolute;
  left: 14px; top: 13px;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--red);
  box-shadow: inset 0 -3px 0 var(--red-lip);
  color: #fff;
  font-weight: 900;
}

.faq { display: grid; gap: 12px; }
.faq details {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 0 var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 56px 16px 18px;
  font-weight: 900;
  font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--wash);
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 6px; }

/* Privacy policy */
.policy .short-version {
  background: var(--wash);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 24px;
}
.policy .short-version p { margin: 0; }

.placeholder {
  background: var(--sun);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 900;
}

.policy table { width: 100%; border-collapse: collapse; font-size: 0.98rem; margin: 8px 0 16px; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 2px solid var(--line); }
.policy thead th { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.policy tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .policy table, .policy tbody, .policy tr, .policy td { display: block; }
  .policy thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .policy tr {
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 0 var(--line);
    margin-bottom: 14px;
    padding: 8px 0;
  }
  .policy td { border-bottom: 0; padding: 6px 16px; }
  .policy td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 900;
  }
  .site-nav a { padding: 8px 9px; }
}

@media (max-width: 360px) {
  .brand span { display: none; }
}

/* 404 */
.lost { text-align: center; padding: 56px 0 72px; }
.lost svg { width: 150px; height: 150px; margin: 0 auto 16px; }
.lost h1 { font-size: 2.4rem; }
.lost p { color: var(--muted); margin: 10px 0 24px; }
