/* ============================================================
   DekKeng Landing — "สมุดแบบฝึกหัด" (Premium Workbook)
   Mali (display, handwritten warmth) + IBM Plex Sans Thai (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Mali:wght@400;500;600;700&family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* paper & ink */
  --paper: #FFFDF8;
  --paper-deep: #FBF7EE;
  --card: #FFFFFF;
  --ink: #2D2A26;
  --ink-soft: #6B6357;
  --rule: #DCE6F0;        /* faint notebook ruling */
  --margin-line: #E8A7A0; /* classic red margin line */

  /* chalkboard green family */
  --green: #5C9E6F;
  --green-deep: #3D7355;
  --green-pale: #E6F1E5;

  /* brick orange accent */
  --orange: #DF7A47;
  --orange-deep: #C25E2E;
  --orange-pale: #FBEADD;

  /* sticky note yellow */
  --note: #FCEFA8;
  --note-deep: #F5DE6E;

  /* line green */
  --line: #06C755;

  --shadow-sm: 0 2px 10px rgba(61,58,52,.07);
  --shadow: 0 10px 30px rgba(61,58,52,.10);
  --shadow-lg: 0 20px 50px rgba(61,58,52,.16);

  --radius: 18px;
  --maxw: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  /* paper grain + faint ruled lines layered */
  background-image:
    radial-gradient(rgba(61,58,52,.015) 1px, transparent 1px);
  background-size: 4px 4px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .display { font-family: 'Mali', cursive; line-height: 1.35; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── handwritten underline (SVG draws on scroll) ── */
.ul-draw { position: relative; white-space: nowrap; }
.ul-draw svg {
  position: absolute; left: -2%; bottom: -.45em; width: 104%; height: .5em;
  overflow: visible; pointer-events: none;
}
.ul-draw svg path {
  fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  transition: stroke-dashoffset 1s cubic-bezier(.65,0,.35,1) .15s;
}
.ul-draw.drawn svg path { stroke-dashoffset: 0; }

/* doodle star/check helpers */
.doodle { position: absolute; pointer-events: none; opacity: .9; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 82px; display: flex; align-items: center;
  background: rgba(253,251,243,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px dashed rgba(107,99,87,.22);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-logo img { height: 56px; width: 56px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-sm); }
.nav-logo b { font-family: 'Mali'; font-size: 1.45rem; font-weight: 700; color: var(--green-deep); }
.nav-cta {
  font-family: 'Mali'; font-weight: 600; font-size: .92rem;
  background: var(--orange); color: #fff;
  padding: 9px 22px; border-radius: 50px;
  box-shadow: 0 4px 0 var(--orange-deep);
  transition: transform .12s, box-shadow .12s;
}
.nav-cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-deep); }

/* ============================================================
   BETA NOTICE — sticky note มุมบนขวา
   ============================================================ */
