/* Brief — website styles. One file, no framework.
   Tokens follow the app (BriefColors.swift): near-white canvas, near-black
   ink, cobalt accent, the sky -> lavender -> blush aura of the product page. */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #F7F7F9;
  --card: #FFFFFF;
  --ink: #0E0F14;
  --ink-2: #4E505A;
  --ink-3: #62646E;
  --hairline: #E6E6EB;
  --hover: rgba(14, 15, 20, .06);
  --accent: #4361FB;
  --accent-text: #3149E0;
  --accent-soft: #E6EAFF;
  --sky: #CCE6FC;
  --lavender: #D1E0FC;
  --blush: #FEE9F6;
  --shadow: 0 1px 0 rgba(14, 15, 20, .03), 0 18px 40px -22px rgba(30, 40, 110, .22);
  --radius: 28px;
  --radius-sm: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-sky: #E2EFFD;      --t-sky-ink: #1B5DB5;
  --t-violet: #ECE7FE;   --t-violet-ink: #5A3BD4;
  --t-blush: #FDE8F2;    --t-blush-ink: #A82D68;
  --t-mint: #E2F6E8;     --t-mint-ink: #157A3B;
  --t-sun: #FFF0D6;      --t-sun-ink: #855400;
  --t-cobalt: #E6EAFF;   --t-cobalt-ink: #3149E0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0C0C10;
    --card: #17171D;
    --ink: #F4F4F6;
    --ink-2: #B7B9C3;
    --ink-3: #9799A4;
    --hairline: #2A2A33;
    --hover: rgba(255, 255, 255, .08);
    --accent: #6F86FF;
    --accent-text: #9AABFF;
    --accent-soft: #1C2350;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px -24px rgba(0, 0, 0, .7);

    --t-sky: #13263D;      --t-sky-ink: #8CC3FF;
    --t-violet: #221A40;   --t-violet-ink: #B9A4FF;
    --t-blush: #351627;    --t-blush-ink: #F59BC6;
    --t-mint: #12301E;     --t-mint-ink: #6FE09A;
    --t-sun: #33260C;      --t-sun-ink: #FFC65C;
    --t-cobalt: #1C2350;   --t-cobalt-ink: #9AABFF;
  }
}

/* ---------------------------------------------------------------- base */

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

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

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

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

:lang(ja) body, body:lang(ja) {
  font-family: "Satoshi", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.8;
  word-break: auto-phrase;
  line-break: strict;
}

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

a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }

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

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
b, strong { font-weight: 750; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 650;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* The aura behind the top of every page */
.aurora {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(1180px, 130vh);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 8% 4%, rgba(204, 230, 252, .95), transparent 70%),
    radial-gradient(45% 55% at 92% 10%, rgba(254, 233, 246, .95), transparent 72%),
    radial-gradient(60% 50% at 50% 40%, rgba(209, 224, 252, .9), transparent 75%),
    linear-gradient(100deg, #CCE6FC 0%, #D1E0FC 50%, #FEE9F6 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.page-support .aurora,
.page-privacy .aurora,
.page-terms .aurora,
.page-404 .aurora { height: 520px; }

@media (prefers-color-scheme: dark) {
  .aurora {
    background:
      radial-gradient(50% 55% at 12% 0%, rgba(67, 97, 251, .38), transparent 70%),
      radial-gradient(42% 50% at 90% 6%, rgba(214, 110, 190, .24), transparent 72%),
      radial-gradient(60% 50% at 50% 38%, rgba(120, 100, 255, .16), transparent 75%);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-fill linear both;
    animation-timeline: scroll();
    animation-range: 0 96px;
  }
  @keyframes header-fill {
    from {
      background-color: transparent;
      border-bottom-color: transparent;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }
}

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -.01em;
  text-decoration: none;
  border-radius: 10px;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px -4px rgba(67, 97, 251, .45);
}

.site-header nav { margin-left: auto; }
.nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9688rem;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--hover); }

@media (max-width: 760px) {
  .nav .nav-sections { display: none; }
}

/* language switcher: a plain disclosure with links, no script */
.lang { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9688rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: var(--hover); }
.lang .i { width: 18px; height: 18px; }
.lang .chev { width: 16px; height: 16px; transition: rotate .2s ease; }
.lang[open] .chev { rotate: 180deg; }
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 8px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: 0 24px 48px -18px rgba(14, 15, 20, .28);
}
.lang li a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}
.lang li a:hover { background: var(--hover); }
.lang li a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }

@media (max-width: 420px) {
  .lang summary span { display: none; }
}

/* ---------------------------------------------------------------- shared */

.section { padding-block: clamp(72px, 10vw, 136px); }

