/* veymelo.com home (owner 2026-11-15: "อยากได้หน้าเว็บแบบ scale.com") · loads after site.css (which keeps the install guide)
   White top bar → a black rounded stage with one big line → a black page: product scenes as glass panes that open as
   they scroll in, a statement that lights up word by word, a hairline grid of features, three steps, one last card. */
/* brand palette (owner 2026-11-16): light like the Facebook / IG images — warm white page, white cards, charcoal text, champagne gold */
:root { --ink: #1b1a18; --ink2: #22201d; --ink3: #2a2824; --cream: #f3efe7; --paper: #fbf9f5; --gold: #c9a96e; --gold-d: #a0814c; }
body.home { background: var(--paper); }
.home main { padding: 0; }
.home .top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; will-change: transform, opacity; gap: 20px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; padding-top: calc(env(safe-area-inset-top) + 12px); padding-bottom: 12px; }
.home .brand { font-weight: 600; font-size: 15px; gap: 9px; text-decoration: none; display: inline-flex; align-items: center; }
.home .brand img { border-radius: 8px; }
.top-go { display: flex; align-items: center; gap: 8px; }
.home .pill.line-dark { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(27,26,24,0.18); }
.buyer-go { gap: 8px; max-width: 46vw; }
.buyer-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-pic { flex: none; width: 22px; height: 22px; margin-left: -8px; border-radius: 50%; overflow: hidden; }
.buyer-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 420px) { .home .top { gap: 10px; } .home .brand span { display: none; } .home .pill.small { padding: 0 14px; font-size: 13.5px; } }
.nav { flex: 1; display: flex; gap: 26px; margin-left: 18px; font-size: 14px; }
.nav a { color: #55555c; text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } }
.home .pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border: 0; border-radius: 22px; background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 500; text-decoration: none; box-shadow: none; transition: transform .2s, background .2s; }
.home .pill.small { height: 36px; padding: 0 18px; font-size: 14px; }
.home .pill.light { background: var(--gold); color: var(--ink); }
.home .pill.line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(27,26,24,0.3); }
.home .pill:active { transform: scale(0.97); }
.nw { white-space: nowrap; }

/* the eyebrow: a small corner mark and a quiet label */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: rgba(27,26,24,0.55); font-size: 13px; }
.eyebrow i { color: var(--gold-d); width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(-90deg); }

/* ── intro: the stage card that turns into the first scene ─────── */
.intro { position: relative; height: 270vh; background: var(--paper); }
.intro-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1400px; perspective-origin: 50% 38%; background: rgb(var(--bg, 251,249,245)); }
.stage { position: absolute; left: 12px; top: 66px; width: calc(100% - 24px); height: min(86svh, 820px); overflow: hidden; display: grid; place-items: center; border-radius: 28px; background: #fff; color: var(--ink); text-align: center; isolation: isolate;
  transform-style: preserve-3d; box-shadow: inset 0 0 0 1px rgba(201,169,110,calc(0.35 + var(--ring, 0))), 0 30px 80px rgba(120,96,50,calc(0.06 + var(--ring, 0) * 0.4)); will-change: transform, width, height; }
