/* PayJar site. The world: a restaurant after close. Deep brand green (the icon's #013936) is
   the night; the mint guest check is the one object that carries the numbers; real people in
   the photos carry the warmth. Mobile first. Voice and palette: marca/posicionamiento.md. */

:root {
  color-scheme: light dark;

  /* Brand greens, from marca/logo/payjar-icono.svg */
  --green-950: #01211f;
  --green-900: #012d2a;
  --green-800: #013936;
  --green-700: #02503f;
  --green-600: #0b6b55;
  --mint: #16e898;
  --mint-soft: #9cfbd7;

  /* Light theme: daylight reading on a phone */
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface2: #e8efeb;
  --line: #d5e0da;
  --text: #0c1a17;
  --text2: #44564f;
  --text3: #56675f;
  --action: #013936;
  --action-text: #08664f;
  --action-soft: #ddf2e7;
  --on-action: #ffffff;
  --money: #0a8754;
  --money-text: #07683f;
  --money-soft: #dff3e9;
  --overtime-soft: #ffedd5;
  --overtime-text: #9a3412;
  --danger: #b42318;
  --danger-soft: #fde8e7;

  /* The night bands: hero, the example shift, the closing call to action */
  --night: #013936;
  --night-2: #012d2a;
  --on-night: #ffffff;
  --on-night-2: #c9e4d8;
  --night-line: rgba(201, 228, 216, 0.22);
  --hero-cta: #16e898;
  --hero-cta-text: #01211f;

  /* The guest check: mint paper, printed green, ballpoint blue, a red rubber stamp */
  --paper: #e5f3eb;
  --paper-rule: #a8d1bd;
  --paper-print: #0b6b55;
  --paper-text: #10231e;
  --paper-text2: #3b5d52;
  --pen: #1d3a8f;
  --stamp: #ab2a21;

  --shadow: 0 1px 2px rgba(1, 33, 31, 0.06), 0 16px 36px -14px rgba(1, 33, 31, 0.22);
  --radius: 24px;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Kalam', 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive;
  --header-h: 112px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07120f;
    --surface: #0e1c19;
    --surface2: #152723;
    --line: #22362f;
    --text: #e8f2ee;
    --text2: #a6bab2;
    --text3: #93a79f;
    --action: #3ddc97;
    --action-text: #6ee7b7;
    --action-soft: #0f2e27;
    --on-action: #01211f;
    --money: #3dd68c;
    --money-text: #5be3a1;
    --money-soft: #0f2e24;
    --overtime-soft: #2a2113;
    --overtime-text: #fb923c;
    --danger: #f87171;
    --danger-soft: #3a1618;
    --night: #012624;
    --night-2: #011c1a;
    --paper: #d4eadf;
    --paper-rule: #9cc6b2;
    --shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

/* Japanese pages use the system font: the Latin faces have no kana or kanji. */
.site-ja {
  --font: system-ui, -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
  --font-display: var(--font);
  --font-hand: var(--font);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--green-600) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: clip;
}

body.site-ja {
  line-height: 1.8;
}

::selection {
  background: var(--mint);
  color: var(--green-950);
}

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

