:root {
  --paper: #ffffff;
  --ground: #f3f6f3;
  --ink: #1a302a;
  --ink-soft: #2c4a40;
  --action: #087b72;
  --action-strong: #06675f;
  --line: #dce5dc;
  --line-strong: #c3d1c5;
  --vermilion: #a34532;
  --muted: #566a62;
  --pale: #e8f1ea;
  --radius-control: 8px;
  --radius-panel: 14px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-en: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-num: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
html:lang(ja) body { word-break: auto-phrase; }
html:lang(en) body, html:lang(vi) body, html:lang(pt) body, html:lang(id) body { font-family: var(--font-en); line-height: 1.65; }
html:lang(zh-CN) body { font-family: var(--font-zh); }
/* The other languages of the app (D-0182): each script in a system font made for it, with room for its marks. */
html:lang(zh-TW) body { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; }
html:lang(ko) body { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; word-break: keep-all; }
html:lang(th) body { font-family: "Thonburi", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif; line-height: 1.8; }
html:lang(ne) body { font-family: "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", system-ui, sans-serif; line-height: 1.8; }
html:lang(my) body { font-family: "Myanmar Sangam MN", "Myanmar Text", "Noto Sans Myanmar", system-ui, sans-serif; line-height: 1.9; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--action); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-control); }
.skip:focus { top: 12px; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-control); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button-primary { background: var(--action); color: var(--paper); }
.button-primary:hover { background: var(--action-strong); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-quiet:hover { border-color: var(--ink); }
.button-large { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.button-small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.button-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 246, 243, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(26, 48, 42, .08);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--font-ja); font-weight: 700; letter-spacing: .04em; font-size: 15px; }
.brand-mark { width: 30px; height: 30px; display: block; flex: none; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a, .nav-mobile nav a:not(.button) { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: 14px; border-radius: 6px; }
.nav-desktop a:hover { background: rgba(26, 48, 42, .06); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang, .nav-mobile { position: relative; }
.lang summary, .nav-mobile summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 6px 10px; border-radius: var(--radius-control);
  font-size: 14px; color: var(--ink); border: 1px solid transparent;
}
.lang summary::-webkit-details-marker, .nav-mobile summary::-webkit-details-marker { display: none; }
.lang summary:hover, .nav-mobile summary:hover, .lang[open] summary, .nav-mobile[open] summary { border-color: var(--line-strong); background: var(--paper); }
.lang summary svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.lang ul, .nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 18px 40px -18px rgba(26, 48, 42, .35);
}
/* Eleven languages (D-0182): the list scrolls inside the window on short screens. */
.lang ul { max-height: min(70vh, 470px); overflow: auto; margin: 0; list-style: none; }
.lang a { white-space: nowrap; }
.lang a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.lang a:hover { background: var(--ground); }
.lang a[aria-current="page"] { font-weight: 700; color: var(--action); }
.nav-mobile { display: none; }
.nav-mobile nav { min-width: 240px; padding: 10px; }
.nav-mobile nav ul { margin-bottom: 10px; }
.nav-mobile nav .button { width: 100%; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 4.1vw, 3.6rem);
  line-height: 1.18; letter-spacing: -.01em;
  font-feature-settings: "palt" 1;
  text-wrap: balance;
}
.h1-line { display: inline-block; }
html:lang(en) .hero h1, html:lang(vi) .hero h1, html:lang(pt) .hero h1, html:lang(id) .hero h1 { letter-spacing: -.025em; line-height: 1.05; }
html:lang(th) .hero h1, html:lang(ne) .hero h1, html:lang(my) .hero h1 { letter-spacing: 0; line-height: 1.45; }
.hero-lead { margin-top: 24px; font-size: clamp(1rem, 1.35vw, 1.125rem); color: var(--ink-soft); max-width: 34em; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Demo: sheet + phone */
.demo { margin: 0; }
/* The editor behind, what it makes in front: the printed sheet at the lower left, the public page on a phone at the lower right. */
.demo-stage { position: relative; padding: 0 0 21% 5%; }
.editor { display: block; width: 100%; height: auto; border-radius: 10px; outline: 1px solid rgba(26, 48, 42, .12); box-shadow: 0 1px 0 rgba(26, 48, 42, .06), 0 30px 60px -30px rgba(26, 48, 42, .45); }
/* The demo listing's real sheet (scripts/sheets.mjs); the stamp is laid over it. */
.sheet {
  container-type: inline-size;
  position: absolute; left: 0; bottom: 0; width: 56%;
  aspect-ratio: 1062 / 733;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(26, 48, 42, .06), 0 24px 44px -20px rgba(26, 48, 42, .5);
  outline: 1px solid rgba(26, 48, 42, .1);
  transform: rotate(-2deg);
  overflow: hidden;
}
.sheet img { display: block; width: 100%; height: 100%; transition: opacity .3s; }

.stamp {
  /* On the empty right half of the sheet's price box, like a sticker. */
  position: absolute; top: 1.1cqw; right: 2.4cqw;
  display: grid; place-items: center;
  width: 12.6cqw; height: 12.6cqw; border-radius: 50%;
  border: .55cqw double var(--vermilion);
  color: var(--vermilion);
  transform: rotate(-12deg);
  background: var(--paper);
  opacity: .96;
}
.stamp span { font-weight: 800; font-size: 2.1cqw; line-height: 1.15; text-align: center; max-width: 9.6cqw; letter-spacing: .04em; }
html:not(:lang(ja)):not(:lang(zh)) .stamp span { font-size: 1.6cqw; letter-spacing: 0; }
@keyframes stamp {
  0% { transform: rotate(-12deg) scale(1.5); opacity: 0; }
  60% { transform: rotate(-12deg) scale(.94); opacity: 1; }
  100% { transform: rotate(-12deg) scale(1); opacity: .96; }
}

/* A whole phone showing the public page in its browser. Sized by its width alone: every inner length is in cqw. */
.phone { container-type: inline-size; aspect-ratio: 9 / 18.6; }
.phone-body { height: 100%; background: var(--ink); border-radius: 13cqw; padding: 3.6cqw; box-shadow: 0 30px 50px -24px rgba(26, 48, 42, .55); }
.phone-screen { height: 100%; display: flex; flex-direction: column; background: var(--paper); border-radius: 9.6cqw; overflow: hidden; }
/* The address bar sits at the bottom, with the home indicator under it. */
.browser-bar { flex: none; position: relative; padding: 2.6cqw 5cqw 7.4cqw; background: #eef1ef; border-top: 1px solid var(--line); }
.browser-bar::after { content: ""; position: absolute; left: 34%; right: 34%; bottom: 2.4cqw; height: 1.5cqw; border-radius: 1cqw; background: var(--ink); opacity: .75; }
.browser-bar span { display: flex; align-items: center; justify-content: center; gap: 1.6cqw; height: 9.6cqw; border-radius: 4.8cqw; background: var(--paper); color: var(--ink-soft); font-family: var(--font-en); font-size: 4.8cqw; line-height: 1; letter-spacing: .01em; }
.browser-bar svg { width: 4.4cqw; height: 4.4cqw; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.phone-screen img { display: block; flex: 1; min-height: 0; width: 100%; max-width: none; object-fit: cover; object-position: top; }
.hero-phone { position: absolute; right: 4%; bottom: 0; width: 25%; transform: rotate(2deg); }



/* Section scaffolding */
.steps, .features, .pricing, .faq { padding-block: clamp(64px, 9vw, 120px); }
.steps h2, .section-head h2, .values h2, .faq h2, .closing h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); letter-spacing: -.005em; font-feature-settings: "palt" 1; word-break: auto-phrase; text-wrap: balance; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 72px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); max-width: 36em; }

