/* =============================================================
   Gateway Page — LINE & Register Clean White Theme
   Mobile-first, Server-Side Redirect CTA Buttons
   ============================================================= */

:root {
  --target-size: 24px;
  --line-hero-green: #06c755;
  --line-btn-green-top: #4ad626;
  --line-btn-green-bottom: #3ec21c;
  --line-btn-border: #48cf2c;
  --line-btn-lip: #9ef069;
  --sheet-bg: #ffffff;
  --text-primary: #0b0b0b;
}

@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  background-color: var(--sheet-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Prompt', 'Noto Sans Thai', sans-serif;
  background-color: var(--sheet-bg);
  color: var(--text-primary);
  line-height: 1.6;
  inline-size: 100%;
  min-block-size: 100dvh;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

button {
  min-block-size: var(--target-size);
  min-inline-size: var(--target-size);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid #06c755;
  outline-offset: 4px;
}

/* ── Main Mobile Sheet ── */
.gateway-shell {
  inline-size: 100%;
  max-inline-size: 480px;
  min-block-size: 100dvh;
  margin-inline: auto;
  background-color: var(--sheet-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block-start: calc(clamp(44px, 7dvh, 68px) + env(safe-area-inset-top, 0px));
  padding-block-end: max(48px, env(safe-area-inset-bottom, 0px));
  padding-inline-start: max(20px, env(safe-area-inset-left, 0px));
  padding-inline-end: max(20px, env(safe-area-inset-right, 0px));
}

/* ── 1. Top LINE Squircle Logo ── */
.hero-line-logo {
  inline-size: 126px;
  block-size: 126px;
  border-radius: 28px;
  background-color: var(--line-hero-green);
  color: var(--line-hero-green);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.18);
}

.hero-line-logo svg {
  inline-size: 100%;
  block-size: 100%;
  display: block;
}

/* ── 2. Prompt Text ── */
.gateway-prompt {
  margin-block: 44px 36px;
  max-inline-size: 350px;
  font-size: clamp(18px, 4.7vw, 20.5px);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  color: var(--text-primary);
  text-wrap: balance;
}

/* ── 3. Actions Container ── */
.gateway-actions {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ═══════════════════════════════════════════════════════════════
   Button 1: Green LINE Inquiry Card Button
   ═══════════════════════════════════════════════════════════════ */
.btn-line-card {
  inline-size: min(100%, 352px);
  padding: 6px 10px;
  border-radius: 18px;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-line-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(62, 194, 28, 0.16);
}

.btn-line-card:active {
  transform: scale(0.98);
}

.line-btn-circle {
  position: relative;
  z-index: 2;
  inline-size: 88px;
  block-size: 88px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2.5px solid var(--line-btn-border);
  display: grid;
  place-items: center;
  flex: none;
}

.line-btn-mini-icon {
  inline-size: 56px;
  block-size: 56px;
  border-radius: 14px;
  background-color: #46ce2a;
  color: #46ce2a;
  display: grid;
  place-items: center;
}

.line-btn-mini-icon svg {
  inline-size: 100%;
  block-size: 100%;
  display: block;
}

.line-btn-banner {
  flex: 1;
  min-inline-size: 0;
  margin-inline-start: -26px;
  padding: 11px 16px 11px 32px;
  border-radius: 0 22px 22px 0;
  background: linear-gradient(180deg, var(--line-btn-green-top) 0%, var(--line-btn-green-bottom) 100%);
  box-shadow: 0 4px 0 var(--line-btn-lip);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.line-btn-title {
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: clamp(20px, 5.6vw, 24.5px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.line-btn-sub {
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: clamp(14px, 3.9vw, 17px);
  font-weight: 500;
  line-height: 1.25;
  margin-block-start: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   Button 2: Luxury Black & Metallic Gold Register Button
   ═══════════════════════════════════════════════════════════════ */
.btn-gold-register {
  position: relative;
  inline-size: min(100%, 326px);
  padding: 4px;
  border-radius: 9999px;
  background: linear-gradient(
    180deg,
    #fff3a1 0%,
    #d6931a 22%,
    #6e4302 50%,
    #e5ab27 78%,
    #fff2a6 100%
  );
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

/* Top & Bottom Specular Gold Glints */
.btn-gold-register::before,
.btn-gold-register::after {
  content: "";
  position: absolute;
  inline-size: 72px;
  block-size: 8px;
  inset-inline-start: 42%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 252, 214, 0.95) 0%, rgba(255, 214, 74, 0.45) 45%, transparent 75%);
  pointer-events: none;
  z-index: 3;
}

.btn-gold-register::before {
  inset-block-start: -2px;
}

.btn-gold-register::after {
  inset-block-end: -2px;
}

.btn-gold-register:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 10px 24px rgba(180, 125, 12, 0.25);
}

.btn-gold-register:active {
  transform: scale(0.98);
}

.reg-btn-inner {
  inline-size: 100%;
  padding: 10px 12px 10px 14px;
  border-radius: 9999px;
  background: linear-gradient(
    180deg,
    #2c2415 0%,
    #110e08 42%,
    #040404 54%,
    #1c1406 100%
  );
  border: 1.5px solid rgba(248, 202, 77, 0.55);
  box-shadow: inset 0 2px 6px rgba(255, 232, 145, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reg-user-box {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 13px;
  border: 2px solid #e7b133;
  background: linear-gradient(180deg, #291f0b 0%, #0b0803 100%);
  box-shadow:
    inset 0 0 8px rgba(245, 190, 50, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  flex: none;
}

.reg-btn-text {
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: clamp(23px, 6.4vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff6ad 0%, #f7c336 48%, #cf860e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.85));
}

.reg-arrow-circle {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 28%,
    #fff9c4 0%,
    #f7c53b 45%,
    #c67e0b 85%,
    #f0b629 100%
  );
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.65),
    inset 0 1px 2px #ffffff;
  display: grid;
  place-items: center;
  flex: none;
}