a {
  color: var(--action-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:hover {
  text-decoration-thickness: 2.5px;
}

strong {
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.site-ja h1,
.site-ja h2,
.site-ja h3 {
  letter-spacing: 0;
  line-height: 1.4;
  /* Break Japanese headings between phrases, not in the middle of a word (Chrome 119+). */
  word-break: auto-phrase;
}

.site-ja .lead,
.site-ja .pain p,
.site-ja .rules p,
.site-ja .card p {
  word-break: auto-phrase;
}

p {
  margin: 0 0 1em;
}

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

.top :focus-visible,
.hero-band :focus-visible,
.scene :focus-visible,
.cta-band :focus-visible,
.plan-pro :focus-visible {
  outline-color: var(--mint);
}

input,
select {
  caret-color: var(--action);
  accent-color: var(--action);
}

.num,
.tabular {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Narrow text column, aligned with the rest of the page (not centred). */
.narrow > * {
  max-width: 780px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.skip:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Header (sits on the night green of the hero) ---------- */

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--on-night);
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-block: 14px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand .mark {
  width: 28px;
  height: 28px;
  color: var(--mint);
}

.nav {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--on-night-2);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--on-night);
  text-decoration: underline;
  text-decoration-color: var(--mint);
}

.switcher {
  position: relative;
  margin-left: auto;
}

.switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--night-line);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.switcher summary:hover {
  border-color: var(--on-night-2);
}

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

.switcher .chev {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.switcher[open] .chev {
  transform: rotate(180deg);
}

.switcher ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(290px, calc(100vw - 32px));
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 50px -10px rgba(1, 20, 18, 0.35);
}

.switcher li a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.switcher li a small {
  color: var(--text2);
  font-size: 0.85rem;
  font-weight: 600;
}

.switcher li a:hover {
  background: var(--surface2);
}

.switcher li a[aria-current] {
  background: var(--action-soft);
}

.switcher li a:focus-visible {
  outline-color: var(--action);
}

@media (min-width: 760px) {
  :root {
    --header-h: 76px;
  }
  .wrap {
    padding-inline: 24px;
  }
  .nav {
    order: 0;
    width: auto;
    margin-left: auto;
    gap: 24px;
  }
  .switcher {
    margin-left: 0;
  }
}

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

.hero-band {
  padding-top: var(--header-h);
  padding-bottom: 48px;
  background: var(--night);
  color: var(--on-night);
}

.hero-inner {
  padding-top: 20px;
}

.hero-band a:not(.btn) {
  color: var(--on-night);
}

.hero-band h1 {
  margin: 8px 0 18px;
  font-size: clamp(2.5rem, 9.6vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.site-ja .hero-band h1 {
  font-size: clamp(2rem, 7.4vw, 3.4rem);
  line-height: 1.3;
  letter-spacing: 0;
}

.tool .hero-band h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 6.6vw, 3.3rem);
  line-height: 1.04;
}

.site-ja.tool .hero-band h1 {
  font-size: clamp(1.6rem, 5.6vw, 2.5rem);
  line-height: 1.35;
}

.lead {
  max-width: 34em;
  margin: 0 0 26px;
  color: var(--on-night-2);
  font-size: 1.15rem;
  line-height: 1.55;
}

.asof {
  margin: 0;
  color: var(--on-night-2);
  font-size: 0.95rem;
  font-weight: 600;
}

.asof .icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  color: var(--mint);
}

.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-band {
    padding-bottom: 88px;
  }
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
  }
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ticks .icon {
  width: 18px;
  height: 18px;
  color: var(--mint);
}

.audience {
  margin: 14px 0 0;
  color: var(--on-night-2);
  font-size: 0.95rem;
}

/* The picture: a photo of the work, with the app on top of it. */
.hero-visual {
  position: relative;
}

.hero-photo {
  overflow: hidden;
  border-radius: 28px;
  background: var(--green-700);
  aspect-ratio: 5 / 4;
}

.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual.has-photo .phone {
  margin: -96px auto 0;
  zoom: 0.72;
}

@media (min-width: 900px) {
  .hero-photo {
    aspect-ratio: 4 / 5;
  }
  .hero-visual.has-photo {
    margin-left: 70px;
  }
  .hero-visual.has-photo .phone {
    position: absolute;
    left: -96px;
    bottom: -56px;
    margin: 0;
    zoom: 0.78;
  }
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-night-2);
}

.crumbs li + li::before {
  content: '›';
  margin-right: 8px;
}

/* ---------- Buttons and store links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  box-shadow: 0 8px 20px -8px rgba(1, 33, 31, 0.5);
}

.btn:active {
  transform: translateY(1px);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-store {
  background: var(--hero-cta);
  color: var(--hero-cta-text);
  line-height: 1.15;
  text-align: left;
}

.btn-store small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}

.foot .btn-store,
.section .btn-store {
  background: var(--text);
  color: var(--bg);
}

/* "Coming soon": not a link, so it doesn't look like a button. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.3;
}

.soon .icon {
  color: var(--action-text);
}

.hero-band .soon,
.cta-band .soon {
  border-color: var(--night-line);
  color: var(--on-night);
}

.hero-band .soon .icon,
.cta-band .soon .icon {
  color: var(--mint);
}

.soon-compact {
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 64px;
}

.section + .section {
  padding-top: 16px;
}

.section h2 {
  max-width: 20em;
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 6vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.site-ja .section h2 {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: 0;
}

.section-lead {
  max-width: 38em;
  margin: 0 0 32px;
  color: var(--text2);
  font-size: 1.1rem;
}

@media (min-width: 760px) {
  .section {
    padding-block: 96px;
  }
  .section + .section {
    padding-top: 24px;
  }
}

/* Generic cards (tool pages: calculator form and result, figures) */

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 14px 0 6px;
  font-size: 1.15rem;
}

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

