/* ─────────────────────────────────────────────────────────────
   Rayzia — shared "site chrome" for utility pages
   (/pricing, /legal/*). Light theme, Inter, blue accent — the
   SAME design tokens as the landing (landing/styles.css) so these
   pages read as one product, not a different site.
   ───────────────────────────────────────────────────────────── */
:root {
  --ink:       #14151A;
  --ink-2:     #2C2E36;
  --muted:     #62656E;
  --muted-2:   #8A8D97;
  --line:      #E7E8EC;
  --line-2:    #EFF0F3;
  --bg:        #FFFFFF;
  --bg-soft:   #F7F7F9;
  --bg-soft-2: #F1F2F5;

  --accent:    #0d99ff;
  --accent-d:  #0072d6;
  --accent-h:  #38b6ff;
  --on-accent: #ffffff;
  --ok:        #2e9e4f;

  --radius:   16px;
  --container: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 1px 2px rgba(20,21,26,.06), 0 2px 8px rgba(20,21,26,.05);
  --shadow-md: 0 8px 24px rgba(20,21,26,.08), 0 2px 8px rgba(20,21,26,.05);
  --grad-brand: linear-gradient(100deg, #38b6ff, #0d99ff);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap.prose { max-width: 760px; }

/* ── nav ─────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; flex: none; display: block; border-radius: 9px; box-shadow: 0 6px 16px -6px rgba(13,153,255,.55); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-links a { padding: 8px 13px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--bg-soft-2); color: var(--ink); }
.nav-links a.on { color: var(--accent); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── buttons (match landing .btn family) ─────────────────────── */
.btn {
  --pad: 10px 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; font-family: inherit;
  border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { --pad: 14px 24px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(13,153,255,.7); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(13,153,255,.85); transform: translateY(-2px); }
.btn-soft { background: var(--bg-soft-2); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: #fff; border-color: var(--muted-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft-2); }
.btn.disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }

/* ── generic page scaffolding ────────────────────────────────── */
.page { padding: 8px 0 64px; }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; margin-bottom: 12px; }

/* ── hero (pricing) ──────────────────────────────────────────── */
.hero { text-align: center; padding: 54px 0 10px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.03em; text-wrap: balance; }
.hero p { color: var(--muted); font-size: 17px; max-width: 58ch; margin: 0 auto 14px; }
.hero .free-note { color: var(--ok); font-size: 14.5px; font-weight: 600; }

/* ── pricing plans ───────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 30px 0 8px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.pro { border-color: rgba(13,153,255,.5); box-shadow: var(--shadow-md); position: relative; }
.plan.pro .pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: var(--on-accent); font: 700 10.5px/1 "Inter", sans-serif; letter-spacing: .09em; padding: 6px 13px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(13,153,255,.7); }
.plan h2 { margin: 0 0 4px; font-size: 16px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 13px; color: var(--muted-2); font-weight: 500; }
.plan .alt { color: var(--muted-2); font-size: 12.5px; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14.5px; color: var(--muted); flex: 1; }
.plan li { padding: 5px 0 5px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan li.dim { color: var(--muted-2); }
.plan li.dim::before { content: "–"; color: var(--muted-2); font-weight: 500; }

/* pricing CTA — alias to the .btn look */
.cta { display: block; text-align: center; border-radius: 11px; padding: 12px 16px; font: 600 15px/1.3 "Inter", sans-serif; text-decoration: none; cursor: pointer; border: 1px solid var(--line); color: var(--ink); background: var(--bg-soft-2); transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.cta:hover { border-color: var(--muted-2); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cta.accent { background: var(--grad-brand); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 20px -8px rgba(13,153,255,.7); }
.cta.accent:hover { box-shadow: 0 12px 28px -8px rgba(13,153,255,.85); }
.cta.disabled { opacity: .5; cursor: default; pointer-events: none; }

/* ── content blocks / compare table ──────────────────────────── */
section.block { padding: 44px 0 6px; }
section.block h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 18px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 520px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); color: var(--muted); }
td:first-child { color: var(--ink); }
tr:last-child td { border-bottom: none; }
/* pricing compare table centres the plan columns; prose tables stay left */
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.y { color: var(--ok); font-weight: 700; }
.n { color: var(--muted-2); }
.p { color: var(--accent); font-weight: 600; }

/* ── FAQ / details ───────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); }
details p { color: var(--muted); font-size: 14.5px; margin: 10px 0 2px; max-width: 78ch; }

/* ── legal prose ─────────────────────────────────────────────── */
.legal h1 { font-size: clamp(28px, 4.5vw, 36px); letter-spacing: -0.025em; margin: 32px 0 4px; }
.legal .updated { color: var(--muted-2); font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-size: 18px; letter-spacing: -0.01em; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--muted); max-width: 72ch; }
.legal p b, .legal li b { color: var(--ink); }
.legal ul { padding-inline-start: 22px; }
.legal li { margin: 4px 0; }
.legal .tablewrap { margin: 16px 0; }
.legal td { vertical-align: top; }
.legal td:first-child { font-weight: 600; white-space: nowrap; }
.legal code { background: var(--bg-soft-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 13px; }

/* ── footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.foot-inner { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.foot-brand .brand-mark { width: 28px; height: 28px; }
.foot-brand .brand-name { font-size: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--ink-2); font-size: 14px; transition: color .15s; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { margin-left: auto; color: var(--muted-2); font-size: 13.5px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── SEO content / category landing pages (/svg-editor, /vector-editor, …) ── */
.lp-hero { text-align: center; padding: 56px 0 6px; }
.lp-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.lp-lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 62ch; margin: 0 auto 22px; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-shot { max-width: 960px; margin: 36px auto 0; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md); overflow: hidden; }
.lp-shot img { width: 100%; height: auto; display: block; }
.content { max-width: 760px; margin: 0 auto; }
.content section { padding: 32px 0 0; }
.content h2 { font-size: clamp(22px, 3vw, 27px); letter-spacing: -0.02em; margin: 0 0 12px; }
.content p { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; margin: 0 0 14px; }
.content .faq { margin-top: 10px; }
.content ol { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; padding-left: 24px; margin: 0 0 14px; }
.content ol li { margin: 10px 0; }
.content ol li b { color: var(--ink); }
.lp-related { max-width: 760px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.lp-related a { margin-right: 16px; white-space: nowrap; }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .foot-copy { margin-left: 0; width: 100%; }
}
