
.brand img{height:30px;width:auto;display:block}html[data-theme="dark"] .brand img{filter:invert(1)}

  :root {
    --bg: #fbfbfd;
    --bg-elev: #ffffff;
    --bg-soft: #f4f5f7;
    --ink: #0a0a0f;
    --ink-2: #1d1d24;
    --muted: #6e6e76;
    --muted-2: #8a8a93;
    --line: rgba(10,10,15,0.08);
    --line-soft: rgba(10,10,15,0.05);
    --accent: oklch(0.62 0.10 240);
    --accent-soft: oklch(0.95 0.025 240);
    --accent-ink: oklch(0.45 0.12 240);
    --shadow-sm: 0 1px 2px rgba(15,17,23,0.04);
    --shadow-md: 0 1px 2px rgba(15,17,23,0.04), 0 8px 24px -8px rgba(15,17,23,0.08);
    --shadow-lg: 0 1px 2px rgba(15,17,23,0.04), 0 24px 60px -20px rgba(15,17,23,0.14);
    --r-md: 18px;
    --r-lg: 24px;
    --r-xl: 32px;
    --font-display: "SF Pro Text", "SF Pro TH", "SFProThai", system-ui, sans-serif;
    --font-thai: "SF Pro TH", "SF Pro Text", "SFProThai", system-ui, sans-serif;
    --font-mono: "SF Pro Text", ui-monospace, monospace;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
  }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

  .container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 28px; }

  /* NAV */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(251,251,253,0.75);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
  .brand-mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, var(--ink) 0%, #2a2a35 100%);
    display: grid; place-items: center; color: white; font-weight: 700; font-size: 15px; letter-spacing: -0.04em;
  }
  .nav-back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: var(--bg-soft); color: var(--ink-2);
    font-size: 14px; font-weight: 500;
    transition: background .2s;
  }
  .nav-back:hover { background: oklch(0.93 0.005 240); }

  /* HERO */
  .hero {
    padding: 72px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 900px 400px at 50% -10%, oklch(0.97 0.03 240) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
  .hero .eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-ink);
    font-weight: 500;
    margin-bottom: 18px;
  }
  .hero h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
  }
  .hero h1 .accent {
    background: linear-gradient(135deg, var(--accent-ink), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero p {
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 640px;
    text-wrap: pretty;
  }
  .hero p strong { color: var(--ink-2); font-weight: 600; }

  /* STEPS */
  .steps-section { padding: 32px 0 24px; }
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .step-card {
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 36px 32px 32px;
    transition: all .25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 240px;
    box-shadow: var(--shadow-sm);
  }
  .step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(10,10,15,0.12);
  }
  .step-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 100% 0%, oklch(0.96 0.025 240) 0%, transparent 35%);
    pointer-events: none;
  }
  .step-num-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
  }
  .step-num {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 500;
  }
  .step-num strong {
    display: block;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: var(--ink);
    margin-top: 6px;
    text-transform: none;
  }
  .step-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--ink);
    color: white;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px -6px rgba(10,10,15,0.3);
  }
  .step-icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
  .step-body { position: relative; z-index: 1; margin-top: auto; }
  .step-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0 0 6px;
  }
  .step-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
  }
  .step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
  }
  .step-tag {
    padding: 5px 11px;
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink-2);
    font-weight: 500;
  }

  /* CTA */
  .cta-wrap {
    padding: 48px 0 20px;
    text-align: center;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    transition: all .2s ease;
    white-space: nowrap;
  }
  .btn-primary { background: var(--ink); color: white; box-shadow: 0 4px 14px -4px rgba(10,10,15,0.3); }
  .btn-primary:hover { background: #2a2a35; transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(10,10,15,0.35); }
  .btn-soft { background: var(--bg-soft); color: var(--ink); padding: 12px 18px; font-size: 14.5px; }
  .btn-soft:hover { background: oklch(0.93 0.005 240); }

  /* WARNING NOTE */
  .warning {
    margin: 24px auto 0;
    padding: 18px 22px;
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    border-left: 3px solid var(--accent);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    text-align: left;
  }
  .warning .row + .row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-soft); }
  .warning strong { color: var(--ink-2); font-weight: 600; }
  .warning .en {
    color: var(--muted-2);
    font-size: 12px;
    font-style: italic;
  }

  /* SLA */
  .sla-section {
    padding: 56px 0 80px;
    border-top: 1px solid var(--line-soft);
    margin-top: 48px;
  }
  .sla-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
  }
  .sla-head .eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-ink);
    font-weight: 500;
    margin-bottom: 12px;
  }
  .sla-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
  }

  .sla-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
  }
  .sla-card {
    background: linear-gradient(135deg, var(--ink) 0%, #2a2a38 100%);
    color: white;
    border-radius: var(--r-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  .sla-card::after {
    content: "";
    position: absolute;
    right: -100px; top: -100px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, oklch(0.65 0.13 240 / 0.3) 0%, transparent 60%);
    pointer-events: none;
  }
  .sla-card .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 10px;
  }
  .sla-card .big {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0 0 10px;
  }
  .sla-card .big small {
    font-size: 0.35em;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-left: 8px;
    letter-spacing: 0;
  }
  .sla-card .sub {
    font-size: 14.5px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 380px;
    position: relative;
    z-index: 1;
  }

  .sla-hotline {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
  }
  .sla-hotline-head {
    display: flex; align-items: center; gap: 12px;
  }
  .sla-hotline-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    display: grid; place-items: center;
  }
  .sla-hotline-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
  .sla-hotline h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
  }
  .sla-hotline h4 small {
    display: block; font-weight: 400; font-size: 12px;
    color: var(--muted); margin-top: 2px;
    text-transform: uppercase; letter-spacing: 0.05em;
  }
  .sla-hotline-num {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .sla-hotline-num small {
    display: block; font-weight: 500; font-size: 13px; color: var(--accent-ink); margin-top: 4px;
    letter-spacing: 0;
  }
  .sla-hotline-meta {
    font-size: 13px;
    color: var(--muted);
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    line-height: 1.6;
  }

  /* FOOTER */
  footer {
    padding: 32px 0;
    border-top: 1px solid var(--line-soft);
    font-size: 13px; color: var(--muted);
  }
  .footer-inner {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .steps-grid { grid-template-columns: 1fr; }
    .sla-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .container { padding: 0 18px; }
    .hero { padding: 40px 0 24px; }
    .step-card { padding: 28px 22px 24px; min-height: 0; }
    .step-num strong { font-size: 44px; }
    .nav-back span { display: none; }
  }

  /* ============ DARK MODE ============ */
  html[data-theme="dark"]{
    --bg:#0b0b0e; --bg-elev:#161619; --bg-soft:#1e1e22;
    --ink:#f4f4f7; --ink-2:#d6d6db; --muted:#9b9ba3; --muted-2:#74747c;
    --line:rgba(255,255,255,0.11); --line-soft:rgba(255,255,255,0.06);
    --accent-soft:oklch(0.32 0.07 240); --accent-ink:oklch(0.80 0.10 240);
  }
  html[data-theme="dark"] .nav{ background:rgba(11,11,14,0.72); }
  html[data-theme="dark"] .brand-mark{ background:linear-gradient(135deg,#f4f4f7,#c6c6ce); color:#0b0b0e; }
  /* solid controls: bg auto-lightens via --ink, flip text dark + fix hardcoded dark hovers */
  html[data-theme="dark"] .btn-primary{ color:#0b0b0e; }
  html[data-theme="dark"] .btn-primary:hover, html[data-theme="dark"] .btn-primary:hover:not(:disabled){ background:#ffffff; }
  html[data-theme="dark"] .chip.active{ color:#0b0b0e; }
  html[data-theme="dark"] .seg-item.active{ color:#0b0b0e; }
  html[data-theme="dark"] .form-section-num{ color:#0b0b0e; }
  html[data-theme="dark"] .meta-chip.years{ color:#0b0b0e; }
  html[data-theme="dark"] .checker-step label .num{ color:#0b0b0e; }
  html[data-theme="dark"] .faq-item.open .faq-q .icon{ color:#0b0b0e; }
  html[data-theme="dark"] .step-icon{ color:#0b0b0e; }
  html[data-theme="dark"] .tl-marker.done{ color:#0b0b0e; }
  html[data-theme="dark"] .confirm-check{ color:#0b0b0e; }
  html[data-theme="dark"] .consent-item input[type="checkbox"]:checked{ background:var(--ink); border-color:var(--ink); }
  html[data-theme="dark"] .consent-item input[type="checkbox"]:checked::after{ border-color:#0b0b0e; }
  /* hover backgrounds that hardcode light oklch */
  html[data-theme="dark"] .nav-back:hover,
  html[data-theme="dark"] .btn-soft:hover,
  html[data-theme="dark"] .chip:hover,
  html[data-theme="dark"] .consent-item:hover,
  html[data-theme="dark"] .help-chip:hover,
  html[data-theme="dark"] .theme-toggle:hover{ background:rgba(255,255,255,0.08); }
  /* feature panels: pin dark so white text reads */
  html[data-theme="dark"] .summary-head,
  html[data-theme="dark"] .order-head,
  html[data-theme="dark"] .sla-card,
  html[data-theme="dark"] .bento-card.dark{ background:linear-gradient(135deg,#17171c 0%,#26262e 100%); }
  html[data-theme="dark"] .bento-card.dark{ border-color:rgba(255,255,255,0.1); }
  /* light gradient surfaces */
  html[data-theme="dark"] .hero::before{ background:radial-gradient(ellipse 900px 400px at 50% -10%,oklch(0.30 0.06 240) 0%,transparent 60%); }
  html[data-theme="dark"] .applecare-art{ background:radial-gradient(circle at 30% 25%,oklch(0.32 0.06 240) 0%,transparent 50%),radial-gradient(circle at 75% 80%,oklch(0.30 0.06 220) 0%,transparent 55%),linear-gradient(140deg,var(--bg-elev) 0%,oklch(0.20 0.01 240) 100%); }
  html[data-theme="dark"] .dev-visual{ background:radial-gradient(circle at 30% 25%,oklch(0.30 0.05 240) 0%,transparent 55%),linear-gradient(160deg,var(--bg-elev) 0%,oklch(0.20 0.01 240) 100%); }
  html[data-theme="dark"] .dev-visual::before{ background:repeating-linear-gradient(135deg,transparent 0px,transparent 24px,rgba(255,255,255,0.05) 24px,rgba(255,255,255,0.05) 25px); }
  html[data-theme="dark"] .dev-silhouette svg{ color:var(--ink); }
  /* theme toggle button */
  .theme-toggle{ width:40px; height:40px; border-radius:999px; background:var(--bg-soft); display:grid; place-items:center; color:var(--ink-2); transition:all .2s ease; flex-shrink:0; }
  .theme-toggle:hover{ background:oklch(0.93 0.005 240); }
  .theme-toggle svg{ width:18px; height:18px; }
  .theme-toggle .sun{ display:none; }
  html[data-theme="dark"] .theme-toggle .moon{ display:none; }
  html[data-theme="dark"] .theme-toggle .sun{ display:block; }