/* Steps: the hero's demo property on one desk, as pasted text, as a sheet, and as a phone page */
.steps { background: var(--paper); border-block: 1px solid var(--line); --art-h: 214px; --step-gap: clamp(24px, 3.4vw, 48px); }
.steps h2 { max-width: 18em; }
.step-list { margin-top: clamp(40px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--step-gap); isolation: isolate; }
.step-list > li { position: relative; }
.step-list::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: var(--art-h); background: var(--ground); border-radius: var(--radius-panel); }
.art { position: relative; height: var(--art-h); margin-bottom: 30px; display: grid; place-items: center; overflow: hidden; }
.art-chip { position: absolute; font-size: 12px; font-weight: 700; line-height: 1; padding: 7px 11px; border-radius: 999px; background: var(--action); color: var(--paper); box-shadow: 0 6px 14px rgba(8, 123, 114, .25); }

.paste-card { width: min(86%, 270px); background: var(--paper); border-radius: 6px; padding: 12px 14px 14px; transform: rotate(-1.5deg); box-shadow: 0 1px 2px rgba(26, 48, 42, .08), 0 12px 26px rgba(26, 48, 42, .12); font-size: 12px; line-height: 1.5; }
.paste-tab { font-size: 11px; color: var(--muted); padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px dashed var(--line-strong); }
.paste-card li { display: flex; gap: 6px; white-space: nowrap; overflow: hidden; }
.paste-card li + li { margin-top: 3px; }
.paste-card b { color: var(--action); font-weight: 700; flex: none; }
.paste-card b::after { content: "："; }
html:not(:lang(ja)):not(:lang(zh)) .paste-card b::after { content: ":"; }
.paste-card span { overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.art-paste .art-chip { right: 9%; bottom: 20px; }

.mini-sheet { width: min(84%, 262px); background: var(--paper); box-shadow: 0 1px 2px rgba(26, 48, 42, .08), 0 14px 28px rgba(26, 48, 42, .14); }
.mini-sheet img { display: block; width: 100%; height: auto; }
.art-pdf { top: 8px; right: 6%; background: var(--vermilion); box-shadow: 0 6px 14px rgba(163, 69, 50, .25); }

.art-phone { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 22px; }
.mini-phone { width: 92px; }
.mini-phone .phone-body, .feature-phone .phone-body { box-shadow: 0 14px 30px rgba(26, 48, 42, .2); }
.art-states { align-self: center; display: grid; gap: 7px; }
.art-states li { font-size: 12px; font-weight: 700; line-height: 1; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--paper); white-space: nowrap; }
.art-states li.is-on { background: var(--action); border-color: var(--action); color: var(--paper); }

