/* Amiku website: the one shared stylesheet.
   Colours and fonts match the app (ZigZag repo, src/theme/tokens.ts). */

/* Fonts, colours and sizes are chosen in the website editor and written to theme.css,
   which every page loads after this file. The values below are only the defaults. */

:root {
  --bg: #000000;
  --card: #000000; /* black everywhere: boxes are drawn with a border only */
  --border: #222222;
  --line: #1c1c1c;
  --text: #f2f2ee;
  --text-emphasis: #e4e4e0;
  --text-secondary: #9c9c98;
  --text-footnote: #8a8a86;
  --accent: #b6ff2e; /* Electric Lime */
  --on-accent: #000000;

  --heading-scale: 1;
  --body-size: 18px;
  --serif: "Times New Roman", "Tinos", Times, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --width: 1120px;
  --gutter: 20px;
  --header: 64px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

main { flex: 1; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 10;
}
.skip-link:focus { left: 8px; }

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: calc(clamp(44px, 7.4vw, 80px) * var(--heading-scale)); }
h2 { font-size: calc(clamp(34px, 5.2vw, 56px) * var(--heading-scale)); }
h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }

/* One sentence per line in a heading. */
.line { display: block; }

p { margin: 0 0 1em; }

.lede {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--text-emphasis);
  max-width: 34em;
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 22px;
}
.label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header);
}

.wordmark {
  font-family: var(--serif);
  font-size: 28px;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.wordmark:hover { color: var(--text); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 16px;
  color: var(--text-emphasis);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

/* Header menus (Company, Policy): tap to open */
.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  color: var(--text-emphasis);
  user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
.menu details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.menu summary:hover,
.menu summary.current,
.menu details[open] summary { color: var(--accent); }

.menu-panel {
  position: absolute;
  top: calc(100% + 20px);
  right: -24px;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: grid;
  gap: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
}
.menu-panel.two { grid-template-columns: 1fr 1fr; min-width: 400px; gap: 32px; }
.menu-heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-footnote);
  white-space: nowrap;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-links .menu-panel a { display: block; padding: 6px 0; font-size: 17px; white-space: nowrap; }

/* On phones the open menu spans the screen under the header. */
@media (max-width: 640px) {
  .menu { position: static; }
  .menu-panel, .menu-panel.two {
    position: fixed;
    top: calc(var(--header) + 8px);
    left: 16px;
    right: 16px;
    min-width: 0;
  }
  .menu-panel.two { gap: 20px; }
}

@media (max-width: 420px) {
  .nav-links { gap: 18px; }
  .menu summary { font-size: 15px; }
  .nav-links a { font-size: 15px; }
  .wordmark { font-size: 25px; }
}

/* Home: the hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px 0 112px;
}
.hero .wrap { position: relative; width: 100%; text-align: center; }
.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: calc(clamp(96px, 25vw, 300px) * var(--heading-scale));
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0 0 0.14em;
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.25;
  color: var(--text-emphasis);
  margin: 0 auto;
  max-width: 22em;
  text-wrap: balance;
}
.hero-soon {
  margin: 44px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--border), var(--text) 6%);
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 18px;
}
.scroll-cue:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: clamp(72px, 11vw, 140px) 0; border-top: 1px solid var(--line); }

.split {
  display: grid;
  gap: 32px 72px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 1fr; }
  .split .split-text { padding-top: 14px; }
}
.split h2 { margin: 0; }
.split-text p { color: var(--text-emphasis); }
.split-text p:last-child { margin-bottom: 0; }

.statement {
  font-family: var(--serif);
  font-size: calc(clamp(30px, 4.6vw, 52px) * var(--heading-scale));
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 19em;
  margin: 0;
  text-wrap: balance;
}

/* Store badges, shown as "coming soon" until the app is approved */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store {
  display: inline-flex;
  flex-direction: column;
  min-width: 170px;
  padding: 12px 22px 13px;
  border: 1px solid color-mix(in srgb, var(--border), var(--text) 6%);
  border-radius: 14px;
  text-align: left;
}
.store small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.store span { font-size: 20px; font-weight: 600; line-height: 1.3; }

.closing { text-align: center; }
.closing .statement { margin: 0 auto; }
.closing .stores { justify-content: center; }

/* Page heads (Company, Privacy, Support) */
.page-head { padding: clamp(64px, 11vw, 128px) 0 clamp(36px, 6vw, 64px); }
.page-head h1 { max-width: 15em; }

/* Cards */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--text-secondary); }
.card p:last-child { margin-bottom: 0; }
.card-number {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 40px;
}

.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 0.3em; }
.section-head p { color: var(--text-secondary); }

/* Company: facts list */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .facts div { grid-template-columns: 220px 1fr; } }
.facts dt { color: var(--text-secondary); font-size: 16px; }
.facts dd { margin: 0; color: var(--text-emphasis); }

/* Contact tiles */
.contact-tile {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.15s ease;
}
.contact-tile:hover { border-color: var(--accent); color: var(--text); }
.contact-tile h3 { margin-bottom: 0.35em; }
.contact-tile p { color: var(--text-secondary); margin-bottom: 18px; }
.contact-tile .go { color: var(--accent); font-weight: 600; font-size: 16px; }

/* The big email on Support */
.email-big {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* Long text: Privacy, Support */
.doc {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(72px, 10vw, 128px);
}
@media (min-width: 960px) {
  .doc { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; }
  .toc { position: sticky; top: calc(var(--header) + 32px); align-self: start; }
}
.toc .label { margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.35;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--text-footnote); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--accent); }
@media (max-width: 959px) {
  .toc { border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; background: var(--card); }
}

.prose { max-width: 42em; }
.prose h2 {
  font-size: clamp(28px, 3.6vw, 36px);
  margin-top: 1.8em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child, .prose .notice + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 22px; margin-top: 1.5em; }
.prose p, .prose li { color: var(--text-emphasis); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text-secondary); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.prose td { color: var(--text-emphasis); }

.notice {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--text-emphasis);
  margin: 0 0 40px;
}
.notice p:last-child { margin-bottom: 0; }

/* Placeholders still to be filled in: shown in lime so they can't be missed */
.tbc { color: var(--accent); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: step; display: flex; gap: 14px; margin-bottom: 12px; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-top: 1px;
}

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 19px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-secondary); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  color: var(--text-footnote);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  gap: 36px 32px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 48px;
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
.footer-brand .wordmark { font-size: 32px; color: var(--text); display: inline-block; margin-bottom: 8px; }
.footer-brand p { color: var(--text-secondary); max-width: 18em; margin: 0; }
.footer-col h2 {
  font-family: var(--sans);
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-footnote);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-emphasis); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-legal p { margin: 0; }

/* Leadership */
.person { display: grid; gap: 28px; align-items: start; max-width: 52em; }
@media (min-width: 700px) { .person { grid-template-columns: 200px 1fr; gap: 48px; } }
.portrait {
  width: 200px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 64px;
  color: var(--text-secondary);
}
.person h2 { margin-bottom: 0.15em; }
.role {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.person p:not(.role) { color: var(--text-emphasis); }

/* Note under the short policy pages */
.more-note { margin: 40px 0 0; color: var(--text-secondary); font-size: 16px; }
