/* Hansei website (21 November 2026). Paper and ink, from the app's icon and titles. */
:root {
  --paper: #F0E7D8;        /* the app icon's background */
  --paper-deep: #E7DBC6;   /* a second sheet, for alternating bands */
  --ink: #213A63;          /* the app's page titles */
  --ink-text: #1C2536;     /* body text: blue-black ink */
  --graphite: #5B564E;     /* secondary text */
  --rule: #CBBDA5;         /* hairlines on paper */
  --on-ink: #F0E7D8;       /* paper-coloured text on ink */
  --measure: 38rem;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131210; --paper-deep: #1C1A17; --ink: #A9BDDC; --ink-text: #E6DFD2;
    --graphite: #A59D90; --rule: #3A362F; --on-ink: #131210;
  }
}
:root[data-theme="dark"] {
  --paper: #131210; --paper-deep: #1C1A17; --ink: #A9BDDC; --ink-text: #E6DFD2;
  --graphite: #A59D90; --rule: #3A362F; --on-ink: #131210;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-text);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem .75rem; z-index: 10; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.01em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.55; }
.small { font-size: .9rem; color: var(--graphite); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--ink); }
.wordmark .kanji { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; }
.wordmark .name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
/* Header wordmark: app icon, HANSEI, 反省 */
.site-header .wordmark, .site-footer .wordmark { align-items: center; gap: .6rem; color: var(--ink); }
.site-footer .wordmark:hover { text-decoration: none; color: var(--ink); }
.site-header .wordmark .app-icon, .site-footer .wordmark .app-icon { width: 32px; height: 32px; border-radius: 24%; flex: none; box-shadow: 0 0 0 1px var(--rule), 0 1px 3px rgba(0,0,0,.08); }
.site-header .wordmark .name, .site-footer .wordmark .name {
  font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: .16em; line-height: 1;
}
.site-header .wordmark .kanji, .site-footer .wordmark .kanji { font-size: 1.1rem; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.site-nav a:not(.button) { text-decoration: none; color: var(--ink-text); }
.site-nav a:not(.button):hover { text-decoration: underline; }
@media (max-width: 560px) { .site-nav .text-link { display: none; } }

/* Buttons */
.button {
  display: inline-block; background: var(--ink); color: var(--on-ink); text-decoration: none;
  font-weight: 600; padding: .8rem 1.3rem; border-radius: 999px; line-height: 1.2;
}
.button:hover { filter: brightness(1.12); }
.button.small-button { padding: .55rem 1rem; font-size: .9rem; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
.hero.with-panel .wrap { grid-template-columns: auto minmax(0, 1.1fr) minmax(0, .9fr); }
.column-kanji {
  writing-mode: vertical-rl; font-family: var(--serif); font-weight: 800; color: var(--ink);
  font-size: clamp(4rem, 9vw, 7.5rem); line-height: 1; letter-spacing: .08em; margin: 0;
  user-select: none;
}
.column-kanji small {
  display: block; font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .04em;
  color: var(--graphite); margin-top: .9rem; margin-inline-start: .35rem;
}
.hero-copy h1 { margin-bottom: 1.25rem; max-width: 14ch; }
.hero-copy .lede { margin-bottom: 1.75rem; }
.hero-copy .small { margin-top: .9rem; }
.landing .hero-copy h1 { max-width: 16ch; }
@media (max-width: 820px) {
  .hero .wrap, .hero.with-panel .wrap { grid-template-columns: 1fr; }
  .column-kanji { writing-mode: horizontal-tb; font-size: 2.75rem; letter-spacing: .02em; }
  .column-kanji small { display: inline; margin: 0 0 0 .75rem; }
}

/* The morning debrief panel: the one moving thing on the site */
.debrief {
  background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem; align-self: center;
}
.debrief h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.debrief ol { list-style: none; margin: 0; padding: 0; }
.debrief li { padding: .9rem 0; border-top: 1px solid var(--rule); }
.debrief li:first-child { border-top: 0; padding-top: 0; }
.debrief q { font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; color: var(--ink-text); quotes: none; display: block; }
.debrief .cite { display: block; font-size: .85rem; color: var(--graphite); margin-top: .35rem; }
@media (prefers-reduced-motion: no-preference) {
  .debrief li { opacity: 0; transform: translateY(6px); animation: arrive .7s ease-out forwards; }
  .debrief li:nth-child(1) { animation-delay: .5s; }
  .debrief li:nth-child(2) { animation-delay: 1.5s; }
  .debrief li:nth-child(3) { animation-delay: 2.5s; }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--rule); }
.section.deep { background: var(--paper-deep); }
.section h2 { margin-bottom: 1.1rem; max-width: 22ch; }
.statement { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.5; color: var(--ink-text); max-width: 36ch; }
.familiar { border-left: 3px solid var(--ink); padding-left: 1.25rem; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: 2rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: 2rem; }
@media (max-width: 820px) { .three, .two { grid-template-columns: 1fr; } }
.point h3 { margin-bottom: .5rem; }
.point p { font-size: 1rem; }
.point .more { font-weight: 600; font-size: .95rem; }

.insights { list-style: none; padding: 0; margin: 1.5rem 0; max-width: 44rem; }
.insights li { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; padding: .9rem 0; border-top: 1px solid var(--rule); color: var(--ink-text); }
.insights li:last-child { border-bottom: 1px solid var(--rule); }

.founder { max-width: 42rem; }
.founder p { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.65; }
.founder .signature { font-family: var(--sans); font-size: 1rem; color: var(--graphite); }

.plans { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 1.25rem; }
.plan { border: 1px solid var(--rule); border-radius: 14px; padding: 1.1rem 1.4rem; min-width: 12rem; background: var(--paper); }
.plan .price { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--ink); display: block; }
.plan .per { color: var(--graphite); font-size: .95rem; }

