/* ToMo Bots landing page. Pastels and the orange accent come from the app (ToMoStyle). */
:root {
  --cream: #FDF5EA;
  --cream-2: #FBEEDD;
  --paper: #FFFDF8;
  --ink: #2B2540;
  --muted: #6D6580;
  --line: #EBDDCB;
  --orange: #D4561B;
  --orange-ink: #C2410C;
  --violet: #7C5CE6;
  --sky: #D6EBFF;
  --mint: #DFF5CD;
  --peach: #FFE3CC;
  --lav: #E8DFFF;
  --butter: #FFF1BF;
  --radius: 36px;
  --shadow: 0 18px 40px -18px rgba(76, 52, 30, .28);
  --display: "Mitr", "Noto Sans Thai", system-ui, sans-serif;
  --body: "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 18px/1.7 var(--body); overflow-x: clip;
  /* a faint felt grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.22; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(30px, 4.6vw, 50px); }
h3 { font-size: 23px; }
p { margin: 0; }

/* language switching: every string is written twice */
html[lang="th"] .en, html[lang="en"] .th { display: none !important; }
html[lang="en"] body { font-size: 17.5px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 12px; z-index: 99; }
.skip:focus { left: 12px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: 15px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 26px; border-radius: 999px; border: 0;
  font: 600 17px/1.2 var(--display); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .lang button:focus-visible, .nav a:focus-visible, summary:focus-visible, .rail:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 8px 18px -8px rgba(43,37,64,.6); }
.btn-sm { min-height: 42px; padding: 6px 18px; font-size: 15px; }
.btn-store { background: var(--ink); color: #fff; padding: 8px 26px 8px 20px; text-align: left; box-shadow: inset 0 -3px 0 rgba(0,0,0,.28), 0 10px 22px -10px rgba(43,37,64,.7); }
.btn-store svg { width: 28px; height: 28px; }
.btn-store > span { display: flex; flex-direction: column; font-size: 21px; line-height: 1.05; }
.btn-store small { font: 500 12px/1.3 var(--body); opacity: .8; }
.btn-store.on-dark { background: #fff; color: var(--ink); cursor: default; }
.btn-store.on-dark:hover { transform: none; }
.btn-soft { background: #fff; color: var(--ink); box-shadow: inset 0 -3px 0 var(--line), 0 8px 20px -12px rgba(76,52,30,.4); }
.btn-soft svg { color: var(--orange); }
.btn-white { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }

.pill {
  display: inline-block; padding: 6px 18px; border-radius: 999px; margin-bottom: 16px;
  background: var(--lav); color: #5B3FC4; font: 500 15px/1.4 var(--display);
}
.pill-peach { background: var(--peach); color: #A8461B; }
.pill-lav { background: #fff; color: #5B3FC4; }
.pill-mint { background: var(--mint); color: #3D6B1F; }
u {
  text-decoration: none; color: var(--orange);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='8' viewBox='0 0 26 8'%3E%3Cpath d='M0 4 Q6.5 0 13 4 T26 4' fill='none' stroke='%23E8692E' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 100% / 26px 8px;
  padding-bottom: 9px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.sec-head { margin-bottom: 44px; }
.sub { color: var(--muted); margin-top: 14px; font-size: 18px; }
.sec-head.center .sub { max-width: 640px; margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(253,245,234,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(235,221,203,.7); }
.top-inner { width: min(1200px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { width: 150px; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font: 500 15px/1 var(--display); }
.nav a:hover { background: rgba(255,255,255,.8); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.lang button { border: 0; background: none; font: 600 13px/1 var(--display); color: var(--muted); padding: 8px 11px; border-radius: 999px; cursor: pointer; min-width: 40px; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* hero */
.hero { padding: 56px 0 40px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 16px/1.4 var(--display); color: var(--violet); margin-bottom: 18px; }
.kicker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(232,105,46,.18); }
.kicker.light { color: #CDBEFF; }
h1 { font-size: clamp(40px, 6.4vw, 74px); line-height: 1.14; }
h1 em { font-style: normal; color: var(--orange); position: relative; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .22em; background: var(--butter); border-radius: 99px; z-index: -1; }
.lead { font-size: 20px; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

.hero-art { position: relative; min-height: 560px; }
.blob { position: absolute; inset: 4% 0 10% 6%; border-radius: 44% 56% 52% 48% / 50% 42% 58% 50%; background: radial-gradient(circle at 30% 30%, #fff 0, var(--lav) 40%, var(--sky) 100%); }
.hero-phone { position: absolute; width: 46%; right: 8%; top: 0; border-radius: 34px; box-shadow: 0 0 0 9px #1F1B2E, var(--shadow); transform: rotate(4deg); }
.hero-group { position: absolute; width: 104%; left: -6%; bottom: 0; filter: drop-shadow(0 16px 18px rgba(76,52,30,.22)); }
.bubble { position: absolute; padding: 10px 16px; border-radius: 20px 20px 20px 6px; background: #fff; font: 500 15px/1.35 var(--display); box-shadow: var(--shadow); max-width: 230px; }
.bubble.b1 { left: 0; top: 14%; border-radius: 20px 20px 6px 20px; background: var(--ink); color: #fff; }
.bubble.b2 { left: 10%; top: 31%; }

/* video */
.video-sec { padding: 60px 0 80px; }
.player { position: relative; max-width: 1000px; margin-inline: auto; border-radius: var(--radius); padding: 12px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.player video { width: 100%; aspect-ratio: 16/9; display: block; border-radius: 26px; background: var(--cream-2); }

/* problem */
.problem { padding: 70px 0; }
.problem-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.problem-art img, .final img { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.pains { list-style: none; padding: 0; margin: 28px 0 26px; display: grid; gap: 12px; }
.pains li { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 22px; padding: 14px 20px; box-shadow: 0 6px 18px -12px rgba(76,52,30,.35); }
.pains b { font-size: 24px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--cream-2); flex: none; }
.answer { font: 500 22px/1.4 var(--display); }
.answer strong { color: var(--orange); }

/* bots */
.bots { padding: 90px 0; background: var(--paper); border-radius: 64px; margin-inline: 12px; }
.bot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.bot { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; padding: 28px 28px 28px 18px; border-radius: var(--radius); overflow: hidden; }
.c-sky { background: var(--sky); } .c-mint { background: var(--mint); } .c-peach { background: var(--peach); } .c-lav { background: var(--lav); }
.bot-img { max-height: 250px; width: auto; margin-inline: auto; filter: drop-shadow(0 14px 14px rgba(60,40,30,.2)); }
.bot h3 { font-size: 30px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.role { font: 500 15px/1.3 var(--display); color: var(--muted); }
.bot p { margin-top: 10px; font-size: 16.5px; line-height: 1.65; }
.chat { margin-top: 14px; display: grid; gap: 8px; font-size: 15px; }
.chat p { margin: 0; padding: 9px 14px; border-radius: 18px; max-width: 92%; line-height: 1.45; font-size: 15px; }
.chat .me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.chat .it { background: #fff; border-bottom-left-radius: 6px; }
.tag { display: inline-block; margin-top: 14px !important; padding: 6px 14px; border-radius: 999px; background: #fff; font: 500 14px/1.3 var(--display) !important; color: #A8461B; }

/* how */
.how { padding: 100px 0 80px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border-radius: var(--radius); padding: 30px 26px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 24px; }
.step-shot { background: var(--cream-2); border-radius: 26px; padding: 22px 0 0; overflow: hidden; height: 330px; }
.step:nth-child(1) .step-shot { background: var(--sky); } .step:nth-child(2) .step-shot { background: var(--peach); } .step:nth-child(3) .step-shot { background: var(--lav); }
.step-shot img { width: 62%; margin-inline: auto; border-radius: 22px 22px 0 0; box-shadow: 0 0 0 6px #1F1B2E; }
.no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font: 600 18px/1 var(--display); margin-bottom: 12px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16.5px; }
.try { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.try > span { font: 500 16px/1 var(--display); color: var(--muted); margin-right: 4px; }
.try p { background: #fff; border-radius: 999px; padding: 9px 18px; font-size: 15.5px; box-shadow: inset 0 0 0 1.5px var(--line); }

/* together */
.together { padding: 40px 0 90px; }
.together-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; background: var(--lav); border-radius: 56px; padding: 50px 56px; }
.together-art { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.together-art img { width: 46%; filter: drop-shadow(0 14px 14px rgba(60,40,30,.2)); }
.together-art img + img { width: 52%; margin-left: -6%; }

/* screens */
.screens { padding: 40px 0 90px; }
.rail { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px max(16px, calc((100vw - 1160px) / 2)) 30px; scrollbar-width: thin; }
.rail figure { margin: 0; flex: 0 0 250px; scroll-snap-align: center; text-align: center; }
.rail img { border-radius: 30px; box-shadow: 0 0 0 7px #1F1B2E, var(--shadow); }
.rail figcaption { margin-top: 20px; font: 500 16px/1.3 var(--display); }

/* privacy */
.privacy { padding: 90px 0; background: var(--paper); border-radius: 64px; margin-inline: 12px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.cards article { background: var(--cream); border-radius: 28px; padding: 26px 22px; }
.cards b { font-size: 30px; display: block; margin-bottom: 10px; }
.cards h3 { font-size: 20px; }
.cards p { color: var(--muted); font-size: 15.5px; margin-top: 8px; line-height: 1.6; }

/* faq */
.faq { padding: 100px 0 80px; }
details { background: #fff; border-radius: 24px; margin-bottom: 12px; box-shadow: 0 6px 18px -14px rgba(76,52,30,.4); }
summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; font: 500 18px/1.45 var(--display); position: relative; border-radius: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font: 500 20px/1 var(--display); color: var(--orange); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--muted); font-size: 16.5px; }

/* final */
.final { padding: 30px 0 70px; }
.final-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #3A2E66, #2B2540 70%); color: #fff; border-radius: 56px; padding: 40px 56px; overflow: hidden; }
.final-inner img { -webkit-mask-image: none; mask-image: none; background: var(--cream); border-radius: 50%; padding: 6%; }
.final h2 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 30px; }

/* footer */
.foot { padding: 30px 0 50px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; color: var(--muted); font-size: 15px; }
.foot nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.copy { width: 100%; font-size: 13.5px; }

/* gentle plush bob */
@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 5.5s ease-in-out infinite; }
  .bob.d1 { animation-delay: -1.4s; } .bob.d2 { animation-delay: -2.8s; } .bob.d3 { animation-delay: -4.1s; }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* responsive */
@media (max-width: 1020px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero-inner, .problem-inner, .together-inner, .final-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; aspect-ratio: 1 / .95; max-width: 560px; margin-inline: auto; width: 100%; }
  .bot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .problem-art { max-width: 440px; margin-inline: auto; }
  .together-inner, .final-inner { padding: 36px 26px; text-align: center; }
  .together-art { max-width: 380px; margin-inline: auto; }
  .final-inner img { max-width: 280px; margin-inline: auto; }
  .final .actions { justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hide-sm { display: none; }
  .brand img { width: 124px; }
  .hero { padding-top: 30px; }
  .lead { font-size: 18px; }
  .btn { width: 100%; }
  .bubble { font-size: 13px; padding: 8px 12px; max-width: 170px; }
  .bubble.b2 { top: 27%; left: 4%; }
  .bot { grid-template-columns: 1fr; padding: 24px 22px; text-align: left; }
  .bot-img { max-height: 210px; }
  .cards { grid-template-columns: 1fr; }
  .bots, .privacy { border-radius: 40px; margin-inline: 6px; padding: 64px 0; }
  .together-inner, .final-inner { border-radius: 40px; }
  .rail figure { flex-basis: 210px; }
  .player { padding: 6px; border-radius: 24px; }
  .player video { border-radius: 18px; }
  .foot nav { margin-left: 0; }
  .step-shot { height: 290px; }
}
