@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("assets/noto-sans-thai.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC;
}

:root {
  color-scheme: light;
  --paper: #f2f9ff;
  --white: #ffffff;
  --ink: #101e40;
  --muted: #435772;
  --forest: #06263b;
  --forest-light: #114860;
  --gold: #ffd074;
  --rule: #cde3ef;
  --display: "Bricolage Grotesque", "DM Sans", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 5.4vw, 84px);
}

:root:lang(th) {
  --display: "Noto Sans Thai", "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Noto Sans Thai", "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1; }
h2 { font-size: clamp(2.5rem, 4.2vw, 4.15rem); font-weight: 760; letter-spacing: -.055em; }
h3 { font-size: 1.45rem; font-weight: 740; letter-spacing: -.035em; }
:lang(th) body { line-height: 1.65; }
:lang(th) h2, :lang(th) h3 { line-height: 1.23; letter-spacing: -.012em; }
:lang(th) h2 { font-size: clamp(1.95rem, 3.75vw, 3.65rem); }
:lang(th) h3 { font-size: clamp(1.14rem, 1.7vw, 1.35rem); }
a { color: inherit; text-underline-offset: .23em; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-block-start: 1.4rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #206c57; outline-offset: 5px; }

.container { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.section { padding-block: clamp(48px, 5.5vw, 78px); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; z-index: 2; inset: 12px auto auto 12px; padding: 12px; background: var(--white); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #33778c;
  font-size: .745rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow .brand-avatar { --avatar-size: 28px; }

.site-header { background: var(--paper); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; font: 780 1.55rem/.98 "Bricolage Grotesque", sans-serif; letter-spacing: -.045em; }
[data-site-name], [data-brand-name] { overflow-wrap: anywhere; }
.brand-caption { display: block; margin-top: 4px; color: var(--muted); font: 600 .65rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
:lang(th) .brand-caption, :lang(th) .eyebrow { letter-spacing: .03em; }
.brand-avatar {
  --avatar-size: 42px;
  display: inline-grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  flex: 0 0 var(--avatar-size);
  width: var(--avatar-size);
  height: var(--avatar-size);
  padding: 2px;
  border: 1px solid #ffd88b;
  border-radius: 50%;
  background: #f6faff;
  box-shadow: 0 0 0 1px #153b51, 0 2px 6px #08253640;
  overflow: hidden;
}
.brand-avatar img { width: 100%; height: 100%; min-width: 0; min-height: 0; border-radius: 50%; object-fit: contain; }
.brand-avatar:empty::before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd074 55%, transparent 61%) 71% 38% / 13% 13%,
    radial-gradient(circle, #ffd074 55%, transparent 61%) 63% 64% / 13% 13%,
    linear-gradient(#ffd074, #ffd074) 32% center / 33% 9%,
    linear-gradient(#ffd074, #ffd074) 37% center / 9% 33%,
    linear-gradient(145deg, #205978, #08263d);
  background-repeat: no-repeat;
}
.pause-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 38px); }
.main-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .875rem; font-weight: 650; color: var(--muted); text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); text-decoration: underline; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .8em; min-height: 46px; padding: .68em 1.15em; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 700; text-decoration: none; width: fit-content; transition: background-color .18s, border-color .18s; }
.button [aria-hidden], .text-link [aria-hidden] { font-size: 1.08em; }
.button-outline { border-color: #b5c5b9; }
.button-outline:hover { background: #e6ede4; border-color: #8fa396; }
.header-actions { display: flex; align-items: center; justify-self: end; grid-column: -2 / -1; grid-row: 1; gap: 10px; }
.header-support { white-space: nowrap; }
.language-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 700 .8rem var(--body);
}
.language-toggle:hover { background: #e6ede4; }
.button-gold { background: var(--gold); color: var(--forest); }
.button-gold:hover { background: #ffde9d; }
.button-dark { background: var(--forest); color: var(--white); }
.button-dark:hover { background: #275247; }
.text-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.hero { background: var(--forest); color: var(--white); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 66px);
  padding-block: clamp(34px, 4.35vw, 70px);
}
.hero-copy { padding-block: 24px; }
.hero .eyebrow, .checklist-panel .eyebrow { color: var(--gold); }
.hero h1 { font: 780 clamp(2.8rem, 5.7vw, 6rem)/.98 "Bricolage Grotesque", sans-serif; letter-spacing: -.065em; }
.hero h1 em { display: block; font-style: normal; color: var(--gold); }
.hero-copy > p:not(.eyebrow) { max-width: 37ch; margin-top: 24px; font-size: clamp(1rem, 1.5vw, 1.18rem); color: #d8e5dc; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; }
.hero :focus-visible, .checklist-panel :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.hero-photo { position: relative; border-radius: 18px; overflow: hidden; align-self: stretch; min-height: clamp(350px, 34vw, 488px); }
.hero-photo img { position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: 57% 55%; }

.intro { display: grid; grid-template-columns: 1.32fr minmax(0, .68fr); align-items: end; gap: 20px 44px; margin-bottom: 32px; }
.intro > p { max-width: 41ch; padding-bottom: 4px; color: var(--muted); font-size: 1.05rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { padding: clamp(20px, 2.5vw, 34px); border: 1px solid var(--rule); background: var(--white); border-radius: 16px; }
.guide-card p { margin-top: 12px; color: var(--muted); max-width: 33ch; }
.tip-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 24px; border-radius: 13px; }
.tip-odds { background: #dfede2; color: #22614c; font: 750 1.28rem var(--display); }
.tip-limits { background: #faebca; color: #62451e; }
.tip-pause { background: #e7e8f1; color: #464963; }
.clock-icon { position: relative; width: 19px; height: 19px; border: 1.7px solid currentColor; border-radius: 50%; }
.clock-icon::before { content: ""; position: absolute; inset: 3px auto auto 7px; width: 5px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.tip-pause .pause-icon { width: 10px; height: 15px; }

.checklist-panel {
  display: grid;
  grid-template-columns: 1fr .65fr 1.45fr;
  gap: 28px;
  align-items: center;
  border-radius: 21px;
  padding: clamp(24px, 3vw, 42px);
  background: radial-gradient(ellipse at bottom left, #245043, transparent 64%), var(--forest);
  color: var(--white);
}
.checklist-copy h2 { font-size: clamp(2.25rem, 3.8vw, 3.75rem); }
.checklist-copy > p:not(.eyebrow) { max-width: 38ch; margin-top: 15px; color: #d8e5dc; }

.checklist-progress { text-align: center; font-size: .78rem; color: #e3f5ff; font-variant-numeric: tabular-nums; }
.progress-ring { --progress: 0%; display: grid; place-items: center; width: 156px; height: 156px; margin: 0 auto 12px; padding: 13px; border-radius: 50%; background: conic-gradient(#2cf3af var(--progress), #e7f6ff 0); box-shadow: 0 7px 16px #002d4980, 0 0 24px #28ddaf21; }
.progress-center { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(145deg, #0d354d, #1b6575); box-shadow: inset 0 2px 8px #031b3a75; }
.progress-center strong { font: 750 2.7rem/1.1 var(--display); color: white; }
.progress-center span { margin-top: 6px; color: white; }
.habit-list { display: grid; min-width: 0; gap: 8px; margin: 0; padding: 0; border: 0; }
.habit-list label { display: flex; align-items: center; gap: 12px; min-height: 51px; padding: 11px 14px; border: 1px solid #5a756d; border-radius: 8px; background: #1a3a35; cursor: pointer; }
.habit-list label:hover, .habit-list label:has(input:checked) { background: #264d42; }
.habit-list input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }

.sign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sign-card { padding: clamp(20px, 3vw, 40px); border-radius: 16px; }
.sign-card h3 { display: flex; align-items: center; gap: 10px; }
.sign-card ul { display: grid; gap: 8px; padding-inline-start: 21px; margin: 15px 0 0; }
.sign-intentional { background: #e5eee2; color: #24533f; }
.sign-risk { background: #f7e8e1; color: #763e31; }
.sign-icon { display: inline-grid; place-items: center; width: 27px; height: 27px; border: 1px solid currentColor; border-radius: 50%; font: 700 1rem var(--body); }
.sign-icon { flex: 0 0 27px; }

.faq-section { background: #eeefe7; padding-block: clamp(48px, 6vw, 83px); }
.faq-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px 44px; }
.faq-list { border-top: 1px solid #c9d2c7; }
.faq-list details { border-bottom: 1px solid #c9d2c7; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px 3px; list-style: none; cursor: pointer; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 8px; height: 8px; margin-inline: 4px; flex: 0 0 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list summary:hover { text-decoration: underline; text-underline-offset: .22em; }
.faq-list p { color: var(--muted); padding: 0 22px 16px 3px; max-width: 63ch; }
.support-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px 38px; padding: clamp(24px, 4vw, 51px); background: #f4deb0; border-radius: 18px; }
.support-panel h2 { font-size: clamp(2.25rem, 3.8vw, 3.65rem); }
.support-panel p { margin-top: 10px; }
.support-panel .button { flex-shrink: 0; max-width: min(100%, 16rem); }

.admin-shell { display: grid; place-items: center; min-height: 100svh; padding-block: 32px; }
.admin-shell .admin-panel { display: block; width: min(100%, 31rem); }
.admin-shell .admin-settings-panel { width: min(100%, 43rem); }
.admin-panel h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.045em; }
.admin-shell .admin-panel > p { margin-top: 14px; }
.admin-panel form { display: grid; gap: 12px; margin-top: 22px; }
.admin-panel label { font-weight: 700; }
.admin-panel input, .admin-panel select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #6f8593; border-radius: 8px; font: inherit; }
.admin-panel input[type="checkbox"] { width: 1rem; min-height: 0; margin: 0; }
.admin-visibility { min-width: 0; margin: 0; padding: 12px 14px 14px; border: 1px solid #a3bac6; border-radius: 10px; background: #fff9; }
.admin-visibility legend { padding-inline: 6px; font-weight: 750; }
.admin-visibility #visibility-hint { margin: 0 0 8px; max-width: none; }
.admin-section-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 2px 12px; }
.admin-section-list label { display: flex; align-items: center; gap: 9px; min-height: 36px; font-size: .9rem; cursor: pointer; }
.admin-section-list input { flex: 0 0 auto; accent-color: #1b5873; }
.admin-panel input[type="file"] { background: #fff; }
.admin-panel input[type="file"]::file-selector-button {
  margin-inline-end: 10px;
  padding: 4px 9px;
  border: 1px solid #a3bac6;
  border-radius: 5px;
  background: #eaf5fb;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.admin-logo-preview, .admin-logo-reset { display: flex; align-items: center; gap: 10px; }
.admin-logo-preview { margin-top: 4px; }
.admin-logo-preview .brand-avatar { --avatar-size: 54px; }
.admin-panel button { cursor: pointer; }
.admin-panel .admin-notice { color: var(--ink); }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 16px; }
.admin-actions form { margin-top: 0; }
.admin-jump { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 17px; font-size: .9rem; }
.admin-area { margin-top: 26px; padding-top: 20px; border-top: 1px solid #9ebfcc; }
.admin-area h2 { font-size: clamp(1.45rem, 4vw, 1.85rem); letter-spacing: -.035em; }
.admin-area .admin-area-hint { margin-block: 10px; max-width: none; }
.admin-area form { margin-top: 12px; }
.admin-question { margin-top: 12px; padding: 14px 16px; border: 1px solid #bdd4df; border-radius: 10px; background: #fff; }
.admin-question-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; color: var(--muted); font-size: .85rem; }
.admin-question-meta strong { color: #104a63; }
.admin-email { display: inline-block; margin-top: 6px; font-weight: 700; overflow-wrap: anywhere; }
.admin-question .admin-question-text { margin-top: 8px; max-width: none; white-space: pre-wrap; overflow-wrap: anywhere; }

.site-footer { background: var(--forest); color: #e4ede5; padding-block: 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.site-footer .brand-caption { color: #ccdcd1; }
.site-footer a:not(.brand) { font-size: .86rem; font-weight: 600; }

/* Illustrated blue-and-gold visual treatment. */
body {
  background:
    radial-gradient(ellipse 95% 20% at -35% 45%, #bce9f47a 0 66%, transparent 66.2%),
    radial-gradient(ellipse 100% 24% at 145% 58%, #c6e7fa80 0 66%, transparent 66.2%),
    radial-gradient(ellipse 95% 16% at -20% 100%, #b8e8f37a 0 66%, transparent 66.2%),
    var(--paper);
}
.site-header, .site-footer { background: linear-gradient(110deg, #0a2b40, #021d30); color: white; }
.header-inner { min-height: 82px; }
.site-header .brand-caption, .site-footer .brand-caption { color: #cbe1ee; }
.main-nav a, .language-toggle { color: #edf7ff; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold); text-decoration: none; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.language-toggle { border: 1px solid #557588; }
.language-toggle:hover { background: #17405b; }
.site-header :focus-visible { outline-color: var(--gold); }
.button-gold, .header-support { background: linear-gradient(#ffe3a2, #f4bc4f); border: 1px solid #f8db94; color: #10293c; box-shadow: inset 0 1px 1px #fff9, 0 5px 16px #02172924; }
.button-gold:hover, .header-support:hover { background: linear-gradient(#ffedc5, #ffcf70); border-color: #fff0b8; }
.hero { position: relative; overflow: hidden; background: #07314c; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 35%, #12648b, transparent 65%), linear-gradient(120deg, #04263f, #0a4262); }
.hero::after { content: ""; position: absolute; z-index: 2; bottom: -29px; left: -10%; width: 120%; height: 58px; border-radius: 50% 50% 0 0; background: var(--paper); }
.hero-inner { gap: 28px; padding-block: 42px 62px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { text-shadow: 0 3px 16px #001a3070; }
.hero h1 em { position: relative; width: fit-content; padding-bottom: 15px; }
.hero h1 em::after { content: ""; position: absolute; width: 78%; height: 3px; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, #ffd074 35%, #ffe8a3); transform: rotate(-3deg); }
.hero-copy > p:not(.eyebrow) { color: #e5f4ff; }
.hero-actions { display: grid; justify-items: start; gap: 8px; }
.hero-actions .main-cta {
  justify-content: space-between;
  width: min(100%, 420px);
  min-height: 68px;
  padding: 12px 13px 12px clamp(16px, 2.4vw, 26px);
  border-color: #fff1c3;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff0bc, #ffd473 58%, #f8b643);
  box-shadow: inset 0 1px 1px #fff, 0 8px 24px #1083a144, 0 4px 16px #051e39a8;
  font-size: clamp(1.1rem, 1.55vw, 1.38rem);
  line-height: 1.2;
  text-align: start;
  overflow-wrap: anywhere;
}
.hero-actions .main-cta:hover { background: linear-gradient(120deg, #fff6db, #ffdf8b 58%, #ffc861); }
.question-form {
  display: grid;
  width: min(100%, 420px);
  gap: 8px;
  padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid #9dcbde;
  border-radius: 14px;
  background: #092e46;
  box-shadow: 0 7px 20px #051e395c;
}
.question-dialog { width: min(calc(100% - 32px), 460px); max-height: calc(100svh - 32px); padding: 0; border: 1px solid #9dcbde; border-radius: 18px; color: #fff; background: #092e46; box-shadow: 0 22px 80px #00132166; }
.question-dialog::backdrop { background: #041b32bb; backdrop-filter: blur(4px); }
body:has(.question-dialog[open]) { overflow: hidden; }
.question-dialog-top { display: flex; justify-content: flex-end; padding: 8px 10px 0; }
.dialog-close { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 9px; border: 1px solid #8cb4c1; border-radius: 7px; background: transparent; color: #e5f4ff; font: inherit; font-size: .85rem; cursor: pointer; }
.dialog-close [aria-hidden] { font-size: 1.4rem; line-height: 1; }
.question-dialog .question-form { width: 100%; border: 0; box-shadow: none; }
.question-dialog .question-form .main-cta, .question-standalone .main-cta { width: 100%; min-height: 54px; margin-top: 4px; justify-content: space-between; font: 700 1rem var(--body); cursor: pointer; }
.question-dialog :focus-visible { outline-color: #ffd074; }
.question-standalone { width: min(100%, 460px); }
.question-standalone .question-form { width: 100%; color: #fff; }
.question-form h2 { margin-bottom: 6px; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.025em; }
.question-form label { font-size: .9rem; font-weight: 650; }
.question-form input, .question-form textarea { width: 100%; padding: 9px 11px; border: 1px solid #92b4c6; border-radius: 7px; color: var(--ink); background: #f8fcff; font: inherit; }
.question-form textarea { min-height: 75px; resize: vertical; }
.question-form .question-hint { color: #d2e9f4; font-size: .83rem; }
.hero-actions .question-form .main-cta { min-height: 54px; margin-top: 4px; cursor: pointer; }
.question-form .main-cta:disabled { opacity: .7; cursor: wait; }
.question-status { color: #ffdfa1; font-size: .9rem; font-weight: 650; }
.main-cta-label { display: flex; min-width: 0; align-items: center; gap: 10px; }
.main-cta-label .brand-avatar { --avatar-size: 30px; }
.main-cta-arrow { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 9px; background: #0b344d; color: #fff0bb; }
.hero-secondary { display: flex; flex-wrap: wrap; gap: 0 20px; }
.hero-secondary a { color: #e0f3fe; text-decoration: underline; text-decoration-color: #95c3d9; }
.hero-photo { overflow: visible; border-radius: 0; min-height: 440px; }
.hero-photo img { object-position: 72% center; border-radius: 28px; mask-image: linear-gradient(90deg, transparent, black 16%, black 94%, transparent); }
.hero-reminder { position: absolute; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1.5px solid #c7f4ff; border-radius: 17px; background: linear-gradient(130deg, #287895ed, #0b3854e8); box-shadow: inset 0 0 14px #b4eeff66, 0 4px 22px #44c9ee40; color: white; font-size: .85rem; font-weight: 700; }
.reminder-budget { top: 12%; left: -4%; transform: rotate(-6deg); }
.reminder-time { top: 0; right: -1%; transform: rotate(-5deg); }
.reminder-break { bottom: 14%; left: 0; transform: rotate(4deg); }
.reminder-icon { color: #ffd074; font-size: 1.7rem; line-height: 1; }
.hero-reminder .clock-icon, .hero-reminder .pause-icon { color: #ffd074; flex-shrink: 0; }

.comparison { padding-block: clamp(28px, 4.4vw, 62px); }
.comparison h2 { margin-bottom: clamp(18px, 3vw, 30px); }
.comparison-frame { overflow: hidden; border: 1px solid #bedce8; border-radius: clamp(14px, 2.5vw, 24px); background: #fff; box-shadow: 0 12px 28px #14476810; }
.comparison-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.comparison-table thead th { width: 50%; padding: 0 0 clamp(14px, 2vw, 24px); vertical-align: top; }
.comparison-brand { background: #0b3b51; color: #fff; }
.comparison-risk { background: #faeccf; color: #573818; }
.comparison-art { display: grid; place-items: center; height: clamp(75px, 11vw, 132px); overflow: hidden; }
.comparison-brand .comparison-art {
  background: linear-gradient(to bottom, #032c34 20%, #0b3b51);
  position: relative;
}
.comparison-brand .comparison-art::before {
  content: "";
  position: absolute;
  inset: 0;
  width: min(100%, 500px);
  margin-inline: auto;
  background: url("assets/smart-play-backdrop.webp") center / 100% auto no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 12% 88%, transparent), linear-gradient(to bottom, #000 77%, transparent);
  mask-composite: intersect;
}
.comparison-risk .comparison-art {
  background: linear-gradient(180deg, #faeccf16 15%, #faeccf38 56%, #faeccf 100%),
    url("assets/unregulated-platform-backdrop.webp") center 54% / cover;
}
.comparison-alert { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #9c6632; border-radius: 13px; background: #fff4db; box-shadow: 0 0 0 7px #faeccfb0; font: 750 1.6rem/1 "Bricolage Grotesque", sans-serif; transform: rotate(8deg); }
.comparison-name { display: block; padding-inline: clamp(12px, 3vw, 34px); font: 760 clamp(1.04rem, 2.7vw, 2.1rem)/1.16 var(--display); overflow-wrap: anywhere; }
.comparison-brand-name { display: flex; align-items: center; gap: clamp(7px, 1.2vw, 12px); }
.comparison-brand-name .brand-avatar { --avatar-size: clamp(25px, 3vw, 40px); }
.support-brand-copy { display: flex; align-items: flex-start; gap: 10px; }
.support-brand-copy .brand-avatar { --avatar-size: 30px; }
.comparison-table tbody th { padding: 9px clamp(12px, 3vw, 34px); background: #e9f4f8; color: #254c61; font-size: .84rem; }
.comparison-table td { padding: clamp(11px, 1.65vw, 19px) clamp(12px, 3vw, 34px); color: var(--ink); vertical-align: top; overflow-wrap: anywhere; }
.comparison-table td + td { border-left: 1px solid #d5e6ec; background: #fffcf6; }
.comparison-note { margin-top: 15px; color: var(--muted); font-size: .9rem; }
.comparison + .section { padding-top: 0; }
.reminder-check { background: #14c87a; color: white; width: 19px; height: 19px; border-radius: 50%; display: grid; place-content: center; font-size: .8rem; }
.intro h2::after, .faq-inner h2::after { content: ""; display: block; width: 66px; height: 3px; margin-top: 18px; background: linear-gradient(90deg, #e8ab25, #ffe8a0); border-radius: 3px; }
.guide-card { position: relative; border: 1px solid white; border-bottom-color: #a8d6e6; background: linear-gradient(145deg, #fff, #dff4fb); box-shadow: 0 7px 17px #1a669416, inset 0 0 0 1px #fff7; border-radius: 18px; }
.guide-card:nth-child(2) { background: linear-gradient(145deg, #fffdf8, #fcf0d9); border-bottom-color: #dfc893; }
.guide-card:nth-child(3) { background: linear-gradient(145deg, #fff9fb, #f8e3e9); border-bottom-color: #e8bbcf; }
.tip-icon { width: 68px; height: 68px; border-radius: 50%; font-size: 2.5rem; background: #d3eff9; box-shadow: inset 0 2px 5px white, 0 3px 5px #24596d15; margin-bottom: 22px; }
.tip-limits { background: #fff0cb; }
.tip-pause { background: #ffe0e7; }
.coin-stack { display: grid; place-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #dc8e12; color: #a96703; background: linear-gradient(#ffdf73, #ffb630); box-shadow: 0 4px 0 #cc860b, 0 6px 0 #ffe09a, 0 9px 0 #cd8a14; font: 700 1.5rem var(--body); transform: rotate(-12deg); }
.checklist-panel { position: relative; background: radial-gradient(ellipse at 0 140%, #26b0b6, transparent 60%), linear-gradient(120deg, #07354b, #176677); border: 1px solid #83d0da; box-shadow: 0 10px 25px #15557320, inset 0 1px 0 #ffffff70; }
.checklist-copy h2, :lang(th) .checklist-copy h2 { font-size: clamp(1.8rem, 2.6vw, 2.65rem); }
.checklist-copy > p:not(.eyebrow) { color: #e0f3ff; font-size: .95rem; }
.habit-list label { border-color: #c4edff; background: linear-gradient(95deg, #f4fbff, #cfedfa); color: var(--ink); box-shadow: 0 2px 4px #021f382b; font-size: .9rem; }
.habit-list label:hover, .habit-list label:has(input:checked) { background: linear-gradient(95deg, #f4fffa, #bdeedb); }
.habit-list input { width: 20px; height: 20px; accent-color: #079e67; }
.sign-card { display: grid; grid-template-columns: 31% minmax(0, 1fr); padding: 0; overflow: hidden; border: 1px solid #b7e7d2; box-shadow: 0 5px 15px #1349610c; background: linear-gradient(100deg, #bfe4cc, #effbf6); }
.sign-risk { border-color: #efced6; background: linear-gradient(100deg, #e2cbe5, #fff0f2); color: #82363f; }
.sign-portrait { background: url("assets/habits-illustration.webp") left center / 200% auto no-repeat; min-height: 230px; }
.sign-risk .sign-portrait { background-position: right center; }
.sign-content { padding: 24px 20px 24px 16px; }
.sign-card h3, :lang(th) .sign-card h3 { font-size: 1.16rem; line-height: 1.3; }
.sign-card ul { list-style: none; padding: 0; font-size: .9rem; }
.sign-card li { position: relative; padding-left: 19px; }
.sign-card li::before { content: "✓"; position: absolute; left: 0; color: #15925d; font-weight: 800; }
.sign-risk li::before { content: "×"; color: #ce4b60; }
.sign-icon { background: #15925d; color: white; border: 1px solid white; width: 24px; height: 24px; flex-basis: 24px; }
.sign-risk .sign-icon { background: #d95465; }
.faq-section { background: linear-gradient(115deg, #e3f3fb90, #f7fbff50); }
.faq-list { border: 0; display: grid; gap: 10px; align-content: start; }
.faq-list details { border: 1px solid #c9dfee; border-radius: 15px; background: linear-gradient(#fff, #f1f8ff); box-shadow: 0 3px 5px #164c7317, inset 0 1px 0 white; }
.faq-list summary { padding: 13px 21px; min-height: 54px; }
.faq-list p { padding: 0 21px 18px; }
.support-panel { background: linear-gradient(110deg, #ffefc9, #fff9ec); border: 1px solid #f0d18f; box-shadow: 0 6px 17px #715d1510; }
.button-dark { background: linear-gradient(#1b5873, #092e49); border-color: #4186a3; }
.button-dark:hover { background: #1a5670; }
.site-footer { border-top: 3px solid #267b8d; padding-block: 36px; }

@media (max-width: 1100px) {
  .checklist-panel { grid-template-columns: 1fr 1.3fr; }
  .checklist-progress { grid-column: 1; grid-row: 2; }
  .habit-list { grid-column: 2; grid-row: 1 / 3; }
  .sign-card { grid-template-columns: 1fr; }
  .sign-portrait { min-height: 0; height: 170px; background-size: 200% auto; background-position: left 25%; }
  .sign-risk .sign-portrait { background-position: right 25%; }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .main-nav { justify-content: center; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-photo { min-height: 360px; }
  .hero-reminder { font-size: .74rem; padding: 10px; gap: 7px; }
  .intro { grid-template-columns: 1fr .85fr; }
}

@media (max-width: 840px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 12px; }
  .main-nav { grid-area: 2 / 1 / 3 / -1; justify-content: space-between; gap: 8px; margin-top: 8px; border-top: 1px solid var(--rule); }
  .main-nav a { font-size: .81rem; }
  .main-nav { border-top-color: #315268; }
}

@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 39px 24px; }
  .hero-copy { padding: 0; }
  .hero-copy > p:not(.eyebrow) { margin-top: 17px; }
  .hero-actions { margin-top: 20px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.42; border-radius: 12px; }
  .hero-inner { padding-bottom: 46px; }
  .hero::before { background: radial-gradient(ellipse at 80% 70%, #125579, transparent 65%), #072d48; }
  .hero-photo img { mask-image: none; border-radius: 18px; }
  .reminder-budget { left: -6px; top: 12%; }
  .reminder-time { right: -5px; top: -12px; }
  .reminder-break { left: 3%; bottom: 7%; }
  .intro, .faq-inner, .checklist-panel { grid-template-columns: 1fr; }
  .checklist-progress, .habit-list { grid-area: auto; }
  .checklist-progress { display: flex; align-items: center; justify-content: center; gap: 20px; text-align: left; }
  .progress-ring { margin: 0; width: 130px; height: 130px; flex: 0 0 130px; }
  .intro { margin-bottom: 24px; }
  .guide-grid { grid-template-columns: 1fr; gap: 10px; }
  .guide-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px; }
  .guide-card .tip-icon { grid-row: span 2; align-self: start; margin: 0; }
  .guide-card p { margin: 0; max-width: none; }
  .sign-grid { gap: 12px; }
  .support-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .comparison-brand-name { flex-direction: column; align-items: flex-start; }
  .tip-icon { width: 48px; height: 48px; font-size: 1.9rem; }
  .coin-stack { transform: scale(.8) rotate(-12deg); }
  .sign-card { grid-template-columns: 28% minmax(0, 1fr); }
  .sign-portrait { height: auto; background-size: auto 100%; background-position: 17% center; }
  .sign-risk .sign-portrait { background-position: 83% center; }
  .sign-content { padding: 20px 16px; }
  .header-actions { gap: 4px; }
  .header-support { min-height: 44px; padding-inline: 8px; gap: 5px; font-size: .79rem; }
  .sign-grid { grid-template-columns: 1fr; }
  .footer-inner .brand { flex-basis: 100%; }
}

@media (max-width: 382px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .header-inner .brand { gap: 8px; font-size: 1.32rem; }
  .header-inner .brand-avatar { --avatar-size: 34px; }
  .header-actions { min-width: 0; }
  .header-support { white-space: normal; text-align: center; line-height: 1.2; }
  .header-support [aria-hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Bot guard: "Coming soon" button for flagged visitors, and the admin visitor log and strictness controls. */
.main-cta.is-soon, .main-cta.is-soon:hover { background: var(--gold); opacity: .85; cursor: default; }
.admin-panel h3 { margin-top: 22px; font: 750 1.15rem var(--display); letter-spacing: -.02em; }
.admin-panel form.guard-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-panel form.guard-presets .button { min-height: 40px; }
.guard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px 16px; }
.guard-field { display: grid; align-content: start; gap: 4px; }
.guard-hint { color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.35; }
.guard-field .guard-hint, .guard-weight-table .guard-hint { display: block; }
.guard-weights { border: 1px solid #a3bac6; border-radius: 10px; background: #fff9; padding: 4px 14px 12px; }
.guard-weights summary, .guard-table summary { cursor: pointer; font-weight: 700; }
.guard-weights summary { min-height: 40px; display: flex; align-items: center; }
.guard-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.guard-table-wrap { contain: inline-size; overflow-x: auto; margin-top: 10px; border: 1px solid #bdd4df; border-radius: 10px; background: #fff; }
.guard-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.guard-table th, .guard-table td { padding: 9px 12px; border-bottom: 1px solid #dbe8ef; text-align: left; vertical-align: top; white-space: nowrap; }
.guard-table thead th, .guard-weight-table th { background: #eef6fa; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.guard-table tbody tr:last-child td { border-bottom: 0; }
.guard-table .guard-wrap { white-space: normal; min-width: 170px; max-width: 320px; overflow-wrap: anywhere; }
.guard-weight-table td { white-space: normal; }
.guard-weight-table td:last-child { width: 130px; }
.guard-badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 750; }
.guard-badge-bad { background: #fde7ea; color: #9d1c2c; }
.guard-badge-ok { background: #e2f4e9; color: #1d6b43; }
.guard-reason { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 8px; border: 1px solid #bdd4df; border-radius: 6px; font-size: .75rem; }
.guard-code { display: block; max-width: 300px; margin-top: 6px; font-size: .75rem; overflow-wrap: anywhere; user-select: all; }
.guard-tabs a.guard-tab-active { font-weight: 800; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--gold); }

/* Company details in the footer, laid out like the landing page's footer. */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #ffffff26; color: #cbe1ee; font-size: .8rem; line-height: 1.6; }
.footer-company p + p { margin-top: 2px; }
.footer-company b { color: #fff; font-weight: 600; }
@media (min-width: 840px) { .footer-copyright { white-space: nowrap; } }

/* Footer columns and the Company dialogs (About us, Terms, Privacy, Help, Contact). */
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.footer-main .brand { grid-column: 1 / -1; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-col h3 { margin-bottom: 4px; color: #fff; font: 700 1rem var(--body); }
.footer-col button { min-height: 34px; padding: 4px 0; border: 0; background: none; color: inherit; font: 600 .86rem var(--body); text-align: left; cursor: pointer; }
.footer-col a:hover, .footer-col button:hover { color: var(--gold); text-decoration: underline; }
@media (min-width: 840px) { .footer-main { grid-template-columns: 2fr 1fr 1fr; gap: 40px; } .footer-main .brand { grid-column: auto; } }
.info-dialog { width: min(calc(100% - 32px), 560px); max-height: calc(100svh - 32px); padding: 0; border: 1px solid #9dcbde; border-radius: 18px; color: #fff; background: #092e46; box-shadow: 0 22px 80px #00132166; }
.info-dialog::backdrop { background: #041b32bb; backdrop-filter: blur(4px); }
body:has(.info-dialog[open]) { overflow: hidden; }
.info-dialog-body { padding: 4px 22px 24px; }
.info-dialog h2 { margin-bottom: 12px; color: var(--gold); font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -.025em; }
.info-dialog h3 { margin: 18px 0 4px; font: 700 1rem var(--body); }
.info-dialog p { margin-top: 8px; max-width: none; color: #d2e9f4; line-height: 1.65; }
.info-dialog :focus-visible { outline-color: #ffd074; }
.info-dialog .question-form { width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
.info-dialog .question-form .main-cta { width: 100%; min-height: 54px; margin-top: 4px; justify-content: space-between; font: 700 1rem var(--body); cursor: pointer; }
.info-dialog .text-link { color: var(--gold); }
.info-dialog-action { cursor: pointer; }
.info-dialog-link { margin-top: 14px; padding: 0; border: 0; background: none; font: inherit; font-size: .9rem; cursor: pointer; }