.card p + p {
  margin-top: 0.7em;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--action-soft);
  color: var(--action-text);
}

.tile-icon.money {
  background: var(--money-soft);
  color: var(--money-text);
}

/* ---------- Landing: the pains, as lines on a pad ---------- */

.pains-grid {
  display: grid;
  gap: 8px 72px;
  align-items: start;
}

.pains-photo {
  overflow: hidden;
  margin: 4px 0 32px;
  border-radius: var(--radius);
  background: var(--surface2);
  aspect-ratio: 3 / 2;
}

/* The izakaya photo has a drink brand sign on its right edge: keep the crop on the left. */
.site-ja .pains-photo {
  aspect-ratio: 1 / 1;
}

@media (min-width: 900px) {
  .pains-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .pains-intro {
    position: sticky;
    top: 32px;
  }
  .pains-photo,
  .site-ja .pains-photo {
    aspect-ratio: 4 / 5;
    margin-bottom: 0;
  }
}

.pain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--text);
}

.pain {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.pain .pain-q {
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.site-ja .pain .pain-q {
  font-size: 1.15rem;
  line-height: 1.55;
  letter-spacing: 0;
}

.pain p {
  max-width: 34em;
  margin: 0;
  color: var(--text2);
}

.pain strong {
  color: var(--text);
}

/* ---------- Landing: the example shift, on the night green ---------- */

.section.scene {
  margin-block: 24px;
  padding-block: 72px;
  background: var(--night);
  color: var(--on-night);
}

.section.scene + .section {
  padding-top: 72px;
}

.scene .section-lead {
  color: var(--on-night-2);
}

.scene-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .section.scene {
    padding-block: 110px;
  }
  .section.scene + .section {
    padding-top: 110px;
  }
  .scene-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-950);
  font-family: var(--font-display);
  font-weight: 800;
}

.steps h3 {
  margin: 6px 0 2px;
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
  color: var(--on-night-2);
}

/* The guest check. Paper stays paper in dark mode. */
.check {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 20px;
  border-radius: 4px 4px 14px 14px;
  background: var(--paper);
  color: var(--paper-text);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18), 0 34px 60px -24px rgba(0, 0, 0, 0.6);
  font-variant-numeric: tabular-nums;
  rotate: -1.4deg;
}

.check::before {
  /* The perforated top edge, where it was torn off the pad. */
  content: '';
  position: absolute;
  inset: -6px 0 auto;
  height: 12px;
  background: radial-gradient(circle at 6px 0, transparent 5px, var(--paper) 5.5px) -6px 6px / 12px 12px repeat-x;
}

.check-head {
  display: grid;
  gap: 2px;
  padding: 22px 110px 14px 22px;
  border-bottom: 2px solid var(--paper-print);
  color: var(--paper-text2);
  font-size: 0.92rem;
}

.check-head strong {
  color: var(--paper-text);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}

.stamp {
  position: absolute;
  top: 20px;
  right: 18px;
  padding: 3px 10px;
  border: 2.5px solid var(--stamp);
  border-radius: 6px;
  color: var(--stamp);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  rotate: 7deg;
}

.site-ja .stamp {
  letter-spacing: 0.2em;
}

.check dl {
  margin: 0;
}

.check-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 22px 9px;
  border-bottom: 1px solid var(--paper-rule);
}

.check-row dt {
  font-weight: 700;
}

.check-row dt small {
  display: block;
  color: var(--paper-text2);
  font-size: 0.88rem;
  font-weight: 600;
}

.hand {
  margin: 0;
  color: var(--pen);
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-ja .hand {
  font-size: 1.15rem;
  font-weight: 800;
}

.check-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 16px 22px 6px;
  border-top: 4px double var(--paper-print);
  font-weight: 800;
}

.check-total .hand {
  font-size: clamp(2.3rem, 9vw, 2.9rem);
}

.site-ja .check-total .hand {
  font-size: clamp(1.8rem, 7vw, 2.2rem);
}