/* FAQ */
.faq { max-width: 46rem; margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; position: relative;
  font-weight: 600; font-size: 1.05rem; color: var(--ink-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.45rem; width: .55rem; height: .55rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq details p { padding-bottom: 1.1rem; }

/* Closing band */
.close { background: var(--ink); color: var(--on-ink); padding-block: clamp(3.5rem, 8vw, 6rem); }
.close h2 { color: var(--on-ink); margin-bottom: .75rem; }
.close p { color: var(--on-ink); opacity: .9; }
.close .button { background: var(--on-ink); color: var(--ink); margin-top: .75rem; }

.related ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.related a { font-weight: 600; }

/* Footer */
.site-footer { padding-block: 3rem 2.5rem; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink-text); margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: var(--graphite); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { margin-top: 2.5rem; color: var(--graphite); }

/* Legal text (Terms of Use) */
.legal-text { max-width: 46rem; }
.legal-section { margin-bottom: 2.25rem; }
.legal-section h2 { font-size: 1.35rem; margin-bottom: .6rem; max-width: none; }
.legal-section ul { max-width: var(--measure); padding-left: 1.2rem; margin: 0 0 1em; }
.legal-section li { margin: .4rem 0; }

/* Comparison tables (26 November 2026) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root { --yes: #2E7D4F; --no: #B3261E; --us-tint: rgba(33, 58, 99, .06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --yes: #6FCF97; --no: #F28B82; --us-tint: rgba(169, 189, 220, .08); } }
:root[data-theme="dark"] { --yes: #6FCF97; --no: #F28B82; --us-tint: rgba(169, 189, 220, .08); }
.compare-scroll { overflow-x: auto; margin-top: 1.75rem; -webkit-overflow-scrolling: touch; }
.compare { border-collapse: collapse; width: 100%; max-width: 52rem; font-size: 1rem; }
.compare th, .compare td { padding: .8rem .6rem; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.compare thead th { font-weight: 600; font-size: .9rem; color: var(--ink-text); vertical-align: bottom; line-height: 1.25; }
.compare thead th.us { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.compare tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink-text); padding-left: 0; width: 38%; }
.compare .us { background: var(--us-tint); }
.compare tr.group th { text-align: left; padding: 1.4rem 0 .5rem; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--rule); }
.mark { display: inline-flex; width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; vertical-align: middle; }
.mark svg { width: 1.35rem; height: 1.35rem; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mark.yes { color: var(--yes); }
.mark.no { color: var(--no); }
.mark.varies { width: auto; font-size: .82rem; color: var(--graphite); font-style: italic; }
.fn { font-size: .7rem; font-weight: 600; vertical-align: super; margin-left: .15rem; text-decoration: none; color: var(--graphite); }
.fn:hover { color: var(--ink); text-decoration: underline; }
.compare td { white-space: nowrap; }
.compare .price { font-weight: 600; font-size: .95rem; color: var(--ink-text); font-variant-numeric: tabular-nums; }
.compare-foot { margin-top: 1rem; }
.notes { list-style: none; padding: 0; margin: 1.25rem 0 0; max-width: 46rem; }
.notes li { display: grid; grid-template-columns: 1.75rem 1fr; padding: .9rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.notes li:last-child { border-bottom: 1px solid var(--rule); }
.notes li:target { background: var(--paper); }
.notes .n { font-weight: 600; color: var(--ink); }
.notes p { margin: 0; }
@media (max-width: 560px) {
  .compare { font-size: .9rem; }
  .compare th, .compare td { padding: .65rem .3rem; }
  .compare thead th { font-size: .78rem; }
  .compare thead th.us { font-size: .9rem; }
  .compare tbody th[scope="row"] { width: 34%; }
}