.stage-grid { position: absolute; inset: -40% -10% 0; z-index: -1; opacity: calc(.55 * var(--hero, 1));
  background-image: linear-gradient(rgba(201,169,110,0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(201,169,110,0.11) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(700px) rotateX(58deg) translateY(var(--gy, 0px)); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 70%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 70%, #000 0%, transparent 75%); }
.stage-in { position: absolute; left: 50%; top: 50%; width: min(980px, calc(100vw - 48px)); padding: 0 0 30px; opacity: var(--hero, 1); transform: translate(-50%, -50%) scale(var(--sc, 1)); }
.calm .stage-in { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; padding: 80px 0 100px; }
.stage h1 { margin: 22px 0 0; font-size: clamp(42px, 8.4vw, 104px); line-height: 1.08; font-weight: 500; letter-spacing: -0.025em; }
.stage .lead { max-width: 640px; margin: 26px auto 0; color: rgba(27,26,24,0.62); font-size: clamp(16px, 1.9vw, 19px); line-height: 1.65; }
.stage-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.scroll-cue { position: absolute; right: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 12px; color: rgba(27,26,24,0.7); font-size: 13px; text-decoration: none; opacity: var(--hero, 1); }
.scroll-cue span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(27,26,24,0.3); }
.scroll-cue svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* the shop page drawn on the card once it is small */
.card-art { position: absolute; inset: 0; opacity: var(--art, 0); pointer-events: none; }
.card-art svg, .ghost svg { width: 100%; height: 100%; display: block; fill: none; stroke: rgba(27,26,24,0.38); stroke-width: 1; }
.card-art svg text, .ghost svg text { fill: var(--ink); stroke: none; font-family: "Plex Thai", sans-serif; font-size: 15px; }
.card-art svg text.dim, .ghost svg text.dim { fill: rgba(27,26,24,0.5); font-size: 13.5px; }
.card-art svg .fill, .ghost svg .fill { fill: var(--gold); stroke: none; }
.card-art svg .rows rect, .ghost svg .rows rect, .ghost svg .tiles rect { fill: rgba(201,169,110,0.12); }
/* the two panes behind it */
.ghost { position: absolute; border-radius: 18px; background: rgba(255,255,255,0.78); box-shadow: inset 0 0 0 1px rgba(201,169,110,0.22); opacity: 0; pointer-events: none; will-change: transform, opacity; }
.intro-copy { text-align: center; position: absolute; left: 0; right: 0; bottom: max(6vh, 30px); margin: 0 auto; padding: 0 22px; color: var(--ink); opacity: var(--copy, 0); transform: translateY(calc((1 - var(--copy, 0)) * 30px)); pointer-events: none; }
.intro-copy h2 { margin: 18px 0 0; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.intro-copy p:not(.eyebrow) { margin: 18px auto 0; max-width: 560px; color: rgba(27,26,24,0.58); font-size: 16.5px; line-height: 1.7; }
.intro-copy.live { pointer-events: auto; }
@media (max-width: 600px) { .stage { left: 8px; width: calc(100% - 16px); border-radius: 24px; } .intro-copy p:not(.eyebrow) { font-size: 15px; } }
/* reduced motion: no pinning, the card stays a card and the words sit under it */
.calm .intro { height: auto; padding-bottom: 60px; }
.calm .intro-pin { position: relative; height: auto; overflow: visible; background: none; padding-top: 66px; }
.calm .stage { position: relative; left: auto; top: auto; margin: 0 12px; width: auto; }
.calm .ghost, .calm .card-art { display: none; }
.calm .intro-copy { position: relative; bottom: auto; margin-top: 80px; opacity: 1; transform: none; pointer-events: auto; }
.calm .intro-pin { background: var(--paper); }

/* ── the page under the intro (light since 2026-11-16; the class name stays) ── */
.dark { background: var(--paper); color: var(--ink); overflow-x: clip; }
.dark h2 { margin: 18px 0 0; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.dark h3 { font-size: 17px; font-weight: 500; }
.dark p { color: rgba(27,26,24,0.58); }

/* a chapter: glass panes, then the words under them */
.chapter { max-width: 1040px; margin: 0 auto; padding: 120px 22px 40px; text-align: center; }
.panes { --k: 1; position: relative; height: clamp(250px, 42vw, 420px); perspective: 1400px; perspective-origin: 50% 30%; }
.pane { --o: var(--open, 0); position: absolute; left: 50%; top: 50%; width: min(64%, 440px); aspect-ratio: 32 / 22; border-radius: 18px;
  background: rgba(255,255,255,0.78); box-shadow: inset 0 0 0 1px rgba(201,169,110,0.3), 0 30px 70px rgba(120,96,50,0.12);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: transform .12s linear; }
.pane svg { width: 100%; height: 100%; display: block; fill: none; stroke: rgba(27,26,24,0.38); stroke-width: 1; }
.pane svg text { fill: var(--ink); stroke: none; font-family: "Plex Thai", sans-serif; font-size: 15px; }
.pane svg text.dim { fill: rgba(27,26,24,0.5); font-size: 13.5px; }
.pane svg .fill { fill: var(--gold); stroke: none; }
.pane svg .rows rect, .pane svg .tiles rect, .pane svg .qr rect { fill: rgba(201,169,110,0.12); }
.pane svg .qr rect { fill: var(--ink); stroke: none; }
/* offsets in screen space first, then the tilt: front pane lower right and nearer, back pane upper left and further */
.p1 { transform: translate(-50%, -50%) translate3d(calc((34px + var(--o) * 60px) * var(--k)), calc((22px + var(--o) * 30px) * var(--k)), calc((40px + var(--o) * 70px) * var(--k))) rotateX(16deg) rotateY(-26deg) rotateZ(2deg); background: rgba(255,255,255,0.95); box-shadow: inset 0 0 0 1px rgba(201,169,110,0.55), 0 30px 70px rgba(120,96,50,0.16); }
.p2 { transform: translate(-50%, -50%) rotateX(16deg) rotateY(-26deg) rotateZ(2deg); opacity: calc(0.6 + var(--o) * 0.4); }
.p3 { transform: translate(-50%, -50%) translate3d(calc((-34px - var(--o) * 60px) * var(--k)), calc((-22px - var(--o) * 30px) * var(--k)), calc((-40px - var(--o) * 70px) * var(--k))) rotateX(16deg) rotateY(-26deg) rotateZ(2deg); opacity: calc(0.35 + var(--o) * 0.45); }
@media (max-width: 600px) { .panes { --k: 0.45; } .pane { width: 74%; } .chapter { padding-top: 90px; } }
.copy { max-width: 720px; margin: 46px auto 0; }
.copy p:not(.eyebrow) { margin: 18px auto 0; max-width: 560px; font-size: 16.5px; line-height: 1.7; }

/* the statement */
.say { max-width: 1040px; margin: 0 auto; padding: 140px 22px; }
.glow { margin: 0; padding: clamp(28px, 5vw, 64px); border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1px rgba(201,169,110,0.3); font-size: clamp(30px, 5vw, 60px); line-height: 1.22; font-weight: 500; letter-spacing: -0.02em; color: var(--ink) !important; }
.glow .w { color: rgba(27,26,24,0.16); transition: color .35s; }
.glow .w.on { color: var(--ink); }
.glow .w.gold.on { color: var(--gold-d); }

/* every shop: a hairline grid */
.all, .steps3 { max-width: 1040px; margin: 0 auto; padding: 40px 22px 120px; text-align: center; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid rgba(27,26,24,0.12); border-left: 1px solid rgba(27,26,24,0.12); text-align: left; }
.cells article { padding: 30px 26px 34px; border-right: 1px solid rgba(27,26,24,0.12); border-bottom: 1px solid rgba(27,26,24,0.12); transition: background .25s; }
.cells article:hover { background: rgba(27,26,24,0.03); }
.cells svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.cells h3 { margin-top: 22px; }
.cells p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; }
@media (max-width: 860px) { .cells { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cells { grid-template-columns: 1fr; } }

/* three steps */
.steps3 ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 56px 0 0; padding: 0; text-align: left; }
.steps3 li { padding: 0 26px 0 0; border-top: 1px solid rgba(27,26,24,0.22); padding-top: 22px; margin-right: 18px; }
.steps3 .n { display: block; width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; color: rgba(27,26,24,0.45); font-size: 13px; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.steps3 h3 { margin-top: 26px; font-size: 20px; }
.steps3 p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; }
@media (max-width: 760px) { .steps3 ol { grid-template-columns: 1fr; gap: 30px; } .steps3 li { margin: 0; } }

/* the last card */
.final { max-width: 1040px; margin: 0 auto; padding: 0 22px 90px; }
.final-card { display: flex; flex-direction: column; align-items: center; padding: clamp(44px, 7vw, 84px) 24px; border-radius: 28px; background: #fff; color: var(--ink); text-align: center; box-shadow: inset 0 0 0 1px rgba(201,169,110,0.3); }
.final-card .app-icon { border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.final-card h2 { margin-top: 24px; }
.final-card p { margin-top: 12px; color: rgba(27,26,24,0.55) !important; font-size: 15px; }
.final-card .pill { background: var(--gold); color: var(--ink); }
.final-card .pill { margin-top: 28px; }

.home .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; max-width: 1040px; margin: 0 auto; padding: 28px 22px calc(env(safe-area-inset-bottom) + 36px); border-top: 1px solid rgba(27,26,24,0.12); color: rgba(27,26,24,0.6); font-size: 13px; }
.home .foot .brand { color: var(--ink); font-size: 14px; }
.home .foot .brand img { border-radius: 6px; }
.home .foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.home .foot a { color: rgba(27,26,24,0.6); text-decoration: none; }

/* things fade up as they come in */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .home .top { position: absolute; transform: none !important; opacity: 1 !important; } .rise { opacity: 1; transform: none; transition: none; } .pane { --o: 1 !important; transition: none; } .glow .w { color: rgba(27,26,24,0.95); } .stage-grid { transform: perspective(700px) rotateX(58deg); } }

/* the bar leaves with the card (owner 2026-11-15: "ไม่ซิงค์กัน อยากให้ทำงานพร้อมๆ กัน"): home.js moves it with the same progress */
.home .top.gone { pointer-events: none; }
.calm .home .top, .calm .top { position: absolute; }

/* fewer words, more pictures (owner 2026-11-15: "ตัวหนังสือเยอะไป อยากให้ใช้ภาพอธิบาย") */
.tiles6 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.tiles6 figure { margin: 0; padding: 22px 18px 18px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px rgba(201,169,110,0.25), 0 10px 30px rgba(120,96,50,0.06); transition: background .25s, transform .25s; }
.tiles6 figure:hover { background: #fffdf8; transform: translateY(-2px); }
.tiles6 svg { width: 100%; height: auto; display: block; fill: none; stroke: rgba(27,26,24,0.5); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tiles6 svg .f { fill: var(--gold); stroke: none; }
.tiles6 svg .f2 { fill: rgba(201,169,110,0.28); stroke: none; }
.tiles6 svg .ok { stroke: #34a853; stroke-width: 3; }
.tiles6 svg .dk { stroke: #fff; stroke-width: 3; }
.tiles6 svg .dash { stroke-dasharray: 4 6; stroke: rgba(27,26,24,0.3); }
.tiles6 svg text { fill: var(--ink); stroke: none; font-family: "Plex Thai", sans-serif; font-size: 15px; }
.tiles6 figcaption { margin-top: 14px; color: var(--ink); font-size: 15px; font-weight: 500; text-align: center; }
@media (max-width: 760px) { .tiles6 { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tiles6 figure { padding: 16px 12px 14px; border-radius: 18px; } .tiles6 figcaption { font-size: 14px; margin-top: 10px; } }

.steps3 .flow { list-style: none; display: flex; text-align: center; align-items: flex-start; justify-content: center; gap: 0; margin: 48px 0 0; padding: 0; }
.steps3 .flow li { margin: 0; padding: 0; border-top: 0; position: relative; flex: 1; max-width: 240px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.steps3 .flow li + li::before { content: ''; position: absolute; top: 56px; left: -30%; width: 60%; border-top: 1px dashed rgba(27,26,24,0.25); }
.flow svg { width: 112px; height: 112px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps3 .flow .n { color: rgba(27,26,24,0.4); font-size: 12px; letter-spacing: 0.14em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.flow b { font-size: 18px; font-weight: 500; }
@media (max-width: 520px) { .flow svg { width: 84px; height: 84px; } .flow li + li::before { top: 42px; } .flow b { font-size: 15.5px; } }
.home .final-card .js-hint { letter-spacing: 0.02em; }
.panes { height: clamp(280px, 48vw, 480px); }

/* the note under "เข้าสู่ระบบ": for buyers, to check their orders (owner 2026-11-15) */
.buyer-wrap { position: relative; display: inline-flex; }
.buyer-tip { position: absolute; top: calc(100% + 14px); right: 0; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(250px, calc(100vw - 32px)); padding: 10px 14px 10px 11px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 12px 30px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.06);
  opacity: 0; transform: translateY(-6px) scale(.96); transform-origin: calc(100% - 30px) 0; animation: tip-in .5s cubic-bezier(.2,.9,.3,1.2) .9s forwards, tip-bob 3.2s ease-in-out 1.6s infinite; }
.buyer-tip::before { content: ''; position: absolute; top: -6px; right: 26px; width: 12px; height: 12px; background: #fff; border-radius: 2px; transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(0,0,0,0.06); }
.buyer-tip svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--ink); fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
.buyer-tip span { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; color: #55555c; }
.buyer-tip b { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.buyer-tip[hidden] { display: none; }
@keyframes tip-in { to { opacity: 1; transform: none; } }
@keyframes tip-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
@media (prefers-reduced-motion: reduce) { .buyer-tip { animation: none; opacity: 1; transform: none; } }

/* the wordmark, set like the brand images (owner 2026-11-16) */
.home .brand span { font-family: "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif; font-weight: 400; font-size: 17px; letter-spacing: .2em; text-transform: uppercase; }
/* the three promises under the hero line: No GP · ทุน 0 บาท · เงินเข้าร้านโดยตรง */
.promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 24px auto 0; padding: 0; list-style: none; }
.promise li { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(201,169,110,0.6); color: var(--gold-d); font-size: 14px; white-space: nowrap; }
.promise li b { font-family: "Didot", "Bodoni 72", Georgia, serif; font-weight: 400; font-size: 16px; letter-spacing: .04em; margin-right: 6px; }
/* No GP: the money goes from the buyer straight to the shop */
.nogp { max-width: 1040px; margin: 0 auto; padding: 40px 22px 120px; text-align: center; }
.nogp .big { margin: 18px 0 0; font-family: "Didot", "Bodoni 72", Georgia, serif; font-weight: 400; font-size: clamp(64px, 11vw, 132px); line-height: 1; letter-spacing: .02em; color: var(--gold-d); }
.nogp .sub { margin: 18px auto 0; max-width: 560px; font-size: clamp(17px, 2vw, 20px); color: var(--ink) !important; }
.money { display: block; width: min(640px, 100%); height: auto; margin: 48px auto 0; fill: none; stroke: rgba(27,26,24,0.55); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.money text { fill: var(--ink); stroke: none; font-family: "Plex Thai", sans-serif; font-size: 21px; }
.money text.dim { fill: rgba(27,26,24,0.55); font-size: 18px; }
.money .g { stroke: var(--gold); stroke-width: 2; }
.money .gf { fill: var(--gold); stroke: none; }
.money .x { stroke: rgba(27,26,24,0.25); stroke-dasharray: 3 6; }
.money text.gt { fill: var(--gold-d); }
@media (max-width: 760px) { .tiles6 { grid-template-columns: repeat(2, 1fr); } }
.home .foot .social { display: inline-flex; align-items: center; gap: 6px; }
.home .foot .social svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