.check-foot {
  margin: 10px 22px 0;
  color: var(--paper-text2);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* The one moment of motion: the total is written in as the check comes into view. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .check .pen {
      animation: pen-write linear both;
      animation-timeline: view();
      animation-range: entry 80% cover 30%;
    }
  }
}

@keyframes pen-write {
  from {
    clip-path: inset(-10% 100% -10% 0);
  }
  to {
    clip-path: inset(-10% -2% -10% 0);
  }
}

/* ---------- Landing: the country's rules, as a list ---------- */

.rules {
  display: grid;
  gap: 0 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .rules {
    grid-template-columns: 1fr 1fr;
  }
}

.rules li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.rule-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--action-soft);
  color: var(--action-text);
}

.rules h3 {
  margin: 8px 0 6px;
  font-size: 1.25rem;
}

.rules p {
  margin: 0;
  color: var(--text2);
}

/* ---------- Privacy ---------- */

.privacy-card {
  display: grid;
  gap: 20px;
  align-items: start;
  padding: 28px 22px;
  border-radius: 28px;
  background: var(--action-soft);
}

.privacy-card h2 {
  margin-top: 16px;
}

.privacy-card .tile-icon {
  background: var(--surface);
}

.privacy-card ul,
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
  margin: 0 0 12px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--money);
  border-bottom: 3px solid var(--money);
  transform: rotate(-45deg);
}

