/* YOSORO public pages — Direction B (brand-preserving partial renewal).
   Loaded only by the B layout (routes/ui_b.php). Profile pages and the account area keep app.css. */

:root {
  /* Brand (inherited from current app.css) */
  --ink: #102022;
  --ink-2: #123a3d;          /* deep teal used in current LP dark sections */
  --aqua: #91e9e5;           /* current --aqua: surfaces & decoration only */
  --aqua-50: #ebf8f6;
  --aqua-100: #d4f2ee;
  --sun: #f7c857;            /* current LP yellow: limited accent */
  /* New: text-safe teal (5.8:1 on paper) replacing #42b8b7 / #388887 for text */
  --teal-700: #1b6b6a;
  --teal-600: #23807f;
  --paper: #f6f8f6;
  --surface: #ffffff;
  --line: #dce5e2;
  --line-strong: #c4d2ce;
  --muted: #4f6266;          /* 6.1:1 on paper (current #617073 / #6b8184 were 4.9 / 3.9) */
  --danger: #b42318;
  --ok: #17774a;
  --warn-bg: #fff6dd;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-1: 0 1px 2px rgba(16, 32, 34, .06), 0 2px 8px rgba(16, 32, 34, .04);
  --shadow-2: 0 12px 32px rgba(16, 32, 34, .12);
  --focus: 0 0 0 3px var(--surface), 0 0 0 5px var(--teal-600);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.75; letter-spacing: .01em;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; display: block; }
fieldset { min-width: 0; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
/* Japanese headings: break at phrase boundaries (auto-phrase), keep kinsoku rules (no line starting with 。) */
h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: .02em; word-break: normal; word-break: auto-phrase; overflow-wrap: break-word; text-wrap: balance; line-break: strict; }
summary, .price-chips li, .badge, .btn { text-wrap: balance; line-break: strict; }
p, li, dd, label, .lead { text-wrap: pretty; line-break: strict; }
.check-row > span { text-wrap: balance; }
p { margin: 0; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 248, 246, .92); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--aqua-50); color: var(--teal-700); }
.nav .nav-biz { color: var(--teal-700); }
.header-cta { display: flex; gap: var(--s2); align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-btn { display: block; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .site-header .container { gap: var(--s3); }
  .mobile-nav[data-open="true"] { display: block; border-top: 1px solid var(--line); background: var(--surface); }
  .mobile-nav ul { list-style: none; margin: 0; padding: var(--s2) 0 var(--s4); }
  .mobile-nav a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 4px; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
  .mobile-nav a::after { content: "›"; color: var(--muted); font-size: 20px; }
}
@media (max-width: 420px) {
  .header-cta .btn { padding-inline: 14px; font-size: 13px; }
  .logo img { height: 24px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 800; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--aqua-50); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--aqua-50); }
