/* Interval Walk — shared styles
   Palette mirrors the app's "Japan" theme: washi paper, sumi ink,
   indigo for slow rounds, vermillion for fast rounds. */

:root {
  --paper:      #FDFBF7;
  --paper-2:    #F4EDE3;
  --panel:      #FFFCF8;
  --panel-edge: #EBE1D3;
  --ink:        #1C1612;
  --ink-soft:   #5C534A;
  --ink-faint:  #8A7E72;
  --line:       #E8DFD2;
  --vermillion: #9B2D20;
  --indigo:     #2A4A6B;
  --slow:       #2B6B70;
  --fast:       #B33A28;
  --gold:       #D4A017;
  --slow-wash:  #E4F0F1;
  --fast-wash:  #F4E4DC;
  --shadow:     0 1px 2px rgba(28, 22, 18, .04), 0 12px 32px -18px rgba(28, 22, 18, .28);
  --shadow-lg:  0 2px 4px rgba(28, 22, 18, .05), 0 40px 80px -40px rgba(28, 22, 18, .45);

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --gothic: "Zen Kaku Gothic New", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono:   "Google Sans Code", ui-monospace, "SF Mono", Menlo, monospace;

  --page: 68rem;
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #161210;
    --paper-2:    #12161C;
    --panel:      #221C17;
    --panel-edge: #332B23;
    --ink:        #F0E6D8;
    --ink-soft:   #C4B8AA;
    --ink-faint:  #8A7E72;
    --line:       #2E2721;
    --vermillion: #E8A598;
    --indigo:     #9BB4D0;
    --slow:       #8EC9CE;
    --fast:       #E8A07A;
    --gold:       #E2B94A;
    --slow-wash:  #1A3340;
    --fast-wash:  #3A150F;
    --shadow:     0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -18px rgba(0, 0, 0, .7);
    --shadow-lg:  0 2px 4px rgba(0, 0, 0, .35), 0 40px 80px -40px rgba(0, 0, 0, .9);
  }
}

:root[data-theme="dark"] {
  --paper:      #161210;
  --paper-2:    #12161C;
  --panel:      #221C17;
  --panel-edge: #332B23;
  --ink:        #F0E6D8;
  --ink-soft:   #C4B8AA;
  --ink-faint:  #8A7E72;
  --line:       #2E2721;
  --vermillion: #E8A598;
  --indigo:     #9BB4D0;
  --slow:       #8EC9CE;
  --fast:       #E8A07A;
  --gold:       #E2B94A;
  --slow-wash:  #1A3340;
  --fast-wash:  #3A150F;
  --shadow:     0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -18px rgba(0, 0, 0, .7);
  --shadow-lg:  0 2px 4px rgba(0, 0, 0, .35), 0 40px 80px -40px rgba(0, 0, 0, .9);
}

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

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

body {
  margin: 0;
  font-family: var(--gothic);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image: linear-gradient(180deg, var(--paper) 0%, var(--paper) 42%, var(--paper-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint paper grain, drawn once behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--mincho);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h3 { font-size: 1.1rem; letter-spacing: 0; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

.kicker {
  font-family: var(--gothic);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34rem;
}

.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

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

.site-head {
  padding-block: 1.5rem;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.seal {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}
.brand-name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.head-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .92rem;
}
.head-links a { color: var(--ink-soft); text-decoration: none; }
.head-links a:hover { color: var(--ink); }
@media (max-width: 40rem) {
  .head-links .hide-sm { display: none; }
}

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

.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 6rem); }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

.hero-copy > * + * { margin-top: 1.25rem; }

.protocol-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .88rem;
  color: var(--ink-soft);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.slow { background: var(--slow); }
.dot.fast { background: var(--fast); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--gothic);
  font-size: .97rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

.btn-primary {
  background: var(--vermillion);
  color: var(--paper);
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .btn-primary { color: #3D1210; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { color: #3D1210; }
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-faint); }

.btn svg { flex: none; }

/* ---------- phone ---------- */

.phone-stage {
  display: grid;
  place-items: center;
  position: relative;
}
.phone-stage::after {
  content: "";
  position: absolute;
  width: min(24rem, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--slow-wash) 0%, transparent 68%);
  opacity: .8;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(19rem, 78vw);
  aspect-ratio: 9 / 18.6;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, var(--panel-edge), var(--line));
  box-shadow: var(--shadow-lg);
}
.screen {
  height: 100%;
  border-radius: 31px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--slow-wash) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.6rem 1.1rem 1.1rem;
  overflow: hidden;
}
.screen-title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: .95rem;
}
.screen-kicker {
  font-size: .55rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .2rem;
}

