@font-face {
  font-family: Journal Serif;
  src: url("assets/journal-serif.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffaf4;
  --milk: #fffdfa;
  --ink: #302421;
  --muted: #654f48;
  --berry: #8c4054;
  --berry-dark: #713142;
  --rose: #fcf0eb;
  --line: #e7d6cb;
  --sage: #e9ede5;
  --wine: #3d282e;
  --action: #8c4054;
  --action-hover: #713142;
  --action-text: #fff9f6;
  --focus: #a6536a;
  --tab-line: #d4b9ac;
  --tab-hover: #f2e0d6;
  --record-field: #f4dcd3;
  --edit-field: #f7e6e2;
  --edit-paper: #fffaf6;
  --edit-flash: #fce8d6;
  --month-field: #f5e5d0;
  --sage-ink: #34453a;
  --sage-muted: #435443;
  --sage-line: #c9d3c5;
  --footer-paper: #f6ede3;
  --window-glow: #ffe1a9;
  --selection: #f4d4df;
  --selection-ink: #401e2c;
  --display: Journal Serif, "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}


:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #241b20;
  --milk: #33262b;
  --ink: #fff0e8;
  --muted: #dec4bd;
  --berry: #f1b5bd;
  --berry-dark: #ffccd0;
  --rose: #302328;
  --line: #574046;
  --sage: #28322c;
  --wine: #2e2026;
  --action: #f1b5bd;
  --action-hover: #ffd2d5;
  --action-text: #3a2229;
  --focus: #f1b5bd;
  --tab-line: #82626b;
  --tab-hover: #4b3039;
  --record-field: #51323a;
  --edit-field: #422d34;
  --edit-paper: #392830;
  --edit-flash: #5b3d44;
  --month-field: #433329;
  --sage-ink: #e8f0e1;
  --sage-muted: #c7d6c4;
  --sage-line: #526251;
  --footer-paper: #2d2227;
  --window-glow: #f4ac78;
  --selection: #7b4355;
  --selection-ink: #fff2e9;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button { font: inherit; }
::selection { color: var(--selection-ink); background: var(--selection); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
[role="tabpanel"]:focus-visible { outline-offset: 6px; }
[id] { scroll-margin-top: 1.25rem; }
html { scroll-behavior: smooth; }

h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.23; letter-spacing: -.036em; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.6rem); }
h3 { font-size: 1.14rem; line-height: 1.45; }
p { line-height: 1.8; }
.shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.lede { max-width: 43ch; margin-top: 20px; color: var(--muted); font-size: 1.02rem; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.16em; height: 1.16em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 4; top: 12px; left: 12px; padding: 10px 16px; background: var(--milk); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; flex: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; line-height: 1.2; letter-spacing: .08em; }
.brand small { margin-top: 5px; font-size: .7rem; line-height: 1.15; letter-spacing: .13em; color: var(--muted); }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; padding-inline: 3px; transform: skewX(-12deg); }
.brand-mark i { display: block; width: 6px; height: 24px; border-radius: 4px 4px 1px 1px; background: #964b60; }
.brand-mark i:nth-child(2) { height: 18px; background: #b46a7a; }
.brand-mark i:nth-child(3) { height: 12px; background: #ce8792; }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.4vw, 33px); margin-inline-start: auto; color: var(--muted); }
.header-inner nav a, .footer-top nav a { padding-block: 9px; font-size: .9rem; }
.header-inner nav a:hover, .header-inner nav a[aria-current="page"], .footer-top nav a:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 5px; }

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; flex: none; padding: 6px 12px; border: 1px solid var(--tab-line); border-radius: 23px; background: transparent; color: var(--berry-dark); font-size: .83rem; cursor: pointer; }
.theme-toggle:hover, .theme-toggle[aria-pressed="true"] { background: var(--tab-hover); }
.theme-toggle .theme-sun, .theme-toggle[aria-pressed="true"] .theme-moon { display: none; }
.theme-toggle[aria-pressed="true"] .theme-sun { display: block; }

.hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); grid-template-areas: "copy art" "features features"; align-items: center; gap: 64px 28px; padding-block: 66px 23px; }
.hero-copy { grid-area: copy; position: relative; z-index: 1; }
.app-name { display: flex; align-items: center; gap: 11px; margin-bottom: 25px; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.app-name img { width: 43px; height: 43px; border-radius: 12px; }
.app-name small { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; font-weight: 500; }
.hero h1 { font-size: clamp(2.5rem, 4.22vw, 4.15rem); }
.hero h1 span { color: var(--berry); }
.hero-copy > p { max-width: 37ch; margin-top: 23px; color: var(--muted); font-size: clamp(.98rem, 1.34vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 650; }
.button { min-height: 47px; width: fit-content; max-width: 100%; padding: 10px 17px; border: 1px solid transparent; border-radius: 25px; font-size: .92rem; text-align: center; cursor: pointer; transition: background .22s, transform .25s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--action); color: var(--action-text); }
.button-primary:hover { background: var(--action-hover); }
.text-link { min-height: 44px; color: var(--berry-dark); font-size: .91rem; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.hero-art { grid-area: art; position: relative; isolation: isolate; padding: 0 38px 4px 0; }
.hero-photo { position: relative; height: clamp(360px, 39vw, 500px); overflow: hidden; background: #e0ccbb; border-radius: 46% 46% 14px 14px / 25% 25% 14px 14px; }
.hero-photo img { height: 100%; object-fit: cover; object-position: 36% center; }
.hero-photo::after { position: absolute; inset: 0; pointer-events: none; content: ""; opacity: .6; background: radial-gradient(ellipse at 100% 0%, var(--window-glow) 0%, transparent 66%); animation: window-light 4s var(--ease) both; }
.hero-art::before { position: absolute; z-index: -1; inset: 6% -5% -4% 35%; pointer-events: none; content: ""; opacity: .38; background: radial-gradient(ellipse, var(--window-glow) 0%, transparent 68%); }
:root[data-theme="dark"] .hero-photo img { filter: brightness(.78) saturate(.9); }
:root[data-theme="dark"] .hero-art::before { opacity: .21; }
@keyframes window-light { 0% { opacity: .15; } 38% { opacity: .72; } 100% { opacity: .6; } }
.phone { overflow: hidden; padding: 6px; border-radius: 27px; background: #342a29; box-shadow: 0 17px 40px #38241e32; }
.phone img { height: auto; border-radius: 21px; background: #fcf8fa; }
.hero-phone { width: 31%; position: absolute; bottom: 0; right: 0; padding: 5px; background: #1b1517; transform: rotate(5deg); }
.hero-screen { position: relative; }
.hero-screen::after { content: ""; position: absolute; top: 1.9%; left: 50%; width: 22%; aspect-ratio: 3.4; border-radius: 999px; background: #070606; pointer-events: none; transform: translateX(-50%); }
figcaption { color: var(--muted); font-size: .76rem; line-height: 1.55; }
.screenshot-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px 12px; }
.screenshot-caption a, .company-details a, .policy-contact a { color: var(--berry-dark); text-decoration: underline; text-underline-offset: 3px; }
.screenshot-caption a { display: inline-flex; align-items: center; min-height: 38px; font-size: .82rem; }

.records { background: var(--rose); overflow: hidden; border-block: 1px solid var(--line); }
.record-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: 60px; padding-block: 78px 52px; }
.record-copy { padding-bottom: 16px; }
.record-picker, .month-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 26px 18px; }
.record-picker button, .month-picker button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 7px 13px; border: 1px solid var(--tab-line); border-radius: 22px; background: transparent; color: var(--muted); cursor: pointer; font-size: .91rem; transition: background .2s, color .2s; }
.record-picker button:hover, .month-picker button:hover { background: var(--tab-hover); }
.record-picker button[aria-selected="true"], .month-picker button[aria-selected="true"] { color: var(--action-text); background: var(--action); border-color: var(--action); }
.record-panel { max-width: 390px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.record-panel p, .showcase-fallback { margin-top: 6px; color: var(--muted); font-size: .93rem; }
.showcase-fallback { max-width: 42ch; }
#record-edit-link { justify-content: start; margin-top: 7px; }
.record-visual, .encyclopedia-visual, .care-visual { position: relative; isolation: isolate; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; }
.record-visual::before { content: ""; position: absolute; z-index: -1; inset: 18px 10% 30px; background: var(--record-field); border-radius: 49% 49% 15px 15px; }
.record-phone { width: min(60%, 263px); }
.record-phone img { aspect-ratio: 390 / 844; }
.screen-change { animation: screen-change .42s var(--ease); }
@keyframes screen-change { from { opacity: .72; transform: translateY(4px); } }

.edit-section { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 70px; align-items: center; padding-block: 86px; }
.edit-screenshot { margin-top: 22px; max-width: 342px; }
.editor-crop, .growth-window { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.editor-crop { height: 112px; }
.editor-crop img { height: 100%; object-fit: cover; object-position: center 97%; }
.edit-screenshot figcaption, .growth figure figcaption { margin-top: 8px; }
.edit-stage { display: grid; align-content: center; justify-items: start; gap: 16px; padding: clamp(24px, 4vw, 54px); border-radius: 16px; background: var(--edit-field); }
.demo-label { color: var(--muted); font-size: .83rem; font-weight: 650; }
.demo-ticket { width: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--edit-paper); }
.ticket-top, .ticket-bottom { display: flex; justify-content: space-between; align-items: start; gap: 10px; color: var(--muted); }
.ticket-top { font-size: .89rem; }
.ticket-top span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--berry-dark); font-weight: 700; }
.ticket-amount { display: flex; align-items: baseline; gap: 9px; margin-block: 7px 11px; color: var(--berry-dark); }
.ticket-amount strong { font-size: clamp(2.6rem, 4.5vw, 4rem); line-height: 1.07; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.ticket-amount span { font-size: .92rem; }
#demo-static-result { display: flex; align-items: baseline; gap: 8px; font-size: 1.23rem; }
#demo-static-result b { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-bottom { padding-top: 10px; border-top: 1px solid var(--line); font-size: .76rem; }
.ticket-flash { animation: ticket-flash .6s var(--ease); }
@keyframes ticket-flash { 35% { background: var(--edit-flash); } }
.demo-status { min-height: 1.6em; font-size: .82rem; color: var(--muted); }

.growth { background: var(--sage); border-block: 1px solid var(--sage-line); }
.growth-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 60px; padding-block: 58px 44px; }
.growth h2 { color: var(--sage-ink); }
.growth .lede, .growth figcaption { color: var(--sage-muted); }
.growth-window { height: clamp(200px, 24vw, 300px); max-width: 470px; margin-inline: auto; background: #fcf8fa; border-color: var(--sage-line); }
.growth-window img { height: 100%; object-fit: cover; object-position: center 82%; }
.growth figcaption { text-align: center; }

.encyclopedia { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-block: 94px; }
.encyclopedia-copy { grid-column: 2; grid-row: 1; }
.encyclopedia-visual { grid-column: 1; grid-row: 1; min-height: 420px; padding: 18px 0; }
.encyclopedia-visual::before { content: ""; position: absolute; z-index: -1; inset: 0 0 26px; border-radius: 16px 47% 47% 16px / 16px 43% 43% 16px; background: var(--month-field); }
.month-phone { width: min(57%, 244px); height: clamp(325px, 34vw, 430px); }
.month-phone img { min-height: 100%; object-fit: cover; object-position: top; }
.example-scope { margin-top: 19px; color: var(--muted); font-size: .87rem; font-weight: 650; }
.example-scope + .month-picker { margin-top: 9px; }
.month-panel { max-width: 360px; min-height: 103px; padding-top: 14px; border-top: 1px solid var(--line); }
.month-panel ul { margin: 7px 0 0; padding-left: 1.25em; color: var(--muted); font-size: .93rem; line-height: 1.8; }
.month-panel li::marker { color: var(--berry); }

.care { overflow: hidden; background: var(--wine); color: #fff7ee; }
:root[data-theme="dark"] .care { border-block: 1px solid var(--line); }
.care-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: 52px; align-items: center; padding-block: 82px 67px; }
.care .lede { color: #f0d9d5; }
.care-steps { display: grid; gap: 8px; margin-top: 24px; }
.care-steps > div { display: flex; align-items: center; gap: 10px; font-size: .97rem; }
.care-steps span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #b5848a; border-radius: 50%; color: #ffded7; font-size: .79rem; font-variant-numeric: tabular-nums; }
.visits-note { display: flex; align-items: start; gap: 9px; max-width: 420px; margin-top: 24px; padding-top: 14px; border-top: 1px solid #745258; color: #f2ddd8; font-size: .9rem; }
.visits-note .icon { margin-top: 4px; }
.care-caveat { margin-top: 8px; color: #eac6c4; font-size: .76rem; }
.care-visual { min-height: 436px; align-items: flex-end; justify-content: end; padding: 0 8% 24px 0; }
.care-visual::before { content: ""; position: absolute; z-index: -1; inset: 13% 6% 12% 8%; border: 1px solid #a47479; border-radius: 50%; }
.care-visual figcaption { position: absolute; right: 8%; bottom: -10px; color: #f0d9d5; }
.care-visual figcaption a { color: #ffded7; }
.care-phone { width: 52%; height: 408px; transform: rotate(4deg); }
.visits-phone { position: absolute; z-index: -1; left: 8%; bottom: 12%; width: 43%; height: 73%; transform: rotate(-9deg); }
.care-phone img, .visits-phone img { min-height: 100%; object-fit: cover; object-position: top; }

.closing { display: grid; grid-template-columns: 1fr 1fr; padding-block: 64px; }
.closing > div { padding: 12px 32px 8px 0; }
.closing > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
.closing h2 { font-size: clamp(1.4rem, 2.15vw, 2.1rem); }
.closing p { max-width: 37ch; margin: 12px 0 4px; color: var(--muted); font-size: .94rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--footer-paper); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 33px 22px; }
.footer-top strong { font-size: 1rem; }
.footer-top p { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-top: 13px; padding-bottom: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }

.article-head { padding-block: 46px 40px; }
.article-head h1 { margin-block: 14px 11px; font-size: clamp(2.4rem, 5vw, 4rem); }
.article-head p, .article-layout article p { color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(140px, .29fr) minmax(0, 1fr); gap: 40px; padding-bottom: 72px; }
.article-layout aside nav { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.article-layout aside a { padding: 7px 0; color: var(--berry-dark); font-size: .91rem; }
.article-layout article { max-width: 750px; }
.article-layout section { margin-bottom: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-layout h2 { font-size: 1.55rem; margin-bottom: 12px; }
.article-layout p + p { margin-top: 8px; }
.article-layout details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.article-layout summary { cursor: pointer; font-weight: 650; }
.article-layout details p { margin-top: 8px; }
.company-details { margin: 15px 0; }
.company-details > div { display: grid; grid-template-columns: minmax(94px, .27fr) minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.company-details dt { color: var(--muted); }
.company-details dd { margin: 0; overflow-wrap: anywhere; }
.policy-date, .policy-contact { margin-bottom: 13px; font-size: .91rem; }
.draft-note { margin-bottom: 18px; padding: 12px 15px; border-radius: 12px; background: var(--rose); font-size: .91rem; }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 45px 20px; padding-block: 54px 23px; }
  .hero-art { padding-right: 21px; }
  .edit-section, .encyclopedia, .record-grid { gap: 46px; }
  .care-phone { height: 350px; }
  .care-visual { min-height: 382px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: auto; padding-block: 14px 5px; gap: 4px 12px; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; width: 100%; margin-inline-start: 0; gap: 0; justify-content: space-between; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 2px; font-size: .83rem; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "features" "art"; gap: 19px; padding-block: 25px 29px; }
  .app-name { margin-bottom: 17px; }
  .hero h1 { font-size: clamp(2rem, 7.8vw, 3.15rem); }
  .hero-copy > p { margin-top: 15px; }
  .hero-actions { margin-top: 19px; }
  .hero-photo { height: min(69vw, 420px); min-height: 213px; }
  .hero-phone { width: min(31%, 170px); bottom: 2px; }
  .hero-art { padding-right: 21px; padding-bottom: 0; }
  .record-grid, .edit-section, .growth-grid, .encyclopedia, .care-grid { grid-template-columns: 1fr; gap: 22px; padding-block: 50px 43px; }
  .record-copy { padding: 0; }
  .lede { margin-top: 13px; }
  .record-picker, .month-picker { margin-block: 18px 12px; }
  .record-panel, .month-panel { min-height: 0; }
  .record-phone { width: min(65%, 238px); }
  .edit-section { gap: 18px; }
  .edit-stage { grid-row: 2; }
  .growth-grid { gap: 15px; }
  .growth-window { height: min(60vw, 300px); }
  .encyclopedia-copy { grid-column: 1; grid-row: 1; }
  .encyclopedia-visual { grid-column: 1; grid-row: 2; min-height: 0; padding-block: 14px 5px; }
  .month-phone { width: min(59%, 245px); height: min(93vw, 412px); min-height: 270px; }
  .care-visual { min-height: 0; height: min(99vw, 410px); padding-right: 11%; }
  .care-phone { height: 90%; width: min(52%, 235px); }
  .visits-phone { left: 12%; width: min(43%, 200px); }
  .care-visual figcaption { right: 0; left: 0; }
  .closing { grid-template-columns: 1fr; padding-block: 30px; }
  .closing > div { padding: 12px 0 13px; }
  .closing > div + div { padding: 19px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .footer-top { flex-direction: column; align-items: start; gap: 9px; padding-block: 24px 13px; }
  .footer-top nav { gap: 5px 15px; }
  .footer-top nav a { font-size: .82rem; }
  .article-head { padding-block: 25px 22px; }
  .article-layout { grid-template-columns: 1fr; gap: 17px; padding-bottom: 40px; }
  .article-layout aside nav { display: flex; flex-wrap: wrap; gap: 4px 15px; }
}

@media (max-width: 349px) {
  .shell { width: calc(100% - 28px); }
  .brand { gap: 8px; }
  .brand small { letter-spacing: .05em; }
  .theme-toggle { padding-inline: 9px; }
  .hero-actions { gap: 13px; }
  .record-picker button, .month-picker button { padding-inline: 11px; }
  .edit-stage { padding: 18px; }
  .ticket-bottom { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.feature-index { grid-area: features; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature-index a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-top: 1px solid var(--line); color: var(--berry-dark); font-size: .91rem; font-weight: 650; }
.feature-index a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 760px) {
  .feature-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
}