.step-number {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; border: 1.5px solid var(--ink); font-family: var(--font-num); font-weight: 700; font-size: 18px;
}
.step-list li:last-child .step-number { border-color: var(--vermilion); color: var(--vermilion); }
.step-list > li > h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step-list > li > p { color: var(--ink-soft); font-size: 15px; }

/* Values */
/* Sheet gallery: real sheets of the demo listings, landscape then portrait */
.gallery { padding-block: clamp(64px, 9vw, 120px); }
.sheet-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2.2vw, 28px); }
.sheet-row-portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 3vw, 40px); }
.sheet-row figure { margin: 0; }
.sheet-row a { display: block; border-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(26, 48, 42, .35); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.sheet-row a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 18px 32px -16px rgba(26, 48, 42, .45); }
.sheet-row img { display: block; width: 100%; height: auto; }
.sheet-row figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: 12px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.sheet-style { color: var(--muted); font-size: 13px; font-weight: 400; }
.gallery-note { margin-top: clamp(28px, 3vw, 40px); color: var(--muted); font-size: 14px; }

/* A gallery sheet opened larger over the page (enhance.js). The whole dialog scrolls when the sheet is wider than a phone. */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 0 20px; border: 0; background: transparent; overflow: auto; overscroll-behavior: contain; }
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(16, 30, 26, .82); }
.lightbox figure { margin: auto; padding-inline: 3vw; }
.lightbox img { display: block; max-width: none; width: min(94vw, calc((100dvh - 150px) * var(--ratio)), var(--full)); height: auto; aspect-ratio: var(--ratio); background: var(--paper); border-radius: 4px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); cursor: zoom-out; }
.lightbox figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 14px; color: #fff; font-size: 15px; font-weight: 700; }
.lightbox figcaption span + span { color: #c6d4ca; font-size: 13px; font-weight: 400; }
.lightbox button { position: fixed; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: 8px; right: 12px; }
.lightbox-prev, .lightbox-next { top: 50%; margin-top: -22px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.sheet-row a { cursor: zoom-in; }

.values { background: var(--ink); color: #e9f0eb; padding-block: clamp(64px, 8vw, 104px); }
.values-grid { display: grid; gap: clamp(32px, 4vw, 52px); }
.values h2 { color: var(--paper); max-width: 16em; }
.value-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3.4vw, 48px); }
.value-list li { padding-top: 22px; border-top: 1px solid rgba(233, 240, 235, .24); }
.value-list h3 { font-size: 1.1rem; color: var(--paper); margin-bottom: 10px; }
.value-list p { color: #c6d4ca; font-size: 15px; }

/* Features */
/* Three cards: what one property record becomes. Each shows the demo listing's own output. */
.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.feature-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-panel); overflow: hidden; scroll-margin-top: 96px; }
.feature-art { height: 264px; display: grid; place-items: center; overflow: hidden; background: var(--ground); border-bottom: 1px solid var(--line); }
.feature-sheet { width: 84%; height: auto; box-shadow: 0 1px 2px rgba(26, 48, 42, .08), 0 14px 28px rgba(26, 48, 42, .16); transform: rotate(-1.2deg); }
.feature-phone { width: 118px; }
.feature-cover { width: auto; height: 222px; border-radius: 8px; box-shadow: 0 1px 2px rgba(26, 48, 42, .08), 0 14px 28px rgba(26, 48, 42, .18); transform: rotate(1.5deg); }
.feature-body { padding: 22px 24px 26px; }
.feature-body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.feature-icon { flex: none; width: 24px; height: 24px; color: var(--action); }
.feature-body > p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.feature-body ul { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.feature-body li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.6; }
.feature-body li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
/* Each group reads like a sheet: a heading over a heavy rule, then the overview grid two items to a line. */