.ring-box { position: relative; width: 100%; margin-top: 1.1rem; }
.ring-box svg { display: block; width: 100%; height: auto; }
.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: .18rem;
}
.ring-time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.55rem, 7.5vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -.02em;
}
.ring-label {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slow);
  font-weight: 500;
}
.ring-label.fast { color: var(--fast); }
.ring-round { font-size: .6rem; color: var(--ink-faint); letter-spacing: .12em; }

.arc-track { stroke: var(--line); }
.arc-fill { stroke: url(#ringGrad); stroke-linecap: round; }
.tick { stroke: var(--ink-faint); opacity: .45; }

.screen-stats {
  display: flex;
  gap: .5rem;
  width: 100%;
  margin-top: auto;
}
.stat {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .5rem .35rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 500;
}
.stat span {
  font-size: .5rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.screen-btn {
  margin-top: .7rem;
  width: 100%;
  border-radius: 999px;
  background: var(--vermillion);
  color: var(--panel);
  text-align: center;
  padding: .6rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
}

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

section { padding-block: clamp(3rem, 7vw, 5rem); }

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

.sec-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head .kicker { margin-bottom: .8rem; }
.sec-head p { margin-top: 1rem; color: var(--ink-soft); }

/* interval strip */

.strip {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 1.25rem;
}
.seg {
  height: 62px;
  border-radius: 8px;
  display: grid;
  place-content: end center;
  padding-bottom: .35rem;
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--ink-soft);
}
.seg.slow { background: var(--slow-wash); border-bottom: 3px solid var(--slow); }
.seg.fast { background: var(--fast-wash); border-bottom: 3px solid var(--fast); height: 92px; }
.strip { align-items: end; }
.strip-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.strip-legend span { display: inline-flex; align-items: center; gap: .5rem; }
@media (max-width: 34rem) {
  .seg { font-size: 0; height: 46px; }
  .seg.fast { height: 68px; }
}

/* cards */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.card {
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .95rem; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--vermillion) 14%, transparent);
  color: var(--vermillion);
  margin-bottom: 1rem;
}
.card-icon svg { width: 21px; height: 21px; }

/* numbered benefit list */

.benefits { display: grid; gap: 0; }
.benefit {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  align-items: start;
}
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit-n {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--vermillion);
  letter-spacing: .1em;
  padding-top: .3rem;
}
.benefit h3 { margin-bottom: .35rem; }
.benefit p { color: var(--ink-soft); font-size: .96rem; max-width: 46rem; }

/* pro panel */

.pro {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
}
@media (min-width: 52rem) {
  .pro { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
}
.pro-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.pro h2 { margin-block: .8rem .9rem; }
.pro ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.pro li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: .6rem;
  align-items: start;
  font-size: .96rem;
  color: var(--ink-soft);
}
.pro li b { color: var(--ink); font-weight: 500; }
.check { color: var(--slow); padding-top: .2rem; }

.swatches { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.swatch {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.sw-japan  { background: linear-gradient(140deg, #2A4A6B, #C4452D); }
.sw-ocean  { background: linear-gradient(140deg, #023047, #90E0EF); }
.sw-sunset { background: linear-gradient(140deg, #7C2D12, #FBBF24); }
.sw-forest { background: linear-gradient(140deg, #14532D, #86EFAC); }

/* privacy strip */

.privacy-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .privacy-band { grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; }
}
.privacy-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .7rem; }

/* footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3.5rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  align-items: flex-start;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer {
  margin-top: 2rem;
  font-size: .8rem;
  color: var(--ink-faint);
  max-width: 46rem;
}

/* ---------- policy page ---------- */

.policy { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.policy .wrap { max-width: 44rem; }
.policy h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.policy .meta {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--ink-faint);
  margin-top: .9rem;
}
.policy .intro { margin-top: 1.75rem; font-size: 1.08rem; color: var(--ink-soft); }
.policy section { padding-block: 0; margin-top: 2.5rem; }
.policy h2 {
  font-size: 1.22rem;
  margin-bottom: .6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: baseline;
}
.policy h2::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--vermillion);
  transform: translateY(-2px);
}
.policy section p { color: var(--ink-soft); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--ink); }

/* ---------- motion ---------- */

@keyframes draw { from { stroke-dashoffset: var(--circ); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes grow { from { transform: scaleY(.2); opacity: 0; } }

.arc-fill { animation: draw 2.2s cubic-bezier(.22,.68,.32,1) both; }
.reveal { animation: rise .8s cubic-bezier(.22,.68,.32,1) both; }
.reveal-1 { animation-delay: .06s; }
.reveal-2 { animation-delay: .14s; }
.reveal-3 { animation-delay: .22s; }
.reveal-4 { animation-delay: .3s; }
.seg { transform-origin: bottom; animation: grow .7s cubic-bezier(.22,.68,.32,1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
}