.section-head { max-width: 880px; margin-bottom: clamp(32px, 5vw, 56px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: .8125rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:lang(ja) .eyebrow { letter-spacing: .04em; }

h2 {
  font-size: clamp(2.125rem, 1.35rem + 3.3vw, 3.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 18px;
}
h2 b { font-weight: 800; display: inline-block; }

.lead {
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
  line-height: 1.55;
  max-width: 44em;
}

.small { color: var(--ink-3); font-size: .9375rem; }

:lang(ja) h1, :lang(ja) h2 { letter-spacing: -.01em; line-height: 1.25; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
}
.tag-new { background: var(--accent-soft); color: var(--accent-text); }
.tag-premium {
  background: linear-gradient(100deg, #DCEBFE, #E3DDFE 55%, #FCE3F2);
  color: #3B2C9E;
}
@media (prefers-color-scheme: dark) {
  .tag-premium { background: linear-gradient(100deg, #1A2C4D, #2A2257 55%, #401C35); color: #D3C8FF; }
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}
.more .i { width: 20px; height: 20px; transition: translate .2s ease; }
.more:hover .i { translate: 3px 0; }

.store { display: inline-block; border-radius: 12px; line-height: 0; }
.store svg { height: 54px; width: auto; }
.store:hover svg rect { fill: #1b1b1f; }
@media (prefers-color-scheme: dark) {
  .store svg rect { stroke: #6E6E73; }
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

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

.hero { padding-top: clamp(36px, 7vw, 88px); text-align: center; }
.hero-text { display: flex; flex-direction: column; align-items: center; }

.app-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 30px -16px rgba(67, 97, 251, .45);
  font-weight: 750;
  font-size: 1.0625rem;
  letter-spacing: -.005em;
}
.app-name-icon { width: 44px; height: 44px; border-radius: 11px; }
@media (prefers-color-scheme: dark) {
  .app-name { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
}

.hero-tag {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9688rem;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 1.55rem + 6.6vw, 6.5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
  margin-bottom: 26px;
}
h1 b { font-weight: 800; display: inline-block; }
:lang(ja) h1 { max-width: 16em; font-size: clamp(2.375rem, 1.4rem + 4.6vw, 4.75rem); }

.hero .lede {
  max-width: 34em;
  margin-bottom: 30px;
  color: var(--ink-2);
  font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.4375rem);
  line-height: 1.5;
}
.hero .cta-row { justify-content: center; }
.cta-note { margin: 14px 0 0; color: var(--ink-3); font-size: .9375rem; font-weight: 550; }

.hero-art { margin-top: clamp(28px, 5vw, 56px); }
.hero-art img {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  /* feather all four edges into the aura */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
  mask-composite: intersect;
}
@media (prefers-color-scheme: dark) {
  .hero-art img {
    border-radius: clamp(20px, 3vw, 36px);
    -webkit-mask-image: none;
    mask-image: none;
    box-shadow: 0 40px 90px -40px rgba(67, 97, 251, .55);
  }
}

/* ---------------------------------------------------------------- features */

.features { padding-top: clamp(40px, 6vw, 72px); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature { padding: 28px 28px 30px; }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.feature .ico, .points .ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--tint, var(--t-cobalt));
  color: var(--tint-ink, var(--t-cobalt-ink));
}
.feature .ico .i, .points .ico .i { width: 26px; height: 26px; }
.feature h3 {
  font-size: 1.375rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}
.feature p { margin: 0; color: var(--ink-2); }

.tint-sky { --tint: var(--t-sky); --tint-ink: var(--t-sky-ink); }
.tint-violet { --tint: var(--t-violet); --tint-ink: var(--t-violet-ink); }
.tint-blush { --tint: var(--t-blush); --tint-ink: var(--t-blush-ink); }
.tint-mint { --tint: var(--t-mint); --tint-ink: var(--t-mint-ink); }
.tint-sun { --tint: var(--t-sun); --tint-ink: var(--t-sun-ink); }
.tint-cobalt { --tint: var(--t-cobalt); --tint-ink: var(--t-cobalt-ink); }

.languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--ink-2);
  font-weight: 550;
}

/* 3D medicine icons, when they exist (see tools/build.py, icons_row) */
.icon-row { margin: 0 0 clamp(28px, 4vw, 44px); }
.icon-row ul { display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 22px); list-style: none; }
.icon-row img { width: clamp(52px, 7vw, 72px); height: auto; filter: drop-shadow(0 12px 18px rgba(55, 65, 200, .22)); }
.icon-row figcaption { margin-top: 12px; color: var(--ink-3); font-size: .9375rem; font-weight: 550; }

/* ---------------------------------------------------------------- screens */

.shots { padding-top: clamp(24px, 4vw, 48px); }

.track {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 28px;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 25%, transparent) transparent;
}
.track:focus-visible { outline-offset: -3px; border-radius: 0; }
.track > li { flex: 0 0 auto; width: clamp(224px, 64vw, 272px); scroll-snap-align: start; }

.phone { margin: 0; container-type: inline-size; }
.frame {
  position: relative;
  padding: 3.3cqi;
  border-radius: 15.2cqi;
  background: linear-gradient(150deg, #3A3C47 0%, #121319 28%, #0E0F14 70%, #2A2C35 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 2px 0 rgba(255, 255, 255, .5),
    0 34px 60px -28px rgba(32, 40, 120, .45),
    0 10px 24px -12px rgba(14, 15, 20, .3);
}
.frame img { width: 100%; border-radius: 11.9cqi; background: #E9ECF5; }
.frame::after {
  content: "";
  position: absolute;
  top: 5.6cqi;
  left: 50%;
  width: 26.5cqi;
  height: 7.8cqi;
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}
.phone figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  text-align: center;
  font-weight: 650;
  line-height: 1.35;
}

/* ---------------------------------------------------------------- privacy band */

.privacy { padding-block: clamp(24px, 4vw, 48px); }
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: clamp(8px, 1.6vw, 24px);
  padding-block: clamp(64px, 9vw, 120px);
  border-radius: clamp(28px, 4vw, 48px);
  background: #0E0F14;
  color: #F4F4F6;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 0% 0%, rgba(67, 97, 251, .55), transparent 70%),
    radial-gradient(40% 60% at 100% 10%, rgba(214, 120, 200, .32), transparent 70%),
    radial-gradient(50% 50% at 70% 110%, rgba(140, 195, 255, .25), transparent 70%);
}
.band h2, .band h3 { color: #FFFFFF; }
.band .eyebrow { color: #A9ACBA; }
.band .lead, .band p { color: #C9CBD5; }
.band a { color: #B7C3FF; }
.band :focus-visible { outline-color: #B7C3FF; }
@media (prefers-color-scheme: dark) {
  .band { background: #15151C; box-shadow: inset 0 0 0 1px #2A2A33; }
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: 40px;
  list-style: none;
}
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }
.points .ico { --tint: rgba(255, 255, 255, .1); --tint-ink: #DDE3FF; margin-bottom: 20px; }
.points h3 { font-size: 1.3125rem; font-weight: 750; letter-spacing: -.01em; margin-bottom: 8px; }
.points p { margin: 0; }

/* ---------------------------------------------------------------- watch (removable) */

.watch-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(36px, 6vw, 80px);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(254, 233, 246, .95), transparent 70%),
    linear-gradient(110deg, #CCE6FC, #D1E0FC 55%, #EDE3FB);
}
.watch-card .lead, .watch-card .small { color: #3E404A; }
.watch-card h2, .watch-card .eyebrow { color: #0E0F14; }
.watch-card .eyebrow { color: #3E404A; }
.watch-card .tag-new { background: rgba(255, 255, 255, .7); color: #2C40C9; }
.watch-text > :last-child { margin-bottom: 0; }
@media (prefers-color-scheme: dark) {
  .watch-card {
    background:
      radial-gradient(60% 80% at 100% 0%, rgba(214, 110, 190, .28), transparent 70%),
      linear-gradient(110deg, #142540, #1B1F45 55%, #2A1B3A);
  }
  .watch-card h2 { color: #FFFFFF; }
  .watch-card .lead, .watch-card .small, .watch-card .eyebrow { color: #C9CBD5; }
  .watch-card .tag-new { background: rgba(255, 255, 255, .1); color: #C3CCFF; }
}
@media (max-width: 860px) { .watch-card { grid-template-columns: 1fr; } }

.watch-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.ring {
  position: absolute;
  width: min(300px, 76vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #4361FB, #8C6BFF 40%, #F6A8D6 70%, rgba(255, 255, 255, .5) 70.5%, rgba(255, 255, 255, .5));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
  filter: drop-shadow(0 20px 30px rgba(67, 97, 251, .3));
}
.chips {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(190px, 52vw);
  list-style: none;
}
.chip {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #0E0F14;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 8px 20px -12px rgba(14, 15, 20, .35);
}
.chip-solid { background: #0E0F14; color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  .chip { background: rgba(255, 255, 255, .12); color: #F4F4F6; }
  .chip-solid { background: #F4F4F6; color: #0E0F14; }
}

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

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.plan h3 { font-size: 1.25rem; font-weight: 750; margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.amount {
  font-size: clamp(3.25rem, 2.4rem + 3vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.per { color: var(--ink-2); font-size: 1.25rem; font-weight: 650; }
.plan-sub { color: var(--ink-2); margin-bottom: 26px; }
.plan-alt { color: var(--ink); font-weight: 650; }
.plan-lead { font-weight: 700; margin-bottom: 12px; }
.plan .small { margin: 22px 0 0; }

.plan-premium {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(120deg, #8CC3FF, #4361FB 40%, #9B6BFF 70%, #F6A8D6) border-box;
}
.plan-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(70% 50% at 100% 0%, rgba(209, 224, 252, .7), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .plan-premium::before { background: radial-gradient(70% 50% at 100% 0%, rgba(67, 97, 251, .2), transparent 70%); }
}
.plan-premium > * { position: relative; }

.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; line-height: 1.45; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .08em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--t-mint);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: calc(.08em + 5px);
  width: 6px;
  height: 10px;
  border: solid var(--t-mint-ink);
  border-width: 0 2.2px 2.2px 0;
  rotate: 45deg;
}
.plan-premium .checks li::before { background: var(--t-cobalt); }
.plan-premium .checks li::after { border-color: var(--t-cobalt-ink); }

.price-note { margin: 22px 0 0; color: var(--ink-3); font-size: .9375rem; text-align: center; }

/* ---------------------------------------------------------------- closing call */

.cta { padding-top: 0; }
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 26px;
  box-shadow: 0 24px 50px -16px rgba(67, 97, 251, .55);
}
.cta h2 { font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.cta .lead { margin-bottom: 26px; }
.cta .cta-row { justify-content: center; margin-bottom: 22px; }

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

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: .9375rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-langs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.foot-about .brand { margin-bottom: 16px; }
.disclaimer { max-width: 40em; }
.site-footer h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.foot-small { padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--ink-3); font-size: .8125rem; }
.foot-small p { margin-bottom: .5em; max-width: 80em; }

/* ---------------------------------------------------------------- inner pages */

.page-head { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 44px); }
.page-head h1 { max-width: none; font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem); margin-bottom: 18px; }
:lang(ja) .page-head h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }

.toc ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 10px; }
.toc a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9);
  color: var(--ink);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.toc a:hover { background: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  .toc a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
  .toc a:hover { background: rgba(255, 255, 255, .12); }
}

.faq { padding-bottom: clamp(64px, 9vw, 120px); }
.faq-group { margin-top: clamp(36px, 5vw, 56px); scroll-margin-top: 80px; }
.faq-group > h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem); font-weight: 750; letter-spacing: -.02em; margin-bottom: 18px; }
.qa {
  max-width: 860px;
  margin-bottom: 12px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--hairline);
  scroll-margin-top: 80px;
}
.qa h3 { font-size: 1.1875rem; font-weight: 750; letter-spacing: -.01em; margin-bottom: 10px; }
.qa p, .qa li { color: var(--ink-2); }
.qa > :last-child { margin-bottom: 0; }
.qa ul, .legal ul { padding-left: 1.25em; margin: 0 0 1em; display: grid; gap: 6px; }
.qa li b, .qa p b { color: var(--ink); }
.contact .cta-row { margin-top: 20px; }

.legal { max-width: calc(780px + 2 * var(--gutter)); padding-bottom: clamp(64px, 9vw, 120px); }
.legal .page-head { padding-inline: 0; }
.legal .meta { color: var(--ink-2); font-weight: 550; }
.translation-note {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 550;
}
.legal h2 {
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin: 2.2em 0 .6em;
  scroll-margin-top: 80px;
}
.legal h3 { font-size: 1.1875rem; font-weight: 750; margin: 1.6em 0 .5em; }
.legal p, .legal li { color: var(--ink-2); }
.legal b { color: var(--ink); }
.summary {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.summary h2 { margin-top: 0; }
.summary ul { margin-bottom: 0; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: .9688rem;
  display: block;
  overflow-x: auto;
}
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.legal th { color: var(--ink); font-weight: 750; white-space: nowrap; }
.legal td { color: var(--ink-2); min-width: 9em; }
.back { margin-top: 3em; }

.notfound { min-height: 70vh; }
.notfound .brand { margin-bottom: 40px; }
.notfound h1 { max-width: none; }
.lang-list { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin-top: 32px; }

/* ---------------------------------------------------------------- motion & print */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .aurora, .site-header, .site-footer .foot-langs, .skip, .back { display: none !important; }
  body { background: #fff; color: #000; }
  .qa, .summary { box-shadow: none; border-color: #ccc; }
  a { color: #000; }
}
