:root {
  --ink: #152635; --navy: #101b25; --deep: #0c171f; --paper: #edf3f7;
  --panel: #f7fafc; --blue-soft: #e5eef4; --blue-band: #dce9f1;
  --line: #c8d7e0; --muted: #455c68; --gold: #f4cf7c; --bright: #f8faf6;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-synthesis: none; color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #bd7a11; outline-offset: 4px; }
img { display: block; max-width: 100%; }
p, ol { line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.04em; word-break: keep-all; overflow-wrap: anywhere; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: 1rem; left: 1rem; transform: translateY(-200%); background: white; padding: .7rem; }
.skip:focus { transform: none; }
.top { background: var(--deep); color: var(--bright); border-bottom: 1px solid #31404a; }
.header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; font-size: 1.13rem; font-weight: 800; letter-spacing: .075em; }
.brand img { width: 35px; height: 35px; object-fit: contain; }
.header nav, .footer nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 40px); }
.header nav { justify-content: center; flex-wrap: wrap; gap: 0 clamp(.6rem, 1.6vw, 1.45rem); }
.header nav a, .footer nav a { color: #d6dfde; font-size: .88rem; text-decoration: none; }
.header nav a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.header > .btn { white-space: nowrap; }
.header nav a:hover, .footer nav a:hover { color: var(--gold); text-decoration: underline; }
.btn { min-height: 46px; border: 1px solid currentColor; border-radius: 6px; appearance: none; font: inherit;
  color: inherit; background: transparent; padding: .68rem 1.02rem; display: inline-flex; align-items: center;
  justify-content: center; gap: .65rem; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); box-shadow: 0 4px 14px #10202b12; }
.btn.small { min-height: 38px; border-color: #65717a; font-size: .83rem; }
.btn.gold { background: var(--gold); color: #242019; border-color: #e7bf61; }
.btn.ghost { border-color: #6e7d87; color: #f3f6f4; }
.hero { background: radial-gradient(ellipse at 78% 0%, #2b3f46 0%, transparent 52%), linear-gradient(112deg, var(--deep), #142934);
  color: var(--bright); border-bottom: 1px solid #253946; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center; gap: clamp(28px, 4.4vw, 64px); padding: 58px 0 61px; }
.eyeline { display: flex; align-items: center; gap: .68rem; font-size: .8rem; font-weight: 800; letter-spacing: .1em; }
.eyeline span { width: 23px; height: 2px; background: #d6a856; }
.hero .eyeline { color: var(--gold); }
.hero h1 { font-size: clamp(2.15rem, 3.35vw, 3.15rem); font-weight: 800; line-height: 1.2; margin: 0 0 1.1rem; }
.hero em { color: var(--gold); font-style: normal; }
.hero-description { color: #d1dbda; max-width: 30rem; line-height: 1.78; font-size: 1.01rem; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 29px; }
.product-preview { position: relative; min-width: 0; margin: 0; padding: 13px 11% 42px 0; }
.desktop-demo { min-width: 0; overflow: hidden; border: 1px solid #5a7280; border-radius: 15px;
  background: #102430; box-shadow: 0 20px 58px #051017a6; }
.demo-title { min-height: 45px; display: flex; align-items: center; gap: 8px; padding: 8px clamp(50px, 8.2vw, 112px) 8px 14px;
  color: #e5eeeb; background: #142934; border-bottom: 1px solid #365059; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.demo-title img { width: 18px; height: 18px; object-fit: contain; }
.demo-title span { margin-left: auto; color: #bed0d3; font-size: .67rem; letter-spacing: 0; white-space: nowrap; }
.demo-body { display: grid; grid-template-columns: minmax(64px, 22%) minmax(0, 1fr); min-height: 275px; }
.demo-sidebar { padding: 16px 9px; border-right: 1px solid #365059; display: grid; align-content: start; gap: 4px; font-size: .68rem; }
.demo-sidebar span { color: #bbcbd0; padding: 8px; white-space: nowrap; }
.demo-sidebar span:first-child { background: #31413f; color: #f8d88f; border-radius: 5px; }
.demo-main { padding: 19px clamp(35px, 5.5vw, 78px) 19px 17px; }
.demo-label { color: #b8cbd4; font-size: .68rem; }
.demo-main h2 { color: var(--bright); font-size: clamp(1rem, 1.55vw, 1.4rem); margin-top: 5px; }
.demo-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 15px 0; }
.demo-metrics > div { border: 1px solid #3e555e; background: #192f3b; border-radius: 6px; padding: 9px; min-width: 0; }
.demo-metrics dt { color: #aebfc6; font-size: .66rem; }
.demo-metrics dd { color: #f4d387; font-size: .76rem; margin: 4px 0 0; font-weight: 700; }
.demo-list { border-top: 1px solid #3e555e; }
.demo-list p { color: #dce6e5; font-size: .68rem; padding: 7px 0; border-bottom: 1px solid #354a55; }
.demo-list span { color: #d9ba7e; display: inline-block; margin-left: .2em; }
.mobile-demo { position: absolute; width: min(28%, 158px); right: 0; bottom: 38px; padding: 5px; border: 1px solid #6d8089;
  border-radius: 16px; overflow: hidden; background: #0a1923; box-shadow: 0 14px 42px #051017bf; }
.mobile-demo img { width: 100%; height: auto; border-radius: 11px; }
.product-preview figcaption { position: absolute; inset: auto 0 9px; color: #c2d2d4; font-size: .73rem; text-align: right; }
.landing-section { padding-block: 63px; }
.section-title { display: flex; justify-content: space-between; gap: 15px 28px; align-items: end; margin-bottom: 25px; }
.section-title h2 { font-size: clamp(1.75rem, 3.3vw, 2.65rem); line-height: 1.23; }
.section-title > p { color: var(--muted); max-width: 24rem; font-size: .92rem; }
.service-grid, .workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-grid article, .plan-grid article, .surface, .form { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.service-grid article, .plan-grid article, .download-grid article { padding: 22px; min-width: 0; }
.service-grid h3, .workflow-grid h3, .plan-grid h3, .download-grid h3 { font-size: 1.2rem; margin-bottom: 7px; }
.service-grid p, .workflow-grid p, .plan-grid p, .download-grid p { color: var(--muted); font-size: .91rem; }
.service-mark { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 13px;
  border: 1px solid #e8dbb8; border-radius: 7px; background: #f3ead0; color: #564119; font-size: 1.16rem; }
.landing-link { display: inline-block; margin-top: 19px; font-size: .9rem; font-weight: 800; }
.portal-band { background: var(--blue-soft); border-bottom: 1px solid var(--line); }
.portal-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 14px; }
.portal-feature-grid article { min-width: 0; background: var(--panel); border: 1px solid var(--line);
  border-top: 2px solid #d7c18c; border-radius: 8px; }
.portal-feature-grid h3 { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem;
  color: #554014; font-size: 1.18rem; }
.portal-feature-grid h3 span { color: #735a25; }
.portal-feature-grid p { color: var(--muted); font-size: .91rem; }
.portal-feature-grid a { display: grid; align-content: start; gap: 9px; min-height: 100px; height: 100%;
  border-radius: 7px; padding: 16px 19px; text-decoration: none; }
.portal-feature-grid a:hover, .portal-feature-grid a:focus-visible { background: #faf2db; }
.workflow-band { border-block: 1px solid var(--line); background: var(--blue-soft); }
.workflow-grid { padding: 0; margin: 0; list-style: none; counter-reset: flow; }
.workflow-grid li { padding: 12px 15px 0; border-top: 2px solid #d7c18c; }
.workflow-grid li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero);
  display: block; margin-bottom: 5px; color: #735a25; font-size: .74rem; font-weight: 800; letter-spacing: .07em; }
.plan-grid, .download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-grid span { display: inline-block; margin-top: 13px; color: #76551d; font-size: .83rem; font-weight: 800; }
.download-band { background: var(--blue-band); color: var(--ink); border-top: 1px solid var(--line); }
.download-band .section-title > p, .download-grid p { color: var(--muted); }
.download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.download-grid article { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.download-grid .btn { margin-top: 17px; }
.download-grid .btn.ghost { border-color: #728a99; color: var(--ink); }
.portal-shortcuts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 21px; color: var(--ink); font-size: .85rem; }
.footer { background: var(--deep); color: var(--bright); }
.footer-grid { padding-block: 36px; display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 36px; }
.footer nav { justify-content: flex-end; flex-wrap: wrap; column-gap: 19px; row-gap: 10px; }
.footer p { font-size: .81rem; margin-top: .45rem; color: #c9d6d8; }
.page { width: min(1000px, calc(100% - 56px)); min-height: 65vh; padding-block: 48px 60px; }
.page.compact { width: min(515px, calc(100% - 56px)); }
.page-heading { margin-bottom: 20px; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.26; }
.page h2 { font-size: 1.21rem; margin: 15px 0 7px; }
.page p { margin-block: .4em; }
.page-heading p, .muted { color: var(--muted); }
.surface, .form { padding: 19px 22px; margin-block: 14px; }
.article { padding-bottom: 28px; }
.form { display: grid; justify-items: start; gap: 14px; }
.form label { display: grid; gap: 5px; min-width: min(100%, 260px); font-size: .9rem; font-weight: 700; }
.form label.check { display: flex; align-items: center; gap: 9px; }
.form input:not([type="checkbox"]), .form select { min-height: 42px; border: 1px solid #a9b5b5; border-radius: 5px;
  padding: 7px 9px; background: white; color: var(--ink); font: inherit; max-width: 100%; }
.form input[type="checkbox"] { min-width: 17px; height: 17px; margin: 0; accent-color: #674a13; }
.form-links, .tabs { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; }
.tabs { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 15px; font-weight: 700; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; }
.notice { padding: 12px 16px; background: #f7ecd1; border-left: 3px solid #ad7724; border-radius: 4px; }
.device { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.device h2 { margin: 0; }
.device .form { border: 0; margin: 0; padding: 0; }
.referral-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr)); gap: 18px; margin: 0; }
.referral-metrics dt { color: var(--muted); font-size: .86rem; }
.referral-metrics dd { margin: .3rem 0 0; font-weight: 800; overflow-wrap: anywhere; }
.referral-code { width: 100%; max-width: 22ch; min-width: 0; min-height: 44px; padding: .45rem .6rem;
  border: 1px solid #97aebd; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; }
#referral-copy-hint { display: block; margin-top: .35rem; color: var(--muted); font-size: .77rem; font-weight: 400; }
.point-history { width: 100%; border-collapse: collapse; font-size: .9rem; overflow-wrap: anywhere; }
.point-history caption { text-align: left; font-size: 1.06rem; font-weight: 800; margin-bottom: .5rem; }
.point-history th, .point-history td { padding: .65rem .25rem; border-bottom: 1px solid var(--line); text-align: left; }
.point-history th:last-child, .point-history td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 16px; }
.commerce-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.25rem; }
.commerce-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  font-size: .9rem; font-weight: 700; text-decoration: none; }
.commerce-tabs a[aria-current="page"] { color: var(--bright); background: var(--navy); border-color: var(--navy); }
.commerce-tabs a:not([aria-current]):hover { background: #faf2db; }
.commerce-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.commerce-grid > .surface { margin-block: 0; }
.commerce-lead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.25rem; border-top: 3px solid #9a702f; background: var(--blue-soft); }
.commerce-lead h2 { margin-top: 0; }
.commerce-lead .detail-actions { margin-block: .4em; }
.detail-back a, .source-note a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.source-note { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; }
.source-note span { color: var(--muted); font-size: .86rem; }
.calendar-list { padding: 0; list-style: none; margin: 0; }
.calendar-list li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .5rem 1rem; align-items: baseline;
  padding: .65rem 0; border-bottom: 1px solid var(--line); }
.calendar-list time { color: #735a25; font-weight: 800; }
.calendar-list p { margin: .3rem 0 0; color: var(--muted); }
.ledger-dashboard { padding: clamp(16px, 3vw, 30px); border-top: 3px solid #9a702f; }
.ledger-dashboard h2 { margin-top: 0; font-size: clamp(1.35rem, 2.45vw, 1.8rem); }
.ledger-state { color: #73551d; font-weight: 800; }
.ledger-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.ledger-metric { min-width: 0; padding: 13px 15px; border: 1px solid #3b5461; border-radius: 10px; background: #142934; color: #f9f6eb; }
.ledger-metric dt { color: #d6dfde; font-size: .88rem; }
.ledger-metric dd { margin: .3rem 0 0; color: #f4cf7c; font-size: clamp(.97rem, 2vw, 1.45rem);
  font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ledger-provenance { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; margin: 12px 0; }
.ledger-provenance dt { color: var(--muted); font-size: .84rem; }
.ledger-provenance dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ledger-chart { margin: 0 0 18px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--blue-soft); }
.ledger-chart figcaption { display: grid; gap: .22rem; margin-bottom: .75rem; }
.ledger-chart figcaption span { color: var(--muted); font-size: .85rem; }
.ledger-chart dl { display: grid; gap: .55rem; margin: 0; }
.ledger-chart-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .45rem 1rem; align-items: center; }
.ledger-chart-row dt { font-weight: 700; }
.ledger-chart-row dd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6.8rem, max-content); gap: .55rem;
  align-items: center; margin: 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.ledger-chart-row dd span { text-align: right; overflow-wrap: anywhere; }
.ledger-chart meter { display: block; width: 100%; min-width: 0; height: .8rem; --meter-fill: #254d65; }
.ledger-chart meter.expense { --meter-fill: #8a6626; }
.ledger-chart meter.net_profit { --meter-fill: #2d6659; }
.ledger-chart meter.loss { --meter-fill: #8d4537; }
.ledger-chart meter::-webkit-meter-bar { background: #e6ddc7; border: 0; }
.ledger-chart meter::-webkit-meter-optimum-value { background: var(--meter-fill); }
.ledger-chart meter::-moz-meter-bar { background: var(--meter-fill); }
@media (min-width: 1440px) {
  :root { font-size: clamp(100%, .9vw, 175%); }
  .wrap { width: clamp(1200px, 80%, 3040px); }
  .page:not(.compact) { width: min(74%, 1850px); }
  .page.compact { width: min(36rem, calc(100% - 56px)); }
  .page-heading > p, .surface.article p { max-width: 72ch; }
  .hero-inner { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(48px, 4vw, 126px); padding-block: clamp(58px, 4.3vw, 142px); }
  .hero h1 { font-size: clamp(2.8rem, 2.4vw, 3.85rem); }
  .hero-description { max-width: 40ch; font-size: 1.08rem; }
  .demo-body { min-height: clamp(295px, 20vw, 610px); }
  .mobile-demo { width: min(28%, clamp(168px, 9.4vw, 294px)); }
  .landing-section { padding-block: clamp(63px, 4.25vw, 148px); }
  .portal-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .portal-feature-grid a { padding: 1rem 1.15rem; min-height: 6.25rem; }
}
@media (min-width: 2460px) {
  .portal-feature-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-inner { padding-block: 59px; }
  .wrap { width: min(100% - 60px, 1200px); }
  .service-grid, .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 19px; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 665px) {
  .wrap { width: calc(100% - 36px); }
  .header { display: grid; grid-template-columns: 1fr auto; padding-block: 13px; row-gap: 12px; }
  .header nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .15rem; }
  .header nav a { font-size: .76rem; white-space: normal; text-align: center; padding-inline: .15rem; }
  .header .btn { grid-column: 2; grid-row: 1; }
  .hero-inner, .plan-grid, .download-grid { grid-template-columns: 1fr; }
  .commerce-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 39px 35px; gap: 22px; }
  .hero h1 { font-size: clamp(1.92rem, 7vw, 2.85rem); }
  .demo-title { padding-right: clamp(45px, 18vw, 114px); }
  .landing-section { padding-block: 41px; }
  .section-title { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }
  .service-grid article, .plan-grid article, .download-grid article { padding: 17px; }
  .page { padding-top: 33px; }
  .ledger-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ledger-metric { padding: 10px; }
}
@media (max-width: 445px) {
  .demo-body { grid-template-columns: 1fr; min-height: 205px; }
  .demo-sidebar { display: none; }
  .demo-main { padding: 12px 45px 14px 12px; }
  .demo-title { padding-inline: 10px; }
  .workflow-grid { row-gap: 20px; }
  .calendar-list li { grid-template-columns: minmax(0, 1fr); }
  .ledger-chart-row { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .ledger-chart-row dd { grid-template-columns: minmax(0, 1fr) minmax(5rem, auto); }
}
