:root {
  color-scheme: light;
  --ink: #172441;
  --muted: #4d5c75;
  --navy: #101a34;
  --blue: #3155d9;
  --line: #dbe3f0;
  --mist: #f0f4fc;
  --paper: #f9f8f5;
  --white: #fff;
  --frame: 1240px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid #4973fb;
  outline-offset: 3px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, summary { line-break: strict; word-break: auto-phrase; text-wrap: balance; }
h1, h2 { line-height: 1.24; letter-spacing: -.038em; }
h1 { font-size: clamp(2rem, 4.35vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3.15rem); font-weight: 750; }
h3 { font-size: 1.2rem; line-height: 1.4; }
.frame { width: min(var(--frame), calc(100% - clamp(2rem, 8vw, 7rem))); margin-inline: auto; }
.section { padding-block: clamp(3.8rem, 7.4vw, 6.8rem); }
.split { display: grid; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.eyebrow { margin-bottom: .85rem; font-size: .9rem; font-weight: 720; letter-spacing: .04em; color: #3254aa; }
.section-lead { max-width: 42rem; margin-top: 1.1rem; color: var(--muted); }
.narrow { display: none; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .55rem .85rem; color: var(--ink); background: white; transform: translateY(-170%); }
.skip:focus { transform: none; }

.site-header { background: var(--navy); color: #f0f2ff; border-bottom: 1px solid #293753; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.16rem; font-weight: 750; white-space: nowrap; }
a.brand { text-decoration: none; }
.brand img { border-radius: .38rem; }
.nav nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.75rem); }
.nav nav a { min-height: 44px; display: grid; align-items: center; text-decoration: none; color: #d8e1fc; font-size: .92rem; }
.nav nav a:hover { text-decoration: underline; }
.project-label { color: #cbd8fa; font-size: .83rem; text-align: right; }

.hero {
  background: radial-gradient(ellipse at 91% 88%, #253f75 0, transparent 56%), var(--navy);
  color: var(--white);
  padding-block: clamp(2.7rem, 6.5vw, 6rem) clamp(2.3rem, 6vw, 5.7rem);
}
.hero .eyebrow, .final .eyebrow { color: #b7caff; }
.hero h1 { color: #f6f7ff; }
.hero-copy .lead { word-break: keep-all; overflow-wrap: anywhere; margin-top: 1.2rem; max-width: 37rem; color: #e2e9fa; font-size: clamp(1rem, 1.45vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .72rem; margin-top: 1.7rem; }
.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .66rem;
  padding: .64rem .96rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  color: inherit;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
}
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: #2343ba; }
.hero .button-primary { color: #101a34; background: #c0d0ff; }
.hero .button-primary:hover { background: #d9e3ff; }
.button-outline { border-color: #7382a5; color: #f2f5ff; }
.button-outline:hover { background: #293c64; }
.button-light { background: white; color: var(--navy); }
.button-light:hover { background: #dce6ff; }
.hero-media img { width: 100%; border: 1px solid #536487; border-radius: 1rem; box-shadow: 0 19px 45px #0b112987; }
.hero-media figcaption, .document-picture figcaption { margin-top: .5rem; text-align: right; font-size: .82rem; }
.hero-media figcaption { color: #d5def3; }

.problem { background: var(--paper); }
.editorial-image { width: 100%; border-radius: .9rem; }
.features { padding-bottom: clamp(3.8rem, 6vw, 5.2rem); }
.feature-grid, .steps { display: grid; gap: 1px; margin-top: 1.8rem; }
.feature-grid { border-block: 1px solid var(--line); }
.feature-grid article { padding: 1.25rem 0; }
.feature-grid article + article { border-top: 1px solid var(--line); }
.feature-kind { display: inline-block; margin-bottom: .64rem; color: #3254aa; font-weight: 750; font-size: .88rem; }
.feature-grid p, .steps p { margin-top: .55rem; color: var(--muted); }

.demo-section { background: var(--mist); }
.workspace {
  margin-top: 1.65rem;
  border: 1px solid #ccd7eb;
  border-radius: .95rem;
  background: #fff;
  box-shadow: 0 18px 50px #233c7215;
}
.workspace-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.workspace-brand { display: flex; gap: .55rem; align-items: center; font-weight: 750; }
.workspace-brand img { border-radius: .33rem; }
.switch { display: flex; align-items: stretch; gap: .18rem; padding: .2rem; border: 1px solid var(--line); border-radius: .6rem; background: #f5f7fd; }
.switch button { background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: .4rem; min-height: 44px; padding: .38rem .7rem; font-size: .88rem; font-weight: 700; }
.switch button[aria-pressed="true"] { background: white; border-color: #ced9ef; color: #2445b0; box-shadow: 0 1px 3px #18294b1c; }
.workspace-content { padding: clamp(.9rem, 3vw, 1.9rem); }
.demo-note { margin-bottom: .85rem; color: var(--muted); font-size: .9rem; }
.workspace-grid { display: grid; gap: 1.25rem; align-items: start; min-width: 0; }
.workspace-grid > * { min-width: 0; }
.records { display: grid; gap: .5rem; padding: 0; margin: .75rem 0 0; list-style: none; }
.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .3rem .65rem;
  text-align: left;
  width: 100%;
  min-height: 60px;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--ink);
  background: white;
  font-size: .9rem;
}
.record[aria-pressed="true"] { background: #edf2ff; border-color: #98b0f1; }
.record-id { display: block; font-weight: 680; }
.record-meta { display: block; color: var(--muted); font-size: .8rem; }
.record-numbers { display: grid; gap: .25rem; justify-items: end; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.record-state { border-radius: .28rem; padding: .05rem .32rem; background: #ecf0fb; color: #334891; font-size: .76rem; }
.record-state[data-kind="pending"] { background: #fff2d9; color: #76550d; }
.record-state[data-kind="confirmed"] { background: #e4f3eb; color: #226141; }
.field { display: block; margin-top: .75rem; font-weight: 680; }
.field span { margin-left: .3rem; color: var(--muted); font-size: .83rem; font-weight: 480; }
#create-view .demo-note { margin-top: .35rem; }
#create-view input { width: 100%; min-height: 46px; margin-top: .22rem; padding: .48rem .7rem; border: 1px solid #aebcd6; background: #fff; border-radius: .43rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.add-draft { margin-top: 1rem; }
.error-text { margin-top: .55rem; font-size: .88rem; color: #973535; }
.demo-status:not(:empty) { margin-top: .7rem; color: #28418c; font-size: .92rem; }
.invoice-sheet { border: 1px solid var(--line); border-radius: .65rem; background: #fafcff; padding: clamp(.65rem, 2.25vw, 1.15rem); font-size: .875rem; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: .55rem; }
.sample-label { padding: .1rem .48rem; color: #233f9f; background: #e9effd; font-size: .78rem; border-radius: .25rem; font-weight: 700; }
.recipient { margin-top: .7rem; font-weight: 700; }
.sheet-meta, .tax-summary { margin: .35rem 0 .55rem; }
.sheet-meta > div, .tax-summary > div { display: flex; flex-wrap: wrap; gap: 0 .55rem; justify-content: space-between; }
.sheet-meta dt, .tax-summary dt { color: var(--muted); }
.sheet-meta dd, .tax-summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.invoice-table { width: 100%; border-collapse: collapse; margin: .7rem 0; font-size: .84rem; }
.invoice-table :is(th,td) { padding: .28rem .25rem; border-bottom: 1px solid var(--line); text-align: left; }
.invoice-table tr > :last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem; padding: .45rem .55rem; color: var(--navy); background: #eaf0ff; border-radius: .32rem; }
.sheet-total strong { font-size: 1.18rem; font-variant-numeric: tabular-nums; }
.sheet-note { margin-top: .4rem; color: var(--muted); font-size: .8rem; }

.invoice-example { background: var(--paper); }
.document-picture { width: min(100%, 450px); margin-inline: auto; }
.document-picture img { border-radius: .7rem; box-shadow: 0 8px 26px #24375328; }
.document-picture figcaption { color: var(--muted); }
.document-picture figcaption a { display: inline-grid; align-items: center; min-height: 44px; color: #2c489d; text-underline-offset: .17em; }
.format-details { display: grid; gap: .6rem; margin-top: 1.25rem; }
.format-details p { padding: .62rem 0; border-bottom: 1px solid var(--line); }
.format-details strong, .format-details span { display: block; }
.format-details span { color: var(--muted); }
.legal-note { margin-top: 1.1rem; color: var(--muted); font-size: .9rem; }
.legal-note a { color: #2c489d; text-underline-offset: .17em; }

.steps { margin-bottom: 0; padding-left: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding: 1rem 0 1.1rem; }
.steps li::before { content: "0" counter(step); display: block; color: var(--blue); font-size: 1.25rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.steps strong { font-size: 1.1rem; }
.questions { background: var(--mist); }
.reading { max-width: 760px; }
.reading h2 { margin-bottom: 1.3rem; }
details { border: 1px solid var(--line); border-radius: .55rem; background: white; }
details + details { margin-top: .55rem; }
summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 55px; padding: .76rem 1rem; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: .55rem; height: .55rem; flex: none; border: solid #3155d9; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
details[open] summary::after { transform: translateY(2px) rotate(225deg); }
details p { padding: 0 1rem .9rem; color: var(--muted); }
details:not([open]) p { display: none; }
.final { color: white; background: radial-gradient(ellipse at 85% 95%, #2a4784 0, transparent 60%), var(--navy); }
.final-layout { display: grid; justify-items: start; align-items: center; gap: 1.5rem; }
.final .section-lead { color: #e0e7f8; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; padding-block: 1.25rem 4.65rem; }
.footer > :last-child { align-self: center; color: var(--muted); font-size: .85rem; }
.floating { position: fixed; right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 3; border-radius: .65rem; box-shadow: 0 7px 23px #142b6d38; }
.no-script { padding: 1rem; background: var(--mist); }

dialog { width: min(660px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--line); border-radius: .9rem; color: var(--ink); background: white; }
dialog::backdrop { background: #07142fcc; }
html:has(dialog[open]) { overflow: hidden; }
.guide-shell { padding: clamp(1rem, 4vw, 1.8rem); }
.guide-header { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.guide-header h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
.close-guide { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: .45rem; background: white; color: var(--ink); font-size: 1.55rem; line-height: 1; }
#guide-note { margin-top: .8rem; color: var(--muted); }
.guide-image { margin-top: .8rem; }
.guide-image img { width: 100%; border-radius: .52rem; }
.guide-image figcaption { margin-top: .26rem; font-size: .81rem; color: var(--muted); }
.guide-points { margin: .8rem 0 1rem; }
.guide-points > div { margin-top: .4rem; }
.guide-points dt { font-weight: 700; }
.guide-points dd { margin: 0; color: var(--muted); }

@media (min-width: 680px) {
  .feature-grid, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.1rem); }
  .feature-grid article { padding: 1.35rem 0; }
  .feature-grid article + article { border-top: 0; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .98fr); gap: clamp(1rem, 3vw, 2rem); }
  .final-layout { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 900px) {
  .hero-layout { grid-template-columns: .93fr 1.07fr; gap: clamp(1.55rem, 4vw, 3.5rem); }
  .editorial { grid-template-columns: 1.04fr .96fr; }
  .invoice-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 679px) {
  .nav nav { display: none; }
  .nav { min-height: 60px; gap: .45rem; }
  .brand { font-size: 1.06rem; gap: .35rem; }
  .project-label { font-size: .74rem; }
  .narrow { display: initial; }
  .button { padding-inline: .74rem; }
  .hero .actions { margin-top: 1.25rem; }
  .problem .editorial > div { grid-row: 1; }
  .invoice-layout > div { grid-row: 1; }
  .workspace-bar { padding: .75rem; }
  .floating { max-width: calc(100% - 1.5rem); }
}

/* Compact introduction and an action-oriented workflow table. */
.site-header {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.nav nav a, .project-label { color: var(--muted); }
.process-intro {
  background: #f4f7fd;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem,6vw,5rem) clamp(2.25rem,5vw,4rem);
}
.process-mast {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: clamp(1.5rem,6vw,5.2rem);
  margin-bottom: clamp(1.75rem,4vw,3.3rem);
}
.process-intro h1 {
  font-size: clamp(2.35rem,4.9vw,4.4rem);
  letter-spacing: -.075em;
  line-height: 1.04;
}
.process-about p { color: var(--muted); max-width: 35em; }
.process-about .actions { margin-top: .85rem; }
.process-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 3px;
  color: #2446a8;
  text-underline-offset: .24em;
  font-weight: 700;
}
.process-sheet {
  border: 1px solid #ced9ec;
  border-radius: .85rem;
  background: #fff;
  overflow: hidden;
}
.process-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}
.process-table caption {
  text-align: left;
  font-weight: 750;
  padding: 1.05rem clamp(.8rem,2.4vw,1.6rem);
  font-size: clamp(1.13rem,2.2vw,1.5rem);
}
.process-table thead { background: #e9f0fd; color: #2e437b; }
.process-table th,.process-table td {
  text-align: left;
  padding: .55rem clamp(.8rem,2.4vw,1.6rem);
  border-top: 1px solid var(--line);
}
.process-table tbody th { white-space: nowrap; color: #234394; }
.process-table tbody a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: .22em;
  font-weight: 700;
  color: #2047ac;
}
.process-table tbody a span { margin-left: .25rem; }
.process-note {
  font-size: .83rem;
  color: var(--muted);
  padding: .65rem clamp(.8rem,2.4vw,1.6rem);
  border-top: 1px solid var(--line);
}
@media(max-width:750px) {
  .process-mast { grid-template-columns: 1fr; gap: 1.15rem; }
  .process-intro h1 { font-size: clamp(1.9rem,7vw,3.4rem); }
  .process-table { font-size: .88rem; table-layout: fixed; }
  .process-table thead th:first-child { width: 16%; }
  .process-table thead th:last-child { width: 34%; }
  .process-table tr > :first-child { padding-inline: .45rem; }
  .process-table tbody a { white-space: nowrap; }
  .process-table th,.process-table td { padding: .43rem .7rem; }
  .process-table tbody a span { display: none; }
}

/* From explanation to an immediately usable sample workspace */
.service-desk { display: grid; grid-template-columns: minmax(250px, 322px) minmax(0, 1fr); min-height: min(920px, 92svh); background: #e8edfa; }
.desk-summary { padding: clamp(1.5rem, 3vw, 3.4rem); background: #111b3e; color: #fbfcff; display: flex; flex-direction: column; align-items: flex-start; }
.desk-title { display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 800; }
.desk-title img { background: white; border-radius: 7px; padding: 3px; }
.desk-audience { color: #bdcef8; margin: clamp(2rem, 3.6vw, 4rem) 0 .6rem; font-size: .83rem; font-weight: 700; }
.desk-summary h1 { font-size: clamp(1.7rem, 2.6vw, 2.45rem); line-height: 1.16; letter-spacing: -.045em; margin: 0; }
.desk-note { margin: 1.15rem 0 1.25rem; color: #e0e8fd; font-size: .92rem; line-height: 1.75; }
.desk-links { display: grid; justify-items: start; gap: .7rem; }
.desk-links .button { background: #e7edff; color: #152a70; }
.desk-links a { color: #d7e3ff; text-underline-offset: .2rem; font-weight: 700; padding-block: .5rem; }
.desk-provenance { font-size: .77rem; color: #d0dbf7; margin: auto 0 0; padding-top: 1.3rem; }
.desk-live { min-width: 0; padding: clamp(1rem, 4vw, 4.4rem); align-self: center; scroll-margin-top: 1rem; }
.desk-live .workspace { margin: 0 auto; max-width: 1100px; box-shadow: 0 22px 65px #1b378522; }
.desk-live .workspace-bar { background: #f6f8ff; }
.manual .process-sheet { margin-inline: auto; }
@media (max-width: 800px) {
 .service-desk { display: block; }
 .desk-summary { padding: 22px max(1rem, 5vw) 18px; }
 .desk-audience { margin-top: 16px; }
 .desk-summary h1 { font-size: clamp(1.52rem, 7vw, 2.2rem); line-height: 1.18; }
 .desk-summary h1 br { display: none; }
 .desk-note { max-width: 36rem; margin: .65rem 0 .85rem; }
 .desk-links { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .9rem; font-size: .84rem; }
 .desk-links .button { min-height: 38px; padding: .54rem .7rem; }
 .desk-provenance { padding-top: .5rem; }
 .desk-live { padding: 16px max(.65rem, 2.6vw) 28px; }
 .manual .process-sheet { margin-inline: auto; }
}
.handover { color: #f4f7ff; background: #182d63; }
.handover .frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(20px, 6vw, 90px); }
.handover-copy p { color: #e1e9ff; }
.handover ol { margin: 0; padding: 0 0 0 1.65rem; }
.handover ol li { padding-block: .8rem; border-block-start: 1px solid #8ea4d0; }
.handover ol li:last-child { border-bottom: 1px solid #8ea4d0; }
.handover ol strong, .handover ol span { display: block; }
.service-fit dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 1.7rem; }
.service-fit dl div { border-top: 3px solid #3159b0; padding-top: .85rem; }
.service-fit dt { font-weight: 800; }
.service-fit dd { margin: .55em 0 0; }
@media (max-width: 660px) {
 .handover .frame, .service-fit dl { grid-template-columns: minmax(0, 1fr); }
}