.btn-aqua { background: var(--aqua); color: var(--ink); }
.btn-aqua:hover { background: #7fdfda; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #f1c5c0; }
.btn-danger-ghost:hover { background: #fdf0ee; color: var(--danger); }

/* Typography helpers */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); }
.lead { font-size: 17px; color: var(--muted); line-height: 1.9; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.6; }
.h-display { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; line-height: 1.18; letter-spacing: .01em; }
.h-section { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.h-card { font-size: 18px; font-weight: 800; }
.accent { color: var(--teal-700); }
.nowrap { white-space: nowrap; }

/* Sections */
.section { padding: var(--s9) 0; }
.section-tight { padding: var(--s8) 0; }
.section-head { max-width: 720px; margin-bottom: var(--s7); display: grid; gap: var(--s3); }
.section-head.center { margin-inline: auto; text-align: center; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-aqua { background: var(--aqua-50); }
.band-dark { background: var(--ink-2); color: #eaf6f4; }
.band-dark .eyebrow { color: var(--aqua); }
.band-dark .lead, .band-dark .muted { color: #c3dcd8; }
.band-dark .panel .muted, .band-dark .panel .hint { color: var(--muted); }
@media (max-width: 720px) { .section { padding: 72px 0; } .section-tight { padding: 48px 0; } .section-head { margin-bottom: var(--s6); } }

/* Grid */
.grid { display: grid; gap: var(--s5); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g2, .g4 { grid-template-columns: 1fr; } }

/* Card / Panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow-1); }
.panel-lg { padding: var(--s6); border-radius: var(--radius-l); }
.panel h3 { margin-bottom: var(--s2); }
.num { font-size: 12px; font-weight: 800; color: var(--teal-700); letter-spacing: .1em; }
.icon-chip { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--aqua-50); color: var(--teal-700); margin-bottom: var(--s3); }
.icon-chip svg { width: 22px; height: 22px; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--aqua-50); color: var(--teal-700); line-height: 1.4; white-space: nowrap; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-sun { background: #fdf0c8; color: #6b4e00; }
.badge-ok { background: #e3f4ea; color: var(--ok); }
.badge-warn { background: #fff1d6; color: #7a4b00; }
.badge-off { background: #eef1f0; color: #4f6266; }
.badge-danger { background: #fdecea; color: var(--danger); }
.badge-tbd { background: #fff6dd; color: #6b4e00; border: 1px dashed #d9b64a; white-space: normal; }
.choice > * { min-width: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* NFC Card visual (the "touchable" card) */
.card-stage { perspective: 1200px; display: grid; place-items: center; }
.nfc-card {
  --rx: 0deg; --ry: 0deg;
  width: min(100%, 380px); aspect-ratio: 85.6 / 54; border-radius: 18px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 0%, #1d5457 0%, var(--ink-2) 45%, #0c2426 100%);
  color: #e9f7f5; box-shadow: 0 30px 60px -20px rgba(16, 32, 34, .55), 0 2px 0 rgba(255, 255, 255, .06) inset;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease; transform-style: preserve-3d;
}
.nfc-card::before { /* subtle sheen */
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .10) 45%, transparent 60%);
  transform: translateX(var(--sheen, -30%)); transition: transform .25s ease; pointer-events: none;
}
.nfc-card .wave { position: absolute; left: -10%; right: -10%; bottom: 18%; height: 40%; opacity: .55; }
.nfc-card .c-logo { position: absolute; left: 7%; top: 12%; height: 13%; width: auto; filter: brightness(1.15); }
.nfc-card .c-chip { position: absolute; right: 7%; top: 12%; width: 13%; aspect-ratio: 1; color: var(--aqua); }
.nfc-card .c-label { position: absolute; left: 7%; bottom: 10%; font-size: clamp(9px, 2.2vw, 11px); letter-spacing: .22em; font-weight: 700; color: #a9d7d2; }
.nfc-card.is-plain { background: linear-gradient(160deg, #ffffff, #eef3f2); color: var(--ink); box-shadow: 0 30px 60px -24px rgba(16, 32, 34, .35), 0 0 0 1px var(--line) inset; }
.nfc-card.is-plain .c-label { color: #7b8c8f; }
.nfc-card.is-plain .c-chip { color: #9bb3b0; }
.nfc-card.is-original { background: linear-gradient(135deg, #f7c857, #f29e6d 55%, #e2677a); color: #2b1a10; }
.nfc-card.is-original .c-label { color: rgba(43, 26, 16, .75); }
.nfc-card.is-original .c-chip { color: rgba(43, 26, 16, .7); }
.nfc-card .c-name { position: absolute; left: 7%; top: 42%; font-size: clamp(14px, 3.6vw, 18px); font-weight: 800; letter-spacing: .08em; }
.nfc-card.is-sm { width: 100%; border-radius: 12px; }

.ripple { position: absolute; width: 120px; height: 120px; right: -10px; top: -10px; pointer-events: none; }
.ripple span { position: absolute; inset: 0; border: 2px solid var(--aqua); border-radius: 50%; opacity: 0; animation: ripple 2.8s ease-out infinite; }
.ripple span:nth-child(2) { animation-delay: .9s; }
.ripple span:nth-child(3) { animation-delay: 1.8s; }
@keyframes ripple { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

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

/* Phone mock */
.phone { width: 230px; aspect-ratio: 9 / 18.5; background: var(--ink); border-radius: 36px; padding: 10px; box-shadow: var(--shadow-2); position: relative; }
.phone-screen { height: 100%; border-radius: 28px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.ps-banner { height: 28%; background: linear-gradient(135deg, var(--aqua), #c9f3ef); }
.ps-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-600); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; margin: -32px auto 6px; border: 4px solid #fff; }
.ps-name { text-align: center; font-weight: 800; font-size: 15px; line-height: 1.3; }
.ps-role { text-align: center; font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.ps-link { margin: 4px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 10px; font-weight: 700; padding: 7px 10px; }
.ps-save { margin: 8px 12px 0; background: var(--aqua); border-radius: 10px; font-size: 11px; font-weight: 800; text-align: center; padding: 9px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); counter-reset: step; }
.steps li { position: relative; padding-left: 56px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps.horizontal { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--s5); }
.steps.horizontal li { padding: 56px 0 0; }
@media (max-width: 860px) { .steps.horizontal { grid-template-columns: 1fr; } .steps.horizontal li { padding: 0 0 0 56px; } }

/* Pricing */
.price { font-size: 34px; font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
.price small { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.price-sub { font-size: 13px; color: var(--muted); }
.plan { display: flex; flex-direction: column; gap: var(--s3); position: relative; }
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--shadow-2); }
.plan .ribbon { position: absolute; top: -13px; left: 20px; }
.plan ul { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.55; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--aqua-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231b6b6a' stroke-width='2.4'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan li.no { color: #5f7073; }
.plan li.no::before { background: #f0f3f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%239aa9ab' stroke-width='2.2'%3E%3Cpath d='M6 10h8'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 800; letter-spacing: .04em; background: #fafcfb; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.compare th[scope="row"] { font-size: 14px; color: var(--ink); font-weight: 700; background: transparent; white-space: normal; }
.compare td { text-align: center; }
.yes { color: var(--teal-700); font-weight: 800; }
.no-mark { color: #66777a; }

/* FAQ */
.faq { display: grid; gap: var(--s3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 800; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal-700); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 20px 20px; color: var(--muted); }

/* Forms */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 800; }
.field .hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface);
}
.input:focus { border-color: var(--teal-600); outline: none; box-shadow: 0 0 0 3px rgba(35, 128, 127, .2); }
.req { color: var(--danger); font-size: 12px; margin-left: 4px; }
.opt { color: var(--muted); font-size: 12px; font-weight: 700; margin-left: 4px; }

/* Choice cards (radio) */
.choices { display: grid; gap: var(--s3); }
.choice { position: relative; display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4); border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--teal-600); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-1); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice .c-price { font-weight: 800; font-size: 18px; text-align: right; white-space: nowrap; }
.choice .c-price small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.choice .check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: none; }
@media (max-width: 560px) {
  .panel-lg { padding: 20px 16px; }
  .choice { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 12px; }
  .choice .c-price { grid-column: 2; text-align: left; }
}

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.stepper button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--ink); border-radius: 999px; }
.stepper button:hover { background: var(--aqua-50); }
.stepper input { width: 64px; height: 48px; text-align: center; border: 0; font: inherit; font-size: 18px; font-weight: 800; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.toggle-row { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.toggle-row input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--ink); flex: none; }

/* Summary (sticky order) */
.summary { position: sticky; top: 88px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: 16px; color: var(--ink); font-weight: 800; }
.summary .total-v { font-size: 26px; font-weight: 800; }
.summary .sum-note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.summary .ship-row dd { font-weight: 800; color: var(--ink); }

/* Mobile order bar
   - Shown only when JS runs (html.js); without JS the in-page summary is the only source of totals.
   - Space for the bar is always reserved (no layout jump when it hides).
   - Hidden while the in-page summary is visible, or while a form field has focus (soft keyboard). */
:root { --bar-h: 0px; }
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .summary { position: static; }
  html.js:has(body.has-mobile-bar) { --bar-h: calc(72px + env(safe-area-inset-bottom)); scroll-padding-bottom: calc(var(--bar-h) + 16px); }
  html.js body.has-mobile-bar { padding-bottom: var(--bar-h); }
  html.js .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; min-height: 72px;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -8px 24px rgba(16, 32, 34, .08);
    transform: translateY(0); transition: transform .2s ease, visibility .2s; visibility: visible;
  }
  html.js .mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
  .mobile-bar .mb-total { font-weight: 800; font-size: 20px; line-height: 1.2; }
  .mobile-bar .mb-total small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
}

/* Status (準備中 / 近日販売予定) */
.badge-prep { background: #eef1f0; color: #33464a; border: 1px solid var(--line-strong); }
.badge-soon { background: #fdf0c8; color: #5e4500; border: 1px solid #ecd27c; }
.status-strip { background: #eef6f4; border-bottom: 1px solid var(--aqua-100); }
.status-strip .container { display: flex; gap: 12px; align-items: center; padding: 12px 0; flex-wrap: wrap; font-size: 14px; line-height: 1.6; }
.status-strip p { flex: 1 1 280px; }
.status-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.6; }
.status-line .badge { flex: none; }
.coming-soon { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: #fafcfb; }
.coming-soon .nfc-card { width: 96px; border-radius: 10px; }
@media (max-width: 560px) { .coming-soon { grid-template-columns: 64px 1fr; } .coming-soon .nfc-card { width: 64px; } }

/* Hero price chips */
.price-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.price-chips li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 700; line-height: 1.4; }
.price-chips li strong { font-size: 15px; font-weight: 800; }
.price-chips li.free { border-color: #b9e2cc; background: #effaf4; }

/* Photo slots (real product photos go here; mockups are labelled) */
.photo-slot { margin: 0; display: grid; gap: 6px; }
.photo-slot img { width: 100%; height: auto; border-radius: 12px; }
.photo-slot figcaption { font-size: 12px; color: var(--muted); }
.mock-note { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* Spec list */
.spec { display: grid; grid-template-columns: 9em 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.spec dt { color: var(--muted); font-weight: 700; }
.spec dd { margin: 0; }
@media (max-width: 480px) { .spec { grid-template-columns: 1fr; gap: 2px; } .spec dd { margin-bottom: 10px; } }

/* Notices */
.login-notice { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); font-size: 14px; }
.login-notice p { flex: 1 1 260px; }

/* Danger actions (red is never the only signal: label + confirm text) */
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-danger-outline { background: var(--surface); color: var(--danger); border-color: #e3a29b; }
.btn-danger-outline:hover { background: #fdf0ee; color: #8f1c13; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.danger-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: currentColor; flex: none; }
.danger-mark::after { content: "!"; color: #fff; font-size: 12px; font-weight: 900; line-height: 1; }
.btn-danger .danger-mark { background: #fff; }
.btn-danger .danger-mark::after { color: var(--danger); }

/* Now / next */
.now-next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.now-next ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
@media (max-width: 720px) { .now-next { grid-template-columns: 1fr; } }

/* Disclosure */
.disclosure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.disclosure > summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; min-height: 52px; font-weight: 800; position: relative; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal-700); font-weight: 400; }
.disclosure[open] > summary::after { content: "−"; }
.disclosure > .table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* Hero visual is smaller on phones so the 3 steps come up sooner */
@media (max-width: 560px) {
  .hero-visual { min-height: 250px !important; }
  .hero-visual .phone { width: 160px; border-radius: 28px; padding: 8px; }
  .hero-visual .phone-screen { border-radius: 22px; }
  .hero-visual .nfc-card { width: 70% !important; }
}

/* Mobile copy trimming helper */
@media (max-width: 560px) { .hide-sm { display: none !important; } }

/* Callouts */
.note { border-radius: var(--radius); padding: var(--s4) var(--s5); background: var(--aqua-50); border: 1px solid var(--aqua-100); font-size: 14px; line-height: 1.7; }
.note-warn { background: var(--warn-bg); border-color: #f0dfa8; color: #4d3a00; }
.note strong { font-weight: 800; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s6); font-size: 14px; color: var(--muted); background: var(--surface); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s6); }
.site-footer h4 { font-size: 13px; color: var(--ink); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .copy { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* Utility */
.stack > * + * { margin-top: var(--s4); }
.stack-s > * + * { margin-top: var(--s2); }
.stack-l > * + * { margin-top: var(--s6); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { text-align: center; }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }

/* Card order page (moved from the prototype's page-level styles) */
.order-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .order-grid { grid-template-columns: 1fr; } }
.order-step { border: 1px solid var(--line); margin: 0; }
.choice .nfc-card.is-sm .c-logo { height: 18%; }
.choice .nfc-card.is-sm .c-name { font-size: 9px; top: 30%; }
.choice .nfc-card.is-sm .c-label, .coming-soon .c-label { font-size: 7px; letter-spacing: .15em; }
.coming-soon .c-logo { height: 18%; }
.toggle-row.is-disabled { opacity: .55; cursor: not-allowed; }
.preview-original-name { display: none; }
.nfc-card.is-original .preview-original-name { display: block; }
.nfc-card.is-original .c-logo, .nfc-card.is-plain .c-logo, .nfc-card.is-plain .wave { display: none; }

/* Order confirmation */
.confirm { max-width: 760px; }
.confirm .spec { grid-template-columns: 10em 1fr; }
.confirm .amount dd { text-align: right; font-weight: 700; }
.confirm .amount .total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 16px; font-weight: 800; color: var(--ink); }
.confirm .amount .total-v { font-size: 24px; }
@media (max-width: 480px) { .confirm .spec { grid-template-columns: 1fr; } .confirm .amount { grid-template-columns: 1fr auto; } .confirm .amount dd { margin-bottom: 0; } }

/* Application states: flash messages, validation errors, header for signed-in users */
.flash { width: min(100% - 32px, var(--container)); margin: var(--s4) auto 0; border-radius: var(--radius); padding: var(--s3) var(--s4); background: #e3f4ea; border: 1px solid #b9e2cc; color: #0f4d31; font-size: 14px; font-weight: 700; }
.errors { border-radius: var(--radius); padding: var(--s4) var(--s5); background: #fdecea; border: 1px solid #f1c5c0; color: #7a1a12; font-size: 14px; line-height: 1.7; }
.errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.field-error { color: var(--danger); font-size: 13px; font-weight: 700; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.header-cta form { margin: 0; }
.mobile-nav form { margin: 0; }
.mobile-nav button.linklike { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.btn[data-busy="true"] { opacity: .6; cursor: progress; }
/* YOSORO Business page — phones: same copy, tighter layout (fewer screens before pricing and contact) */
@media (max-width: 560px) {
  .biz-page .section { padding: 52px 0; }
  .biz-page .section-tight { padding: 40px 0; }
  .biz-page .section-head { margin-bottom: 20px; }
  .biz-page #features .grid { gap: 10px; }
  .biz-page #features .panel { padding: 16px; }
  .biz-page #features .icon-chip { display: none; }
  .biz-page #features .panel h3 { font-size: 16px; }
  .biz-page .steps.horizontal { gap: 14px; }
  .biz-page #hero .panel { padding: 14px !important; }
  .biz-page #hero .nfc-card { display: none; }
  .biz-page #plans .grid.g3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .biz-page #plans .grid.g3 .panel { padding: 12px; }
  .biz-page #plans .grid.g3 .price { font-size: 20px; }
  .biz-page #plans .grid.g3 .price small { display: block; margin: 2px 0 0; font-size: 12px; }
  .biz-page #plans .grid.g3 .small { font-size: 12px; line-height: 1.4; }
  .biz-page #plans .plan ul { font-size: 13px; }
}
.biz-page #contact .errors a, .biz-page #contact .note a { color: var(--teal-700); }
/* Review fixes (2026-10-19): product name and description on separate lines, no overlapping label on the small
   original-card mockup, logo link large enough to tap */
.choice .stack-s > * { display: block; }
.choice .nfc-card.is-sm.is-original .c-label { display: none; }
.logo { min-height: 44px; }
.toggle-row .stack-s > * { display: block; }

/* YOSORO Gift v2: purchase type on the card order page (address only for own orders, gift terms only for gifts).
   Without JavaScript both blocks are shown; the server ignores the address for gift purchases. */
.purpose-choices { display: grid; gap: var(--s3); }
.choice.purpose { grid-template-columns: 1fr; }
html.js form[data-purpose="self"] .gift-only { display: none; }
html.js form[data-purpose="gift"] .self-only { display: none; }
.gift-terms { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 14px; }
.gift-code-value { font-size: 18px; letter-spacing: .06em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* Short desktop screens: keep the sticky order summary (and its submit button) within the viewport */
@media (min-width: 961px) and (max-height: 900px) { .summary .card-stage { display: none; } }