@media (min-width: 900px) {
  .privacy-card {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
  }
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.plan {
  padding: 28px 24px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan h3 {
  margin: 0;
  font-size: 1.35rem;
}

.plan .price {
  margin: 4px 0 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-ja .plan .price {
  font-size: 1.7rem;
  letter-spacing: 0;
}

.plan-pro {
  border-color: var(--night);
  background: var(--night);
  color: var(--on-night);
}

.plan-pro .price {
  color: var(--on-night);
}

.plan .checks li {
  color: var(--text);
}

.plan-pro .checks li {
  color: var(--on-night);
}

.plan-pro .checks li::before {
  border-color: var(--mint);
}

.fine {
  margin-top: 18px;
  color: var(--text2);
  font-size: 0.95rem;
}

/* ---------- Tool links ---------- */

.tool-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tool-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.tool-links a:hover {
  border-color: var(--action-text);
}

.tool-links .arrow {
  margin-left: auto;
  color: var(--action-text);
}

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

.faq h2 {
  margin-bottom: 20px;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .chev {
  color: var(--text2);
  transition: transform 0.15s ease;
}

.faq details[open] summary .chev {
  transform: rotate(180deg);
}

.faq .answer {
  max-width: 44em;
  padding: 0 0 20px;
  color: var(--text2);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Tool pages ---------- */

.figures {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  margin-bottom: 28px;
}

.figure {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.figure .label {
  display: block;
  color: var(--text2);
  font-size: 0.92rem;
  font-weight: 700;
}

.figure .value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.site-ja .figure .value {
  letter-spacing: 0;
}

.figure .value.money {
  color: var(--money-text);
}

.figure .sub {
  display: block;
  margin-top: 4px;
  color: var(--text2);
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .figure {
    padding: 14px 16px;
  }
  .figure .value {
    font-size: 1.6rem;
  }
}

.prose {
  max-width: 44em;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h3 {
  margin: 1.4em 0 0.4em;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.4em;
}

.callout {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--action-soft);
  color: var(--text);
}

.callout .icon {
  color: var(--action-text);
  margin-top: 2px;
}

.callout p {
  margin: 0;
}

.callout.warn {
  background: var(--overtime-soft);
}

.callout.warn .icon {
  color: var(--overtime-text);
}

.disclaimer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text2);
  font-size: 0.92rem;
}

.sources {
  color: var(--text2);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.sources h2 {
  font-size: 1.3rem;
}

.sources ul {
  padding-left: 1.2em;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  padding: 14px 16px 0;
  color: var(--text2);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--text2);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

tbody th {
  font-weight: 700;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

td.num,
th.num {
  text-align: right;
  white-space: nowrap;
}

td a,
th a {
  font-weight: 800;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text2);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

td.num .tag {
  display: block;
  width: max-content;
  margin: 4px 0 0 auto;
}

.tag.up {
  background: var(--money-soft);
  color: var(--money-text);
}

.tag.warn {
  background: var(--overtime-soft);
  color: var(--overtime-text);
}

.muted-line {
  display: block;
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  th,
  td {
    padding: 10px;
    font-size: 0.94rem;
  }
  thead th,
  thead th.num,
  td.num,
  .tag {
    white-space: normal;
  }
  td.num .tag {
    width: auto;
    text-align: right;
  }
  .hide-sm {
    display: none;
  }
}

.state-grid {
  display: grid;
  gap: 6px 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.state-grid a {
  display: inline-block;
  padding: 4px 0;
  font-weight: 700;
}

/* ---------- Calculators ---------- */

.calc {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 900px) {
  .calc {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .result {
    position: sticky;
    top: 16px;
  }
}

.form {
  display: grid;
  gap: 16px;
}

.form h2,
.result h2 {
  margin: 0;
  font-size: 1.4rem;
}

.field {
  display: grid;
  gap: 6px;
}

.field > label,
fieldset legend {
  font-weight: 800;
}

.hint {
  color: var(--text2);
  font-size: 0.88rem;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

input:hover,
select:hover {
  border-color: var(--text3);
}

input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 1px;
  border-color: var(--action);
  border-radius: 16px;
}

.affix {
  position: relative;
}

.affix > span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text2);
  font-weight: 700;
  pointer-events: none;
}

.affix .pre {
  left: 14px;
}

.affix .post {
  right: 14px;
}

.affix.has-pre input {
  padding-left: 34px;
}

.affix.has-post input {
  padding-right: 52px;
}

.row2 {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.form > *,
.result > * {
  min-width: 0;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.seg label {
  position: relative;
}

.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
}

.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 700;
  cursor: pointer;
}

.seg input:checked + span {
  border-color: var(--action);
  background: var(--action);
  color: var(--on-action);
}

.seg input:focus-visible + span {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}

.more summary {
  min-height: 44px;
  padding: 8px 0;
  color: var(--action-text);
  font-weight: 800;
  cursor: pointer;
}

.more[open] summary {
  margin-bottom: 10px;
}

.more .field + .field {
  margin-top: 14px;
}

.result {
  display: grid;
  gap: 14px;
}

.result-total {
  display: block;
  color: var(--money-text);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 9vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.site-ja .result-total {
  letter-spacing: 0;
}

.result-label {
  color: var(--text2);
  font-weight: 700;
}

.result .callout {
  margin: 0;
}

.lines {
  width: 100%;
}

.lines td,
.lines th {
  padding: 9px 0;
}

.lines td.num {
  padding-left: 12px;
}

.lines tfoot th,
.lines tfoot td {
  border-top: 2px solid var(--text);
  border-bottom: 0;
  font-weight: 800;
}

.lines .muted {
  display: block;
  color: var(--text2);
  font-size: 0.85rem;
  font-weight: 600;
}

.status-ok {
  color: var(--money-text);
}

.status-bad {
  color: var(--danger);
}

.wall-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wall-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.wall-list .wall-name {
  display: block;
  font-weight: 800;
}

.bar {
  height: 8px;
  margin: 8px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface2);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--money);
}

.bar.over span {
  background: var(--danger);
}

/* ---------- CTA band ---------- */

.cta-band {
  margin-top: 32px;
  padding-block: 64px;
  background: var(--night);
  color: var(--on-night);
}

.cta-band h2 {
  max-width: 16em;
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 6.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.site-ja .cta-band h2 {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: 0;
}

.cta-band p {
  max-width: 34em;
  margin-bottom: 22px;
  color: var(--on-night-2);
}

.cta-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

.cta-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-700);
  aspect-ratio: 3 / 2;
}

@media (min-width: 900px) {
  .cta-band {
    padding-block: 96px;
  }
  .cta-band.has-photo .cta-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

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

.foot {
  padding-top: 52px;
  background: var(--night-2);
  color: var(--on-night-2);
}

.foot-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.foot .brand {
  color: var(--on-night);
}

.foot-brand p {
  margin: 8px 0 16px;
}

.foot h2 {
  margin: 0 0 8px;
  color: var(--on-night);
  font-size: 1.05rem;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li a {
  display: inline-block;
  padding: 6px 0;
  color: var(--on-night-2);
  font-weight: 700;
  text-decoration: none;
}

.foot li a:hover {
  color: var(--on-night);
  text-decoration: underline;
  text-decoration-color: var(--mint);
}

.foot :focus-visible {
  outline-color: var(--mint);
}

.foot .soon {
  border-color: var(--night-line);
  color: var(--on-night);
}

.foot .soon .icon {
  color: var(--mint);
}

.foot .btn-store {
  background: var(--hero-cta);
  color: var(--hero-cta-text);
}

.foot-legal {
  margin-top: 36px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--night-line);
  font-size: 0.88rem;
}

.foot-legal p {
  margin: 0;
}

/* ---------- Phone mock-up: the app's Today screen during a shift ---------- */

.phone {
  /* The app's own tokens (src/ui/tokens.ts), not the site's. */
  --ph-bg: #f2f3f6;
  --ph-surface: #ffffff;
  --ph-line: #e3e5ea;
  --ph-text: #0e0f12;
  --ph-text2: #5c6270;
  --ph-money: #0a6b44;
  --ph-bar: #0a8754;
  --ph-track: #eceef2;
  --ph-tab: #2e5bff;
  --ph-shift: linear-gradient(165deg, #04211f 0%, #06463c 48%, #0b6e55 86%, #0f7f63 100%);
  position: relative;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 48px;
  background: #0a0b0f;
  box-shadow: 0 34px 70px -18px rgba(0, 12, 10, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  font-family: 'Manrope', var(--font);
}

@media (prefers-color-scheme: dark) {
  .phone {
    --ph-bg: #08090b;
    --ph-surface: #15171c;
    --ph-line: #262a33;
    --ph-text: #f4f5f7;
    --ph-text2: #a3a9b5;
    --ph-money: #3dd68c;
    --ph-bar: #3dd68c;
    --ph-track: #1f222a;
    --ph-tab: #9db0ff;
    --ph-shift: linear-gradient(165deg, #050814 0%, #0a1a1c 45%, #0c3a31 85%, #0e4a3c 100%);
  }
}

.site-ja .phone {
  font-family: var(--font);
}

.phone .screen {
  display: flex;
  flex-direction: column;
  min-height: 580px;
  overflow: hidden;
  border-radius: 38px;
  background: var(--ph-bg);
  color: var(--ph-text);
  font-size: 12px;
  line-height: 1.35;
}

.ph-hero {
  display: grid;
  gap: 12px;
  padding: 8px 14px 14px;
  background: var(--ph-shift);
  color: #ffffff;
}

.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding-inline: 6px;
  font-size: 12px;
  font-weight: 800;
}

.ph-island {
  width: 78px;
  height: 23px;
  border-radius: 12px;
  background: #000000;
}

.ph-bars {
  display: inline-flex;
  gap: 2px;
  align-items: end;
}

.ph-bars i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: #ffffff;
}

.ph-bars i:nth-child(1) {
  height: 4px;
}
.ph-bars i:nth-child(2) {
  height: 6px;
}
.ph-bars i:nth-child(3) {
  height: 8px;
}
.ph-bars i:nth-child(4) {
  height: 10px;
}

.ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.ph-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 5px rgba(61, 214, 140, 0.28);
}

.ph-clock {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.ph-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 600;
}

.ph-timer {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.ph-timer small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.ph-earned {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.ph-amount {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ph-rate {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
}

.ph-btn {
  padding: 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #0e0f12;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.ph-actions {
  display: flex;
  justify-content: space-around;
  gap: 4px;
}

.ph-actions span {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
}

.ph-actions i {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.ph-body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.ph-card {
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--ph-surface);
}

.ph-title {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
}

.ph-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ph-money {
  color: var(--ph-money);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ph-muted {
  color: var(--ph-text2);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ph-bar {
  height: 8px;
  margin: 8px 0 2px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ph-track);
}

.ph-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ph-bar);
}

.ph-bar .p66 {
  width: 66%;
}
.ph-bar .p70 {
  width: 70%;
}

.ph-tabs {
  display: flex;
  justify-content: space-around;
  padding: 10px 6px 16px;
  border-top: 1px solid var(--ph-line);
  background: var(--ph-surface);
  color: var(--ph-text2);
  font-size: 10px;
  font-weight: 700;
}

.ph-tabs .on {
  color: var(--ph-tab);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
