/* Kinako — kinako.memoize.studio
   Shared stylesheet for the marketing, support, and privacy pages. */

:root {
  --paper: #f5f1e8;
  --paper-warm: #efe9dc;
  --card: #fffdf8;
  --ink: #26231f;
  --muted: #635e55;
  --matcha: #66775a;
  --matcha-dark: #46533d;
  --matcha-wash: #e9eee4;
  --matcha-line: #ced8c7;
  --persimmon: #b84636;
  --line: #ded7ca;

  --night: #1e1d35;
  --night-deep: #0e0e16;
  --night-ink: #f3f1ea;
  --night-muted: #a9a492;
  --night-accent: #6fae82;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --shell: min(1120px, calc(100% - 40px));
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.035em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--persimmon);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 60ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--matcha-dark);
  color: var(--card);
  font-weight: 700;
  text-decoration: none;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(245 241 232 / 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 24%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 620;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* `.site-nav a` (0,1,1) out-specifies `.btn-primary` (0,1,0), so the button
   colour has to be restated here or it inherits the muted link colour. */
.site-nav .btn-primary,
.site-nav .btn-primary:hover {
  min-height: 40px;
  padding: 0 18px;
  color: #fffdf8;
  font-size: 0.92rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--matcha-dark);
  color: #fffdf8;
}

.btn-primary:hover {
  background: #35402e;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgb(255 253 248 / 0.7);
  color: var(--ink);
}

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

.btn-store {
  flex-direction: column;
  gap: 1px;
  min-height: 56px;
  padding: 8px 26px;
  background: var(--ink);
  color: var(--card);
  line-height: 1.25;
}

.btn-store:hover {
  background: #3b3731;
}

.btn-store small {
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  opacity: 0.72;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
  padding-block: 92px 84px;
}

.hero-copy {
  max-width: 640px;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-art {
  position: relative;
  justify-self: center;
}

.hero-art .phone {
  width: min(100%, 300px);
}

/* ---------- device frames ---------- */

.phone {
  display: block;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  padding: 7px;
  box-shadow: 0 30px 60px -22px rgb(73 59 42 / 0.35);
}

.phone img {
  display: block;
  border-radius: 28px;
}

.phone-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
}

.phone-pair .phone {
  width: min(46%, 264px);
}

.phone-pair .phone:first-child {
  transform: translateY(22px) rotate(-2.5deg);
}

.phone-pair .phone:last-child {
  transform: rotate(2.5deg);
}

/* ---------- trust strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: var(--paper-warm);
}

.strip ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding: 22px 0;
  list-style: none;
}

.strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 620;
}

.strip svg {
  flex: none;
  color: var(--matcha);
}

/* ---------- sections ---------- */

.section {
  padding-block: 96px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
}

.section-head .lede {
  margin-top: 20px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 64px;
}

.split.reverse .split-art {
  order: -1;
}

.split-art {
  justify-self: center;
}

.split-art .phone {
  width: min(100%, 286px);
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card p + p {
  margin-top: 12px;
}

.card-quiet {
  background: transparent;
  border-style: dashed;
}

/* ---------- checklist ---------- */

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.checklist svg {
  margin-top: 5px;
  color: var(--matcha);
}

.checklist strong {
  display: block;
  font-weight: 700;
}

.checklist span {
  color: var(--muted);
  font-size: 0.96rem;
}

.footnote {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- night band ---------- */

.night {
  background: linear-gradient(168deg, var(--night) 0%, var(--night-deep) 100%);
  color: var(--night-ink);
}

.night .eyebrow {
  color: var(--night-accent);
}

.night .lede,
.night .card p,
.night .footnote {
  color: var(--night-muted);
}

.night .card {
  border-color: rgb(243 241 234 / 0.14);
  background: rgb(243 241 234 / 0.05);
}

.night .phone {
  border-color: rgb(243 241 234 / 0.16);
  background: rgb(243 241 234 / 0.06);
  box-shadow: 0 40px 70px -26px rgb(0 0 0 / 0.7);
}

/* ---------- callout ---------- */

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 16px;
  border: 1px solid var(--matcha-line);
  border-radius: var(--radius);
  background: var(--matcha-wash);
  padding: 30px;
}

.callout div {
  max-width: 68ch;
}

.callout p {
  margin: 0;
  color: var(--muted);
}

.callout .btn {
  flex: none;
}

.callout-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- pricing ---------- */

.price-tag {
  display: inline-block;
  margin: 0 0 14px;
  border-radius: 999px;
  background: var(--matcha-wash);
  padding: 4px 13px;
  color: var(--matcha-dark);
  font-size: 0.8rem;
  font-weight: 720;
  letter-spacing: 0.04em;
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 22px;
  max-width: 74ch;
  color: var(--muted);
}

/* ---------- support + policy pages ---------- */

.page-hero {
  padding-block: 76px 8px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
}

.effective {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.policy {
  max-width: 74ch;
  margin-top: 44px;
}

.policy h2 {
  margin: 48px 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

.policy h2:first-child {
  margin-top: 0;
}

.policy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.policy ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

.policy li {
  margin-bottom: 8px;
}

.policy a {
  color: var(--matcha-dark);
  font-weight: 640;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 7px 15px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 620;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--muted);
  color: var(--ink);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
  padding-block: 52px 44px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 620;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-legal {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-legal p {
  margin: 0 0 8px;
  max-width: 88ch;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split,
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .split.reverse .split-art {
    order: 0;
  }

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

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

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav .btn {
    display: none;
  }

  .hero {
    padding-block: 56px 64px;
  }

  .hero-art {
    order: -1;
  }

  .hero-art .phone {
    width: 218px;
  }

  .section {
    padding-block: 68px;
  }

  .grid-2,
  .grid-3,
  .checklist {
    grid-template-columns: 1fr;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-pair {
    gap: 12px;
  }
}

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

  .phone-pair .phone {
    transform: none;
  }
}