/* Pricing */
.pricing { background: var(--paper); border-block: 1px solid var(--line); }
.price-table-wrap { overflow-x: auto; }
.price-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.price-table th, .price-table td { padding: 18px 22px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.price-table thead th, .price-table thead td { vertical-align: bottom; border-bottom: 2px solid var(--ink); }
.price-table tbody th { width: 31%; font-weight: 400; }
.row-label { display: block; font-weight: 700; }
.row-note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.price-table td { font-family: var(--font-num); font-weight: 700; font-size: 1.1rem; }
html:not(:lang(en)) .price-table td { font-family: inherit; }
.plan { width: 23%; }
.plan span { display: block; }
.plan-state { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.plan-free .plan-state { color: var(--action); }
.plan-pro .plan-state, .plan-team .plan-state { color: var(--muted); }
.plan-name { font-size: 1.5rem; line-height: 1.2; }
.plan-regular-price { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; font-weight: 400; text-decoration-thickness: 1px; line-height: 1.5; }
.plan-price { margin-top: 6px; font-size: 1.1rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.plan-note { margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.price-table .plan-free { background: var(--pale); }
.price-table thead .plan-free { border-radius: var(--radius-panel) var(--radius-panel) 0 0; }
.price-table tfoot .plan-free { border-radius: 0 0 var(--radius-panel) var(--radius-panel); }
.price-table tfoot td { border-bottom: 0; padding-top: 22px; padding-bottom: 22px; }
.plan-later { font-family: var(--font-ja); font-size: 13.5px; font-weight: 400; color: var(--muted); }
html:not(:lang(ja)) .plan-later { font-family: inherit; }
.price-common { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; align-items: baseline; }
.price-common h3 { font-size: 1.05rem; }
.price-common ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.price-common li { position: relative; padding-left: 26px; font-size: 15px; }
.price-common li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 72px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 1.05rem; font-weight: 700; }
.faq-list summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--ink-soft); max-width: 40em; }

/* Closing: the hero's townscape again, so the page ends on the same street it opened on */
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(32px, 4vw, 56px) clamp(200px, 22vw, 320px);
  background:
    radial-gradient(40% 55% at 24% 38%, rgba(255, 238, 208, .6), rgba(255, 238, 208, 0) 70%),
    linear-gradient(180deg, var(--ground) 0%, #eaf0ec 48%, #dfe9e3 100%);
}
.closing-scene {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(150px, 46%, 300px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, .38));
  mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, .38));
}
.closing-scene .cloud { animation: none !important; }
.closing-inner { display: grid; justify-items: start; gap: 18px; }
.closing h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.closing-inner p { color: var(--ink-soft); max-width: 36em; }
.closing-inner .button { margin-top: 8px; }
.closing-note { font-size: 13.5px; color: var(--muted) !important; }

