@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/font-latin.153fc85b70.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/font-latin-ext.38e3b8fd80.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
:root {
  --bg: #E3F0EB;
  --surface: #CFE6DD;
  --tile: #F3FAF7;
  --text: #0F3B33;
  --text-2: #2E5B52;
  --primary: #127A66;
  --on-primary: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme='light']) {
  --bg: #0E2723;
  --surface: #173B35;
  --tile: #21504A;
  --text: #EAF7F2;
  --text-2: #B7D9CF;
  --primary: #3CC7A8;
  --on-primary: #0B2420;
}
}
:root[data-theme='dark'] {
  --bg: #0E2723;
  --surface: #173B35;
  --tile: #21504A;
  --text: #EAF7F2;
  --text-2: #B7D9CF;
  --primary: #3CC7A8;
  --on-primary: #0B2420;
  color-scheme: dark;
}
:root[data-theme='light'] {
  color-scheme: light;
}
/* GoTappo public website. Colour tokens (--bg, --surface, --tile, --text,
   --text-2, --primary, --on-primary) and @font-face rules are injected by
   build.mjs from src/theme/menta.json. Only shape colours are fixed. */

:root {
  color-scheme: light dark;
  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 14px;
  --gap: clamp(16px, 4vw, 32px);
  --max: 1080px;
  --font: 'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', system-ui, -apple-system,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

:lang(ja) {
  --font: 'Plus Jakarta Sans Variable', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
    'Noto Sans JP', 'Yu Gothic', Meiryo, system-ui, sans-serif;
}

:lang(zh-TW) {
  --font: 'Plus Jakarta Sans Variable', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei',
    system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-s);
  font-weight: 700;
  z-index: 10;
}

.skip:focus {
  top: 16px;
}

.muted {
  color: var(--text-2);
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* The app icon (web/src/assets/logo.svg, from scripts/build-icons). */
.brand img {
  width: 44px;
  height: 44px;
  flex: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Narrow phones: the symbol alone leaves room for the theme and language
   controls (the link keeps its accessible name). */
@media (max-width: 420px) {
  .brand span {
    display: none;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* The icon shows the theme a click switches to. */
.theme-toggle[aria-pressed='true'] .icon-moon,
.theme-toggle[aria-pressed='false'] .icon-sun {
  display: none;
}

.lang {
  position: relative;
}

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary svg {
  width: 20px;
  height: 20px;
}

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--tile);
  border-radius: var(--radius-m);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
}

.lang li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  text-decoration: none;
}

.lang li a:hover,
.lang li a[aria-current='true'] {
  background: var(--surface);
}

.lang li a[aria-current='true'] {
  font-weight: 700;
}

/* Hero */

.hero .wrap {
  display: grid;
  gap: var(--gap);
  align-items: center;
  padding-top: clamp(16px, 4vw, 48px);
  padding-bottom: clamp(32px, 6vw, 72px);
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.lead {
  font-size: clamp(1.125rem, 2.4vw, 1.3rem);
  color: var(--text-2);
  max-width: 34em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 20px 10px 16px;
  border-radius: var(--radius-m);
  background: var(--primary);
  color: var(--on-primary);
  line-height: 1.2;
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store strong {
  display: block;
  font-size: 1.0625rem;
}

.store span {
  font-size: 0.875rem;
}

/* Duel mockup */

.phone {
  justify-self: center;
  margin: 0;
  width: min(100%, 340px);
  padding: 18px;
  border-radius: 40px;
  background: var(--bg);
  box-shadow: 0 0 0 10px var(--surface), 0 30px 60px rgb(0 0 0 / 0.16);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  font-weight: 800;
}

.who {
  flex: 1;
  line-height: 1.25;
  font-size: 0.875rem;
}

.who b {
  display: block;
  font-size: 0.95rem;
}

.score {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
}

.score span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
}

.score .me {
  background: var(--primary);
  color: var(--on-primary);
}

.dashes {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 14px 0;
}

.dashes i {
  width: 24px;
  height: 5px;
  border-radius: 3px;
  background: var(--primary);
}

.dashes i.lost {
  background: var(--text-2);
}

.dashes i.next {
  background: var(--surface);
}

.board {
  padding: 16px;
  border-radius: var(--radius-l);
  background: var(--surface);
  text-align: center;
}

.board .ask {
  margin: 0;
  font-size: 0.875rem;
}

.board .target {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tiles span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius-m);
  background: var(--tile);
}

.tiles svg {
  width: 48%;
  height: 48%;
}

.reaction {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-m);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.reaction b {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.reaction .right {
  text-align: right;
}

.reaction .right b {
  font-size: 0.95rem;
}

.shape-red {
  fill: #ef5b4c;
}

.shape-green {
  fill: #1e9e85;
}

.shape-blue {
  fill: #3d7be8;
}

.shape-yellow {
  fill: #f2a928;
}

/* Sections */

.section {
  padding: clamp(40px, 7vw, 80px) 0;
}

.section-title {
  margin-bottom: 28px;
}

.grid3 {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .grid3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--surface);
}

.card p {
  margin: 0;
  color: var(--text-2);
}

.chip {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: var(--radius-m);
  background: var(--primary);
  color: var(--on-primary);
}

.chip svg {
  width: 28px;
  height: 28px;
}

.card.tonal {
  background: var(--tile);
}

.card.tonal .chip {
  background: var(--surface);
  color: var(--text);
}

.step-n {
  display: block;
  margin-bottom: 4px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 700;
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  border-radius: var(--radius-m);
  background: var(--surface);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--text-2);
}

/* Legal pages */

.doc {
  max-width: 760px;
  padding-top: 8px;
  padding-bottom: clamp(40px, 7vw, 80px);
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.doc h2 {
  font-size: 1.375rem;
  margin-top: 2em;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.doc li {
  margin-bottom: 0.4em;
}

.notice {
  margin: 0 0 32px;
  padding: 16px 20px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border-left: 6px solid var(--primary);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-m);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lead.center {
  margin: 0 auto 28px;
}

.not-found {
  padding: clamp(48px, 10vw, 120px) var(--gap);
  text-align: center;
}

/* Footer */

.site-footer {
  margin-top: 24px;
  padding: 40px 0 48px;
  background: var(--surface);
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-block;
  padding: 6px 0;
  font-weight: 600;
}

.site-footer small {
  display: block;
  color: var(--text-2);
  font-size: 0.875rem;
  margin-top: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  .lang summary,
  .faq summary,
  .button,
  .store {
    transition: background-color 0.15s ease;
  }
}
