:root {
  color-scheme: light;
  --bg: #f7f5f5;
  --surface: #ffffff;
  --ink: #191617;
  --muted: #5c5356;
  --line: #d9c9ce;
  --soft: #f4e6e9;
  --accent: #a91c29;
  --accent-hover: #86141f;
  --accent-text: #a91c29;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151113;
  --surface: #241c20;
  --ink: #fff6f7;
  --muted: #d0bfc4;
  --line: #634b54;
  --soft: #3a222c;
  --accent: #a91c29;
  --accent-hover: #86141f;
  --accent-text: #ff9ca8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 'Space Grotesk', Arial, sans-serif; }
body, button, a { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.055em; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
::selection { background: #a91c29; color: white; }
.container { width: min(100%, 1280px); padding-inline: 30px; margin-inline: auto; }
.skip-link { position: absolute; z-index: 30; top: -70px; left: 12px; padding: 10px 16px; background: #191617; color: white; }
.skip-link:focus { top: 12px; }

/* Navigation and shared actions */
.site-header { position: sticky; z-index: 20; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; white-space: nowrap; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.09em; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; margin-right: 11px; background: #a91c29; color: white; font: 500 23px/1 sans-serif; letter-spacing: 0; }
.brand-period { color: var(--accent-text); }
.main-nav { display: flex; gap: 24px; align-items: center; margin: auto; }
.main-nav a, .login-link { white-space: nowrap; font-size: 15px; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current="location"], .login-link:hover { color: var(--accent-text); }
.main-nav a[aria-current="location"] { text-decoration: underline; text-underline-offset: 7px; }
.header-actions { display: flex; gap: 19px; align-items: center; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.theme-toggle:hover { background: var(--soft); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 45px; padding: 10px 18px; border: 1px solid transparent; font-size: 15px; font-weight: 700; line-height: 1.3; }
.button span { font-size: 18px; font-weight: 400; line-height: 1; }
.button:hover { transform: translateY(-2px); }
.button-primary, .button-accent { background: #a91c29; color: white; }
.button-primary:hover, .button-accent:hover { background: #86141f; }
.button-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--ink); color: var(--bg); }
.button-light { background: #fff; color: #191617; }
.button-light:hover { background: #f4e6e9; }
.button-large { min-height: 54px; padding-inline: 24px; font-size: 17px; }
.menu-toggle, .mobile-nav-action { display: none; }
.menu-toggle { flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; }
.menu-toggle span { width: 17px; height: 2px; margin-inline: auto; background: var(--ink); }

/* Photo-led hero: red is the first canvas, not just an accent. */
.hero { overflow: hidden; background: #a91c29; color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(30px, 5vw, 80px); align-items: center; padding-block: 54px 48px; }
.hero-copy { padding-block: 30px; }
.eyebrow, .kicker, .plan-tag, .hero-bottom, .credit-note { font: 500 14px/1.4 'DM Mono', monospace; letter-spacing: .03em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; margin-bottom: 31px; border: 1px solid #f5bdc2; color: #fff; }
.eyebrow-dot { width: 7px; height: 7px; background: #fff; }
h1 { max-width: 750px; margin-bottom: 24px; font-size: clamp(58px, 6.2vw, 100px); letter-spacing: -.075em; }
.hero-description { max-width: 510px; margin-bottom: 34px; color: #fff0f0; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 22px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: 16px; font-weight: 700; }
.text-link:hover { color: #ffe4e6; }
.trust { display: inline-flex; align-items: center; gap: 11px; margin-top: 25px; padding: 13px 17px; border: 1px solid #fff; background: #fff; color: #191617; font-size: 17px; font-weight: 700; line-height: 1.4; }
.trust span { display: inline-grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #a91c29; color: #fff; font-weight: 700; }
.hero .button-primary { background: #fff; color: #191617; }
.hero .button-primary:hover { background: #f4e6e9; }
.hero :focus-visible, .credits-section :focus-visible, .final-section :focus-visible, .steps-section :focus-visible, .plan-featured :focus-visible, .footer :focus-visible { outline-color: #fff; }
.hero-visual { position: relative; min-width: 0; height: clamp(475px, 44vw, 615px); background: #302827; }
.hero-visual img, .story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-visual img { object-position: center; }
.hero-visual figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 18px; padding: 19px 22px; background: #191617; color: #fff; font-size: 15px; font-weight: 600; }
.hero-visual figcaption span:last-child { margin-left: auto; font-size: 20px; }
.visual-stamp { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 78px; height: 78px; background: #a91c29; color: #fffdfa; font: 48px/1 sans-serif; transform: rotate(8deg); }
.hero-bottom { display: flex; justify-content: space-between; padding-block: 18px; border-top: 1px solid #e5a2aa; color: #fff0f0; }

/* Sections and story */
.section { padding-block: 105px; scroll-margin-top: 75px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .6fr); align-items: end; gap: 35px; margin-bottom: 40px; }
.section-heading h2, .credits-layout h2, .faq-layout h2 { max-width: 780px; font-size: clamp(39px, 4.6vw, 66px); }
.section-heading > p { max-width: 360px; margin-bottom: 5px; font-size: 16px; line-height: 1.65; }
.kicker { margin-bottom: 21px; color: var(--accent-text); }
.intro-section { background: var(--surface); }
.iki-story { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; margin-bottom: 18px; background: #191617; color: #fffdfa; }
.story-photo { min-height: 300px; overflow: hidden; }
.story-photo img { object-position: center; }
.story-copy { display: flex; align-items: center; gap: 28px; padding: clamp(26px, 4vw, 55px); }
.story-kanji { align-self: flex-start; color: #ff9299; font: 100px/1 sans-serif; }
.story-copy .kicker { color: #ff9299; }
.story-copy h3 { margin-bottom: 14px; font-size: clamp(30px, 3vw, 43px); }
.story-copy p:last-child { max-width: 390px; color: #ded4ce; font-size: 17px; line-height: 1.7; }
.benefit-grid, .model-grid, .plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.benefit-card { display: flex; flex-direction: column; min-height: 250px; padding: 23px; border: 1px solid var(--line); border-top: 4px solid #a91c29; background: var(--soft); }
.benefit-symbol { margin: auto 0 16px; color: var(--accent-text); font-size: 47px; line-height: 1; }
.benefit-card h3 { margin-bottom: 10px; font-size: 24px; }
.benefit-card p { font-size: 16px; line-height: 1.6; }

/* Illustrative applications, across individual and organizational audiences. */
.examples-section { background: var(--soft); }
.examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.example-card { min-height: 190px; padding: 25px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); }
.example-card h3 { margin-bottom: 15px; font-size: 25px; }
.example-card p { font-size: 16px; line-height: 1.6; }
.examples-note { max-width: 900px; margin-top: 24px; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.6; }

/* Deliberately fixed dark editorial panels stay legible in both themes. */
.steps-section { background: #191617; color: #fff; border-top: 8px solid #a91c29; }
.steps-section .section-heading > p, .steps-section .step p { color: #d2c5be; }
.steps-section .kicker, .steps-section .inline-note span { color: #ff9299; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid #6c5550; }
.step { display: flex; flex-direction: column; min-height: 180px; padding: 24px 21px 30px; border-right: 1px solid #6c5550; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step-content { margin-top: auto; }
.step h3 { margin-bottom: 10px; font-size: 22px; }
.step p { font-size: 16px; }
.inline-note { display: flex; align-items: center; gap: 15px; margin-top: 26px; }
.inline-note span { font-size: 27px; }
.inline-note p { color: #fffdfa; font-size: 16px; }
.models-section { background: var(--bg); }
.model-card { display: flex; flex-direction: column; min-height: 300px; padding: 23px; border: 1px solid var(--line); background: var(--surface); }
.model-graphic { display: flex; align-items: end; justify-content: center; gap: 10px; height: 130px; padding-block: 23px; }
.model-graphic i { display: block; width: 17%; border: 1px solid var(--accent-text); background: var(--soft); transform: skew(-18deg); }
.model-graphic i:nth-child(1) { height: 38%; }
.model-graphic i:nth-child(2) { height: 65%; }
.model-graphic i:nth-child(3) { height: 92%; }
.model-graphic-01 i:nth-child(n+2), .model-graphic-02 i:nth-child(3) { background: transparent; border-style: dashed; }
.model-graphic-03 i, .model-graphic-02 i:nth-child(-n+2), .model-graphic-01 i:first-child { background: #a91c29; border-color: #a91c29; }
.model-card h3 { margin-top: auto; font-size: 41px; }
.model-card p { margin-top: 10px; font-size: 16px; }
.model-card strong { color: var(--ink); }
.section-note { margin-top: 22px; font-size: 16px; }
.section-note span { color: var(--accent-text); }

/* Pricing and comparison */
.plans-section { background: #a91c29; color: #fff; }
.plans-section .kicker { color: #ffe0e4; }
.plans-section .section-heading > p, .plans-section .section-note { color: #fff0f0; }
.plans-section .section-note span { color: #fff; }
.plan-card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.plan-card:not(.plan-featured) { color: var(--ink); }
.plan-featured { background: #191617; color: #fffdfa; border-color: #191617; }
.plan-top { display: flex; justify-content: space-between; min-height: 83px; }
.plan-tag { display: inline-block; margin-bottom: 11px; color: var(--muted); }
.plan-featured .plan-tag { color: #ff9299; }
.plan-top h3 { font-size: 27px; }
.plan-icon { font-size: 23px; }
.plan-price { margin: 12px 0 6px; color: inherit; font-size: clamp(32px, 3vw, 45px); font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.price-caption { margin-bottom: 23px; font-size: 15px; }
.plan-featured .price-caption, .plan-featured .plan-features dt { color: #d2c5be; }
.plan-action { width: 100%; margin-bottom: 19px; }
.plan-features { margin: 0; border-top: 1px solid var(--line); }
.plan-features div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan-features dt { flex: 0 1 48%; color: var(--muted); }
.plan-features dd { max-width: 55%; margin: 0; overflow-wrap: anywhere; text-align: right; font-weight: 700; }
.plan-featured .plan-features, .plan-featured .plan-features div { border-color: #6c5550; }
.comparison-section { background: var(--surface); }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
.comparison-table { min-width: 680px; }
.data-table th, .data-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead { background: #191617; color: #fffdfa; }
.data-table thead th { font-size: 15px; }
.data-table tbody th { font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: var(--soft); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table th:first-child { width: 28%; }
.comparison-table th:nth-child(2) { width: 35%; }
.business-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 21px 24px; border-left: 4px solid #a91c29; background: var(--soft); }
.business-callout p { color: var(--ink); font-weight: 600; }
.business-callout a { display: inline-flex; align-items: center; gap: 14px; color: var(--accent-text); font-weight: 700; font-size: 16px; }
.business-callout a:hover { text-decoration: underline; }

/* Credits, support, FAQ and closing invitation */
.credits-section { background: #a91c29; color: #fffdfa; }
.credits-section .kicker { color: #ffe0dd; }
.credits-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 75px; }
.credits-layout h2 { max-width: 480px; }
.credits-intro { margin: 20px 0 25px; color: #ffe5e2; font-size: 17px; }
.credit-note { display: inline-block; padding: 9px 13px; border: 1px solid #ffd3d0; }
.pack-list { border-top: 1px solid #e79a9b; }
.pack { padding-block: 25px; border-bottom: 1px solid #e79a9b; }
.pack strong { font-size: clamp(18px, 2.1vw, 27px); letter-spacing: -.04em; }
.pack-arrow { text-align: right; font-size: 22px; }
.support-section { background: var(--bg); }
.support-table th:first-child { width: 40%; }
.faq-section { background: var(--surface); }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq-decoration { margin-top: 45px; color: var(--accent-text); font-size: 190px; font-weight: 700; line-height: 1; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 2px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 25px; font-weight: 400; transition: transform .18s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { padding: 0 35px 23px 2px; font-size: 16px; line-height: 1.65; }
.final-section { overflow: hidden; scroll-margin-top: 75px; background: #a91c29; color: #fffdfa; }
.final-inner { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 35px; min-height: 380px; padding-block: 70px; }
.final-section .kicker, .final-inner p:not(.kicker) { color: #ffe0dd; }
.final-inner h2 { max-width: 720px; margin-bottom: 12px; font-size: clamp(45px, 5.6vw, 80px); }
.final-inner .button { position: relative; z-index: 1; flex-shrink: 0; }
.final-decoration { position: absolute; top: -115px; right: 185px; color: rgba(255,255,255,.11); font: 360px/1 sans-serif; pointer-events: none; }
.footer { background: #191617; color: #fffdfa; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-block: 70px 80px; }
.footer-brand p { margin-top: 18px; color: #d2c5be; font-size: 16px; }
.footer h2 { margin-bottom: 22px; color: #ff9299; font: 500 14px/1.4 'DM Mono', monospace; letter-spacing: .03em; text-transform: uppercase; }
.footer nav { display: flex; flex-direction: column; align-items: start; gap: 12px; font-size: 16px; }
.footer nav a:hover { color: #ff9299; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-block: 20px; border-top: 1px solid #6c5550; color: #d2c5be; font-size: 14px; }
.footer-bottom span span { color: #ff9299; }

/* Legal pages intentionally show outstanding content prominently. */
.legal-main { min-height: 65vh; padding-block: clamp(55px, 8vw, 100px); }
.legal-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 95px); }
.legal-heading h1 { margin-bottom: 22px; font-size: clamp(48px, 6vw, 80px); }
.legal-heading > p:last-child { max-width: 450px; font-size: 19px; line-height: 1.6; }
.legal-content { min-width: 0; }
.legal-notice { padding: 25px; border-left: 6px solid #a91c29; background: var(--soft); }
.legal-notice strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: 22px; }
.legal-notice p, .legal-section p { font-size: 17px; line-height: 1.7; }
.legal-section { padding-block: 30px; border-bottom: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 10px; font-size: clamp(23px, 3vw, 29px); letter-spacing: -.03em; }
.legal-back { display: inline-block; margin-top: 30px; color: var(--accent-text); font-size: 17px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.legal-back:hover, .footer nav a[aria-current="page"] { color: #ff9299; }
.legal-back:hover { color: var(--ink); }
.footer nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 1100px) {
  .header-inner { gap: 15px; }
  .main-nav { gap: 12px; }
  .header-actions { gap: 11px; }
  .header-cta { padding-inline: 12px; }
  .story-copy { gap: 16px; }
  .story-kanji { font-size: 75px; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 67px; }
  .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 15px 28px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .main-nav.open { display: flex; }
  .main-nav a, .main-nav .mobile-nav-action { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .menu-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 15px; padding-top: 47px; }
  .hero-copy { padding: 0; }
  .hero-visual { height: 430px; }
  .hero-visual img { object-position: center 40%; }
  .section { padding-block: 85px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid #6c5550; }
  .step:nth-child(3) { padding-left: 0; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credits-layout, .faq-layout { gap: 35px; }
  .legal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .container { padding-inline: 19px; }
  .brand { font-size: 30px; }
  .brand-mark { width: 32px; height: 32px; font-size: 20px; }
  .header-inner { gap: 10px; }
  .login-link { display: none; }
  .header-cta { min-height: 40px; gap: 6px; font-size: 14px; }
  .hero-grid { padding-block: 36px 30px; }
  .eyebrow { margin-bottom: 22px; }
  h1 { font-size: clamp(49px, 11.5vw, 74px); }
  .hero-description { font-size: 16px; }
  .hero-actions { gap: 22px; }
  .hero-visual { height: 360px; }
  .visual-stamp { width: 60px; height: 60px; font-size: 36px; }
  .hero-bottom { font-size: 14px; }
  .section { padding-block: 68px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 29px; }
  .section-heading h2, .credits-layout h2, .faq-layout h2 { font-size: clamp(38px, 9vw, 52px); }
  .section-heading > p { font-size: 16px; }
  .iki-story { grid-template-columns: 1fr; }
  .story-photo { height: 220px; min-height: 0; }
  .story-copy { padding: 23px; }
  .story-kanji { font-size: 68px; }
  .benefit-grid, .model-grid, .plans-grid, .examples-grid { grid-template-columns: 1fr; gap: 11px; }
  .benefit-card { min-height: 200px; padding: 19px; }
  .benefit-symbol { margin: 22px 0 16px; font-size: 42px; }
  .model-card { min-height: 260px; }
  .model-graphic { height: 100px; }
  .plan-card { padding: 21px; }
  .plan-top { min-height: 62px; }
  .plan-price { font-size: 39px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:nth-child(3) { min-height: 135px; padding: 20px 0; border-right: 0; border-bottom: 1px solid #6c5550; }
  .step:last-child { border-bottom: 0; }
  .step-content { margin-top: 17px; }
  .credits-layout, .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .pack { padding-block: 21px; }
  .pack strong { font-size: 19px; }
  .faq-decoration { display: none; }
  .faq-list summary { font-size: 16px; }
  .business-callout { align-items: start; flex-direction: column; }
  .support-table { min-width: 430px; }
  .data-table th, .data-table td { padding: 13px 14px; }
  .final-inner { align-items: start; flex-direction: column; justify-content: center; gap: 24px; min-height: 365px; }
  .final-decoration { top: -80px; right: -110px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .legal-main { padding-block: 55px; }
  .legal-heading > p:last-child { font-size: 17px; }
}
@media (max-width: 390px) {
  .header-cta { display: none; }
  .hero-bottom span:last-child { display: none; }
  .hero-visual figcaption { padding: 15px; font-size: 14px; }
  .story-copy { gap: 12px; }
  .story-kanji { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