/* Footer: a contact band like the strip along the bottom of a maisoku, then the page links */
.site-footer { background: #142621; color: #b9c9be; font-size: 14px; }
.footer-band { background: var(--ink); border-top: 4px solid var(--action); }
.footer-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-ja); letter-spacing: .04em; font-weight: 700; font-size: 22px; color: var(--paper); }
.footer-brand img { width: 36px; height: 36px; }
.footer-tagline { margin-top: 6px; color: #c6d4ca; font-size: 14.5px; }
.footer-cta { background: var(--paper); color: var(--ink); }
.footer-cta:hover { background: var(--pale); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 2fr); gap: 28px 40px; padding-block: 40px 32px; }
.footer-heading { color: var(--paper); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.footer-links li + li { margin-top: 6px; }
.site-footer a { color: #b9c9be; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer a[aria-current="page"] { color: var(--paper); font-weight: 700; }
.site-footer .footer-cta, .site-footer .footer-cta:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; border-top: 1px solid rgba(233, 240, 235, .14); padding-top: 22px; }
.footer-notice { font-size: 13px; color: #8fa498; }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.to-top-icon { width: 16px; height: 16px; }

/* Hero backdrop: the sign-in townscape in the landing palette */
.hero {
  position: relative; isolation: isolate;
  padding-bottom: clamp(120px, 15vw, 220px);
  background:
    radial-gradient(38% 46% at 78% 62%, rgba(255, 238, 208, .7), rgba(255, 238, 208, 0) 70%),
    linear-gradient(180deg, #dfe9e3 0%, #eaf0ec 42%, var(--ground) 78%);
}
.hero-scene {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: clamp(150px, 30%, 300px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .38), #000 58%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .38), #000 58%);
}
.town { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.town-far { opacity: .7; }
.town-mid { opacity: .92; }
.town-far, .town-mid, .town-near { will-change: transform; }


/* Steps: one line through the three numbers */
.step-list { position: relative; }
.step-list::before {
  content: ""; position: absolute; top: calc(var(--art-h) + 30px + 22px); left: 22px; height: 1.5px;
  right: calc((100% - 2 * var(--step-gap)) / 3 - 22px);
  background: linear-gradient(90deg, var(--ink), var(--vermilion)); transform-origin: left center;
}
.step-number { position: relative; z-index: 1; background: var(--paper); }

/* Motion. Everything below is skipped when the visitor asks for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: drift calc(48s + var(--i) * 18s) ease-in-out calc(var(--i) * -14s) infinite alternate; }
  .lamp { animation: lamp var(--t) ease-in-out var(--d) infinite; }
  .town-far { transform: translateY(calc(var(--parallax, 0) * .22px)); }
  .town-mid { transform: translateY(calc(var(--parallax, 0) * .12px)); }
  .town-near { transform: translateY(calc(var(--parallax, 0) * .05px)); }

  /* Opening: the editor comes up, the sheet lands on it, the stamp goes on, the phone follows. */
  .hero .editor { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .sheet { animation: rise .7s cubic-bezier(.2, .7, .2, 1) .2s both; }
  .hero .hero-phone { animation: phone-in .8s cubic-bezier(.2, .7, .2, 1) .25s both; }
  .hero .stamp { animation: stamp .42s cubic-bezier(.2, .9, .3, 1.2) 1s both; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .step-list.is-watching::before { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.6, 0, .2, 1) .35s; }
  .step-list.is-watching.is-visible::before { transform: scaleX(1); }
}
@keyframes drift { from { transform: translateX(-9%); } to { transform: translateX(9%); } }
@keyframes lamp { 0%, 52%, 100% { fill: #cfdcd3; } 62%, 88% { fill: #f3dfb4; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }
@keyframes phone-in { from { opacity: 0; transform: translate(18px, 26px) rotate(6deg); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes badge { 0% { box-shadow: 0 0 0 0 rgba(34, 107, 78, .45); transform: scale(.86); } 45% { transform: scale(1.06); } 100% { box-shadow: 0 0 0 12px rgba(34, 107, 78, 0); transform: none; } }
@keyframes trail { 0% { opacity: 0; } 25% { opacity: .45; } 100% { opacity: 0; } }
@keyframes spark { 0% { stroke-dashoffset: .14; opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -1.06; opacity: 0; } }

/* Privacy policy (legal pages): a readable column, contents on the side on wide screens */
.footer-legal { font-size: 13px; }
.legal { padding-block: clamp(32px, 6vw, 64px) clamp(56px, 8vw, 96px); }
.legal-draft { margin-bottom: 28px; padding: 14px 18px; background: #fbefeb; color: var(--ink); border-left: 4px solid var(--vermilion); border-radius: 0 var(--radius-control) var(--radius-control) 0; font-size: 14.5px; }
.legal-head { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line-strong); }
.legal-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.01em; }
.legal-dates { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.legal-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: 14px; }
.legal-toc-title { font-weight: 700; margin-bottom: 8px; }
.legal-toc ol { border-left: 2px solid var(--line); }
.legal-toc a { display: flex; gap: .45em; padding: 4px 0 4px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.5; }
.legal-toc a:hover { color: var(--action); border-left-color: var(--action); }
.legal-body { max-width: 46em; }
.legal-intro { font-size: 16.5px; }
.legal-body section { margin-top: 48px; }
.legal-body h2 { display: flex; gap: .5em; font-size: 22px; margin-bottom: 16px; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body dl + p, .legal-body p + dl, .legal-body ul + dl, .legal-body dl + ul { margin-top: 14px; }
.legal-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; color: var(--action); }
.legal-toc .legal-num { color: var(--muted); min-width: 1.6em; }
.legal-list { list-style: disc; padding-left: 1.4em; }
.legal-list li + li { margin-top: 6px; }
.legal-list li::marker { color: var(--action); }
.legal-terms { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.legal-terms > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 6px 20px; padding: 14px 18px; }
.legal-terms > div + div { border-top: 1px solid var(--line); }
.legal-terms dt { font-weight: 700; line-height: 1.6; }
.legal-terms dd { margin: 0; }
.legal-body a { overflow-wrap: anywhere; }
.legal-pending { padding: 1px 6px; border-radius: 4px; background: #fbefeb; color: var(--vermilion); font-weight: 700; font-size: .92em; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .legal-toc { position: static; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); }
  .legal-toc ol { border-left: 0; columns: 2 16em; column-gap: 24px; }
  .legal-toc a { padding-left: 0; margin-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .legal-terms > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 960px) {
  .hero-grid, .section-head, .values-grid, .feature-cards, .faq-grid, .price-common, .value-list { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 720px; }
}
@media (max-width: 960px) {
  .sheet-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-row-portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  /* One strip per orientation, swiped sideways, so ten sheets do not make the page ten screens long. */
  .sheet-row, .sheet-row-portrait { display: flex; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
  .sheet-row > li { flex: 0 0 82%; scroll-snap-align: start; }
  .sheet-row-portrait > li { flex-basis: 56%; }
  .sheet-row-portrait { margin-top: 14px; }
  .sheet-row a:hover { transform: none; }
  /* A landscape sheet no wider than the phone would not be larger at all: give it most of the height and let it scroll sideways. */
  .lightbox figure { padding-inline: 12px; }
  .lightbox img.is-wide { width: max(calc(100vw - 24px), min(calc(68dvh * var(--ratio)), var(--full))); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; margin: 0; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
  .steps { --art-h: 196px; }
  .step-list { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .step-list::after { display: none; }
  .art { margin-bottom: 20px; background: var(--ground); border-radius: var(--radius-panel); }
  .step-list > li > :not(.art) { margin-left: 60px; }
  .step-number { position: absolute; left: 0; top: calc(var(--art-h) + 16px); margin: 0 !important; }
  .step-list::before { display: none; }
  .price-common ul { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-actions .button { flex: 1 1 100%; }
}
/* Three plans do not fit beside the item column on a narrow screen: each item sits above its three values, and the
   plan names stay in view under the page header while the rows scroll. */
@media (max-width: 760px) {
  .price-table-wrap { overflow-x: visible; }
  .price-table, .price-table thead, .price-table tbody, .price-table tfoot { display: block; min-width: 0; }
  .price-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-table .price-corner, .price-table tfoot td:first-child { display: none; }
  .price-table thead { position: sticky; top: 69px; z-index: 2; background: var(--paper); }
  .price-table th, .price-table td { padding: 12px 10px; overflow-wrap: anywhere; }
  .price-table tbody th { grid-column: 1 / -1; width: auto; border-bottom: 0; padding-bottom: 2px; }
  .price-table td { font-size: .98rem; }
  .plan { width: auto; }
  /* A plan's name stays whole ("Enterprise" in the third of a phone's width). */
  .price-table .plan-name { font-size: 1rem; overflow-wrap: normal; }
  .plan-price { font-size: 13.5px; }
  .plan-note { font-size: 11.5px; }
  /* The last row is the way in: the button across the full width, then one line about the paid plans. */
  .price-table tbody tr:last-child td.plan-free { border-radius: 0 0 var(--radius-panel) var(--radius-panel); }
  .price-table tfoot tr { grid-template-columns: minmax(0, 1fr); }
  .price-table tfoot td, .price-table tfoot td.plan-free { padding: 16px 0 0; background: none; border-radius: 0; }
  .price-table tfoot td:last-child { display: none; }
  .plan-later { display: block; text-align: center; }
}
@media (max-width: 520px) {
  .price-table .button { padding: 10px 8px; font-size: 13.5px; }
  .brand span { letter-spacing: .04em; }
}

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

/* Open Graph card (rendered once to PNG by scripts/og.mjs) */
.og { margin: 0; width: 1200px; height: 630px; overflow: hidden; position: relative; background: radial-gradient(38% 46% at 78% 62%, rgba(255, 238, 208, .7), rgba(255, 238, 208, 0) 70%), linear-gradient(180deg, #dfe9e3 0%, #eaf0ec 42%, var(--ground) 78%); }
.og-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 250px; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .38), #000 58%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .38), #000 58%); }
.og .cloud, .og .lamp { animation: none; }
.og-card { position: relative; width: 1200px; height: 630px; display: grid; grid-template-columns: 430px 1fr; gap: 40px; align-items: center; padding: 56px 64px; }
.og-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-ja); letter-spacing: .04em; font-weight: 700; font-size: 20px; margin-bottom: 28px; }
.og-brand img { width: 40px; height: 40px; }
.og-title { font-size: 58px; font-weight: 700; line-height: 1.15; font-feature-settings: "palt" 1; word-break: auto-phrase; }
html:not(:lang(ja)):not(:lang(zh)) .og-title { font-size: 54px; line-height: 1.05; letter-spacing: -.02em; }
html:lang(th) .og-title, html:lang(ne) .og-title, html:lang(my) .og-title { font-size: 46px; line-height: 1.4; letter-spacing: 0; }
html:lang(my) .og-title { font-size: 38px; }
.og-lead { margin-top: 24px; color: var(--muted); font-size: 18px; }