.beta-note {
  position: fixed; top: 96px; right: 22px; z-index: 95;
  width: 300px; background: var(--note);
  padding: 16px 18px 16px; border-radius: 5px;
  border-left: 5px solid var(--orange);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  animation: betaIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
.beta-note::before { /* tape */
  content: ''; position: absolute; top: -11px; left: 50%; margin-left: -38px;
  width: 76px; height: 22px; background: rgba(223,122,71,.32); transform: rotate(-3deg);
}
@keyframes betaIn { from { opacity: 0; transform: rotate(2deg) translateY(-16px) scale(.95); } }
.beta-tag {
  display: inline-block; font-family: 'Mali'; font-weight: 700; font-size: .92rem;
  color: var(--orange-deep); margin-bottom: 6px;
}
.beta-note p { font-family: 'Mali'; font-size: .85rem; color: #6e5a23; line-height: 1.6; margin: 0 0 12px; }
.beta-note b { color: var(--ink); }
.beta-line {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--line); color: #fff;
  font-family: 'Mali'; font-weight: 600; font-size: .82rem;
  padding: 9px; border-radius: 10px;
  box-shadow: 0 3px 0 #04a847; transition: transform .12s, box-shadow .12s;
}
.beta-line:hover { transform: translateY(2px); box-shadow: 0 1px 0 #04a847; }
.beta-line svg { width: 18px; height: 18px; }
.beta-close {
  position: absolute; top: 5px; right: 8px;
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: #b59a4a;
  width: 22px; height: 22px; border-radius: 50%;
  transition: background .15s, color .15s;
}
.beta-close:hover { background: rgba(0,0,0,.08); color: var(--ink); }
.beta-note.hide { display: none; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; padding: 96px 0; }
.eyebrow {
  font-family: 'Mali'; font-weight: 600; font-size: .9rem;
  color: var(--orange-deep); letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.eyebrow::before { content: '✎'; font-size: 1.1rem; }
.title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; margin-bottom: 14px; }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 580px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.center .eyebrow { justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 140px; padding-bottom: 80px;
  background:
    linear-gradient(180deg, transparent, transparent 95%, rgba(220,230,240,.5)),
    repeating-linear-gradient(180deg, transparent, transparent 37px, var(--rule) 37px, var(--rule) 38px);
  position: relative;
}
.hero::before { /* red margin line */
  content: ''; position: absolute; top: 0; bottom: 0; left: max(48px, 7%);
  width: 2px; background: var(--margin-line); opacity: .5;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Mali'; font-weight: 500; font-size: .88rem;
  background: var(--note); color: #7a5a18;
  padding: 6px 16px; border-radius: 50px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
  transform: rotate(-1.5deg);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 20px; }
.hero h1 .hl { color: var(--green-deep); }
.hero-sub { font-size: 1.14rem; color: var(--ink-soft); margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.device-hint {
  margin-top: 16px; font-family: 'Mali'; font-size: .9rem; font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-pale); color: var(--green-deep);
  padding: 7px 16px; border-radius: 50px;
}

.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 14px;
  transition: transform .14s, box-shadow .14s;
  box-shadow: var(--shadow);
}
.store-btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .st-sm { font-size: .68rem; opacity: .75; line-height: 1.1; }
.store-btn .st-lg { font-family: 'Mali'; font-size: 1.02rem; font-weight: 600; line-height: 1.2; }

/* hero device: taped polaroid */
.hero-photo { position: relative; justify-self: center; }
.tape {
  position: absolute; z-index: 3; width: 110px; height: 30px;
  background: rgba(245,222,110,.55);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.tape.t1 { top: -14px; left: 22%; transform: rotate(-7deg); }
.tape.t2 { bottom: -12px; right: 20%; transform: rotate(5deg); }
.photo-frame {
  background: #fff; padding: 14px 14px 52px; border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.4deg);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  max-width: 360px;
}
.photo-frame:hover { transform: rotate(0deg) scale(1.02); }
.photo-frame img { border-radius: 3px; }
.photo-frame figcaption {
  font-family: 'Mali'; text-align: center; font-size: 1rem;
  color: var(--ink-soft); margin-top: 14px;
}
.hero-doodle-1 { top: -38px; right: -10px; width: 70px; color: var(--orange); transform: rotate(12deg); }
.hero-doodle-2 { bottom: 30px; left: -42px; width: 56px; color: var(--green); }

/* trust strip */
.trust {
  display: flex; gap: 38px; flex-wrap: wrap; margin-top: 40px;
}
.trust-item { display: flex; align-items: baseline; gap: 8px; }
.trust-item b { font-family: 'Mali'; font-size: 1.7rem; font-weight: 700; color: var(--green-deep); }
.trust-item span { font-size: .9rem; color: var(--ink-soft); }

/* ============================================================
   STORY — ที่มา
   ============================================================ */
.story { background: var(--paper-deep); }
.story::before, .story::after {
  content: ''; position: absolute; left: 0; right: 0; height: 14px;
}
.story::before { top: 0; background: repeating-linear-gradient(90deg, var(--paper) 0 18px, transparent 18px 36px); opacity: .6; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 36px; }
.story-copy p { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 16px; }
.story-copy strong { color: var(--ink); font-weight: 600; }
.pain-stack { display: flex; flex-direction: column; gap: 16px; }
.pain {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(107,99,87,.07);
  transition: transform .2s;
}
.pain:nth-child(odd) { transform: rotate(-.7deg); }
.pain:nth-child(even) { transform: rotate(.6deg); }
.pain:hover { transform: rotate(0) translateX(6px); }
.pain .pico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.pain.a .pico { background: var(--orange-pale); }
.pain.b .pico { background: var(--note); }
.pain.c .pico { background: var(--green-pale); }
.pain h4 { font-size: 1rem; font-weight: 600; margin-bottom: 3px; }
.pain p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.story-note {
  margin-top: 26px; color: #fff;
  background: linear-gradient(135deg, var(--green-deep), #2F5C43);
  padding: 22px 26px; border-radius: 16px; box-shadow: var(--shadow);
  position: relative;
}
.story-note p { font-size: 1.05rem; margin: 0; color: #fff; font-weight: 500; }
.story-note b { font-family: 'Mali'; font-size: 1.4rem; display: block; margin-top: 8px; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.feat {
  background: var(--card); border-radius: var(--radius);
  padding: 30px 26px; border: 2px solid rgba(107,99,87,.08);
  position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.feat::after { /* corner fold */
  content: ''; position: absolute; top: 0; right: 0;
  border-width: 0 26px 26px 0; border-style: solid;
  border-color: transparent var(--paper-deep) transparent transparent;
}
.feat-ico {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.feat:hover .feat-ico { transform: rotate(-8deg) scale(1.08); }
.ic-1 { background: var(--green-pale); }
.ic-2 { background: var(--orange-pale); }
.ic-3 { background: var(--note); }
.ic-4 { background: #E3EEF7; }
.ic-5 { background: #F3E8F7; }
.ic-6 { background: #FCE3E3; }
.feat-pill {
  display: inline-block; font-family: 'Mali'; font-size: .76rem; font-weight: 600;
  color: var(--orange-deep); background: var(--orange-pale);
  padding: 3px 12px; border-radius: 50px; margin-bottom: 11px;
}
.feat h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 9px; }
.feat p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   DEVICES — เขียนบนหน้าจอ (chalkboard band)
   ============================================================ */
.devices {
  background: var(--green-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.devices::before { /* faint chalk ruling */
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, transparent, transparent 39px, rgba(255,255,255,.05) 39px, rgba(255,255,255,.05) 40px);
  pointer-events: none;
}
.devices .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.devices .eyebrow { color: var(--note-deep); }
.devices .eyebrow::before { content: '✏️'; }
.dev-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; margin-bottom: 16px; }
.dev-copy h2 .chalk-ul { border-bottom: 3px solid var(--orange); padding-bottom: 2px; }
.dev-copy > p { font-size: 1.06rem; color: rgba(255,255,255,.82); margin-bottom: 28px; max-width: 520px; }
.dev-points { display: flex; flex-direction: column; gap: 16px; }
.dev-point {
  display: flex; gap: 15px; align-items: flex-start;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 16px 18px;
  transition: transform .2s, background .2s;
}
.dev-point:hover { transform: translateX(6px); background: rgba(255,255,255,.13); }
.dev-point .dico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.dev-point h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 3px; }
.dev-point p { font-size: .9rem; color: rgba(255,255,255,.72); margin: 0; }
.dev-photo { position: relative; justify-self: center; }
.dev-photo .photo-frame { transform: rotate(2.2deg); max-width: 340px; padding: 12px 12px 46px; }
.dev-photo .photo-frame:hover { transform: rotate(0) scale(1.02); }
.dev-photo .tape { background: rgba(252,239,168,.5); }
.dev-doodle {
  position: absolute; bottom: -28px; right: -26px; width: 96px;
  color: var(--note-deep); transform: rotate(-8deg); pointer-events: none;
}

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.shots { background: var(--paper-deep); }
.shot-group { margin-top: 44px; }
.shot-group + .shot-group { margin-top: 52px; }
.shot-head { font-family: 'Mali'; font-size: 1.15rem; font-weight: 600; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.shot-head .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .9rem;
}
.shot-scroll {
  display: flex; gap: 26px; overflow-x: auto; padding: 14px 4px 24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot-scroll::-webkit-scrollbar { height: 6px; }
.shot-scroll::-webkit-scrollbar-track { background: rgba(107,99,87,.1); border-radius: 6px; }
.shot-scroll::-webkit-scrollbar-thumb { background: var(--green); border-radius: 6px; }
.shot { scroll-snap-align: center; flex-shrink: 0; position: relative; }
.shot .tape {
  width: 84px; height: 26px; top: -10px; left: 50%; margin-left: -42px;
  background: rgba(223,122,71,.32); transform: rotate(-3deg);
}
.shot-card {
  background: #fff; padding: 12px 12px 16px; border-radius: 8px;
  box-shadow: var(--shadow); width: 300px;
  transition: transform .3s;
}
.shot:nth-child(odd) .shot-card { transform: rotate(-1.4deg); }
.shot:nth-child(even) .shot-card { transform: rotate(1.4deg); }
.shot-card:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-lg); }
.shot-card img { border-radius: 4px; }
.shot-cap { font-family: 'Mali'; text-align: center; font-size: .92rem; color: var(--ink-soft); margin-top: 12px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--paper); }
.price-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 26px; max-width: 820px; margin: 52px auto 0; }
.plan {
  background: var(--card); border-radius: 22px; padding: 36px 30px;
  border: 2px solid rgba(107,99,87,.1); position: relative;
}
.plan.free { transform: rotate(-1deg); }
.plan.pro {
  border-color: var(--green); transform: rotate(.8deg);
  box-shadow: 0 0 0 5px var(--green-pale), var(--shadow);
}
.plan-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  font-family: 'Mali'; font-weight: 700; font-size: .82rem;
  background: var(--green); color: #fff; padding: 5px 18px; border-radius: 50px;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.plan-tier { font-family: 'Mali'; font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.plan.free .plan-tier { color: var(--ink-soft); }
.plan.pro .plan-tier { color: var(--green-deep); }
.plan-price { font-family: 'Mali'; font-size: 2.4rem; font-weight: 700; margin-bottom: 2px; }
.plan-price span { font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
.plan-cap { font-size: .85rem; color: var(--ink-soft); margin-bottom: 24px; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.plan-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; }
.plan-list .yes { color: var(--green); flex-shrink: 0; font-weight: 700; }
.plan-list .no { color: #C9C1B4; flex-shrink: 0; font-weight: 700; }
.plan-list li.off { color: var(--ink-soft); }
.plan-list b { color: var(--ink); font-weight: 600; }
.btn-line {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; background: var(--line); color: #fff;
  font-family: 'Mali'; font-weight: 600; font-size: .98rem;
  padding: 13px; border-radius: 13px;
  box-shadow: 0 4px 0 #04a847; transition: transform .12s, box-shadow .12s;
}
.btn-line:hover { transform: translateY(2px); box-shadow: 0 2px 0 #04a847; }
.btn-line svg { width: 22px; height: 22px; }
.btn-ghost {
  display: block; width: 100%; text-align: center;
  font-family: 'Mali'; font-weight: 600; font-size: .95rem;
  color: var(--ink-soft); padding: 13px; border-radius: 13px;
  border: 2px dashed rgba(107,99,87,.25);
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.disclaim { background: var(--paper-deep); padding: 52px 0; text-align: center; }
.disclaim .wrap { max-width: 700px; }
.disclaim-card {
  background: var(--note); border-radius: 16px; padding: 28px 32px;
  box-shadow: var(--shadow-sm); transform: rotate(-.8deg);
  position: relative;
}
.disclaim-card::before {
  content: '📌'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 1.6rem;
}
.disclaim-card p { font-size: .96rem; color: #6e5a23; line-height: 1.85; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding: 60px 0 36px; text-align: center; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo img { height: 46px; width: 46px; border-radius: 12px; object-fit: cover; }
.footer-logo b { font-family: 'Mali'; font-size: 1.5rem; }
.footer-tag { color: rgba(255,255,255,.55); font-size: .95rem; margin-bottom: 30px; }
.footer .btn-line { display: inline-flex; width: auto; padding: 14px 32px; border-radius: 50px; font-size: 1.05rem; margin-bottom: 36px; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.3); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; } .d5 { transition-delay: .40s; } .d6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ul-draw svg path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero::before { display: none; }
  .hero-actions, .trust { justify-content: center; }
  .hero-badge { display: inline-flex; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .devices .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .devices .eyebrow { justify-content: center; }
  .dev-copy > p { margin-left: auto; margin-right: auto; }
  .dev-point { text-align: left; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  section { padding: 64px 0; }

  /* nav: keep logo + cta on one row, shrink */
  .nav { height: 70px; }
  .nav-logo img { height: 46px; width: 46px; }
  .nav-logo b { font-size: 1.12rem; }
  .nav-cta { padding: 8px 16px; font-size: .85rem; }

  /* body clears fixed nav so hero ไม่ซ้อน nav แม้ปิด banner */
  body { padding-top: 70px; }

  /* beta note: in-flow banner at top (ไม่ fixed บังจอบนมือถือ) */
  .beta-note {
    position: static; width: auto; margin: 14px 12px 0;
    transform: none; animation: none; border-radius: 11px;
  }
  .beta-note::before { display: none; }
  .beta-note p { font-size: .8rem; }

  /* hero: tighter type, photo never overflows */
  .hero { padding-top: 24px; padding-bottom: 56px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-sub { font-size: 1rem; }
  .hero-badge { font-size: .8rem; padding: 6px 14px; white-space: normal; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
  .photo-frame { max-width: 84vw; padding: 11px 11px 42px; }
  .photo-frame figcaption, .shot-cap { font-size: .88rem; }

  /* trust: center wrap, even spacing */
  .trust { gap: 18px 28px; }
  .trust-item b { font-size: 1.45rem; }

  /* titles */
  .title { font-size: 1.55rem; }
  .lead { font-size: 1rem; }

  /* features single column */
  .feat-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .feat { padding: 26px 22px; }

  /* devices band */
  .dev-copy h2 { font-size: 1.5rem; }
  .dev-copy > p { font-size: 1rem; }
  .dev-photo .photo-frame { max-width: 84vw; }
  .dev-doodle { width: 72px; right: -8px; bottom: -20px; }

  /* screenshots */
  .shot-scroll { gap: 18px; }
  .shot-card { width: 78vw; max-width: 300px; }

  /* pricing: keep Free vs Premium side-by-side, shrink to fit */
  .price-grid { grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
  .plan { padding: 22px 14px 20px; border-radius: 16px; }
  .plan.free, .plan.pro { transform: none; }
  .plan.pro { box-shadow: 0 0 0 3px var(--green-pale), var(--shadow-sm); }
  .plan-badge { font-size: .68rem; padding: 4px 11px; top: -13px; }
  .plan-tier { font-size: 1.05rem; }
  .plan-price { font-size: 1.55rem; }
  .plan-price span { font-size: .72rem; }
  .plan-cap { font-size: .74rem; margin-bottom: 16px; }
  .plan-list { gap: 9px; margin-bottom: 18px; }
  .plan-list li { font-size: .8rem; gap: 7px; }
  .btn-line { font-size: .8rem; padding: 11px 8px; gap: 6px; }
  .btn-line svg { width: 18px; height: 18px; flex-shrink: 0; }
  .btn-ghost { font-size: .82rem; padding: 11px 8px; }

  /* disclaimer / footer */
  .disclaim-card { padding: 24px 22px; transform: none; }
  .footer .btn-line { padding: 13px 26px; font-size: 1rem; }
}

/* very small phones */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.75rem; }
  .title { font-size: 1.4rem; }
  .trust { gap: 14px 22px; }
  .trust-item b { font-size: 1.3rem; }
  .plan { padding: 18px 10px 16px; }
  .plan-price { font-size: 1.35rem; }
  .plan-list li { font-size: .75rem; }
  .btn-line { font-size: .74rem; }
  .btn-ghost { font-size: .76rem; }
}
