body {
  font-family: var(--font-en);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* Thai text uses Arvo */
h1,
h2,
h3,
h4,
.section-title,
.section-label,
.pain-card h3,
.pain-card p,
.hero-sub,
.hero-note,
.step h4,
.step p,
.value-card h4,
.value-card p,
.form-section-label,
.results-title,
.task-card,
.comp-slot-label,
.autofill-badge,
.form-group label,
.form-fine,
.urgency-text,
.submit-btn,
.btn-add,
.btn-remove,
.btn-retry,
.hero-badge,
.proof-label,
.wg-list,
.success-box h3,
.success-box p,
.cta-inner p,
.try-inner > p,
[lang='th'] {
  font-family: var(--font-th);
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background photo — full bleed */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero-placeholder.png') center/cover no-repeat;
  z-index: 0;
}

/* Content wrapper — positions card + CTA on the left */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 5% 60px 5%;
  width: 100%;
  max-width: 720px;
}

/* Floating navy card with diagonal bottom-right */
.hero-card {
  background: rgba(29, 68, 151, 0.88);
  clip-path: polygon(0 0, 100% 0, 100% 0%, 92% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  padding: 48px 80px 56px 48px;
  border-radius: 12px 0 0 0;
  backdrop-filter: blur(4px);
}

.logo {
  font-family: var(--font-th);
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.logo span {
  color: #fff;
}

.hero-badge {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-th);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.hero h2 {
  font-family: var(--font-th);
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero h2 .highlight {
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.85;
  max-width: 440px;
}

/* CTA sits outside/below the card */
.hero-cta {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-th);
  font-size: 18px;
  font-weight: 800;
  padding: 18px 48px;
  border-radius: 100px;
  text-decoration: none;
  margin-top: 36px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(10, 214, 156, 0.4);
  width: fit-content;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(10, 214, 156, 0.6);
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.hero-note strong {
  color: var(--coral);
}

/* Scroll-down arrow */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  animation: scrollBounce 2s ease-in-out infinite;
  transition: color 0.2s;
}

.hero-scroll-hint:hover {
  color: #fff;
}

.scroll-text {
  font-family: var(--font-th);
  font-size: 15px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 1px;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* SECTION: PAIN POINTS */
.section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-th);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 60px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.pain-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1.5px solid #e8e0d0;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13, 27, 62, 0.1);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy);
}

.pain-emoji {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.pain-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  background: rgba(29, 68, 151, 0.1);
  color: var(--navy);
}

.pain-card h3 {
  font-family: var(--font-th);
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pain-card p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.pain-card p strong {
  color: var(--navy);
  font-weight: 700;
}

/* DIVIDER */
.divider-band {
  background: var(--navy);
  padding: 60px 24px;
  text-align: center;
}

.divider-band h2 {
  font-family: var(--font-th);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.divider-band h2 span {
  color: var(--gold);
}

/* HOW IT WORKS */
.how-bg {
  background: var(--cream);
  padding: 100px 24px;
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.how-left {
  flex: 1 1 55%;
  min-width: 0;
}

.how-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.how-inner .section-label {
  color: var(--gold);
}

.how-inner .section-title {
  color: var(--navy);
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}

.step h4 {
  font-family: var(--font-th);
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---- iPhone CSS Frame ---- */
.iphone-frame {
  width: 280px;
  height: 570px;
  border-radius: 44px;
  border: 6px solid #1a1a1a;
  background: #000;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.18),
    0 0 0 2px #3a3a3a;
}

/* Dynamic Island / Notch */
.iphone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 20px;
  z-index: 10;
}

/* Home indicator bar */
.iphone-frame::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 38px;
}

.iphone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 38px;
  background: #000;
}

/* Placeholder when no image — shows a styled mock screen */
.iphone-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-th);
  overflow: hidden;
}

.iphone-placeholder .ip-header {
  width: 100%;
  background: var(--gold);
  padding: 44px 16px 18px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.iphone-placeholder .ip-url {
  width: 100%;
  padding: 6px 16px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  background: #e8e8e8;
}

.iphone-placeholder .ip-body {
  flex: 1;
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iphone-placeholder .ip-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e0e0e0;
}

.iphone-placeholder .ip-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.iphone-placeholder .ip-card-sub {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.iphone-placeholder .ip-tabs {
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.iphone-placeholder .ip-tab {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.iphone-placeholder .ip-tab.active {
  color: var(--gold);
  font-weight: 700;
}

/* VALUE PROPS */
.value-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 100px 24px 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cityscape background photo — bottom-aligned */
.value-bg {
  position: absolute;
  inset: 0;
  background: url('/images/value-bg.png') center/cover no-repeat;
  z-index: 0;
}

/* Cityscape silhouette sits at the bottom */
.value-cityscape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  /* Replace with: background-image: url('/images/cityscape.png'); */
  background: linear-gradient(
    0deg,
    rgba(30, 50, 80, 0.9) 0%,
    rgba(60, 90, 140, 0.4) 50%,
    transparent 100%
  );
  background-size: cover;
  background-position: bottom center;
  z-index: 1;
}

.value-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.value-inner .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.value-inner .section-title {
  color: #fff;
  margin-bottom: 48px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.value-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.value-card .v-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.value-card h4 {
  font-family: var(--font-th);
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.4;
}

.value-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.value-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
  margin-bottom: 12px;
  display: block;
}

/* BENEFIT SECTION */
.benefit-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 80px 6%;
}

.benefit-bg {
  position: absolute;
  inset: 0;
  background: url('/images/ijji-benefit.png') center/cover no-repeat;
  z-index: 0;
}

.benefit-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 55, 0.25);
}

.benefit-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  text-align: right;
}

.benefit-title {
  font-family: var(--font-th);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.25;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.benefit-sub {
  font-family: var(--font-th);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.85;
  margin-bottom: 48px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Translucent benefits card */
.benefit-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  padding: 36px 40px;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.benefit-card-title {
  font-family: var(--font-th);
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 24px;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-th);
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
}

.benefit-list li:last-child {
  margin-bottom: 0;
}

.benefit-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(10, 214, 156, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 900;
  font-size: 14px;
  margin-top: 1px;
}

/* PROOF BAR */
.proof-bar {
  background: var(--gold);
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.proof-item {
  text-align: center;
}

.proof-num {
  font-family: var(--font-th);
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.proof-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(13, 27, 62, 0.65);
  margin-top: 4px;
}

/* CTA FORM */
.cta-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: url('/images/signup-bg.png') center/cover no-repeat;
  z-index: 0;
}

/* Semi-dark overlay for readability */
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 55, 0.45);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0px;
}

/* Left: large white headline */
.cta-left {
  align-self: center;
}

.cta-left .section-label {
  display: none;
}

.cta-left .section-title {
  color: #fff;
  font-family: var(--font-th);
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Right: form column */
.cta-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.cta-right .section-label {
  display: block;
  color: var(--gold);
  font-family: var(--font-th);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: right;
  margin-bottom: 20px;
}

/* Form card — solid white panel */
.form-box {
  background: #fff;
  padding: 36px 32px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.urgency-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 32px;
}

.urgency-dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.urgency-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid #ddd5c8;
  border-radius: 12px;
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bba99a;
}

.problem-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.problem-choice-btn {
  width: 100%;
  min-height: 72px;
  padding: 14px 12px;
  border: 1.5px solid white;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
  background: var(--navy);
  font-family: var(--font-th);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.problem-choice-btn:hover {
  border-color: var(--gold);
  color: #fff;
  box-shadow: var(--navy);
}

.problem-choice-btn:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(10, 214, 156, 0.25);
}

.problem-choice-btn.is-selected {
  background: var(--cream);
  border-color: #ddd5c8;
  color: var(--navy);
  box-shadow: 0 0 0 2px rgba(10, 214, 156, 0.35);
}

.cta-section .form-box .problem-choice-btn {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  color: var(--navy);
}

.cta-section .form-box .problem-choice-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--navy);
}

.cta-section .form-box .problem-choice-btn:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(10, 214, 156, 0.15);
}

.cta-section .form-box .problem-choice-btn.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--navy);
}

.problem-prefill-badge {
  margin-top: 8px;
}

/* CTA section inputs — clean white with subtle border */
.cta-section .form-group input,
.cta-section .form-group select,
.cta-section .form-group textarea {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  font-size: 14px;
}

.cta-section .form-group input:focus,
.cta-section .form-group select:focus,
.cta-section .form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(10, 214, 156, 0.15);
}

.cta-section .form-group input::placeholder,
.cta-section .form-group textarea::placeholder {
  color: #bbb;
}

.submit-btn {
  width: 100%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-th);
  font-size: 18px;
  font-weight: 800;
  padding: 18px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  margin-top: 16px;
  transition:
    background 0.2s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 214, 156, 0.3);
}

.submit-btn:hover {
  background: #08c288;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn::after {
  content: '';
}

.form-fine {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

.what-you-get {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.2);
}

.wg-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.wg-list {
  list-style: none;
}

.wg-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 12px;
}

.wg-check {
  width: 20px;
  height: 20px;
  background: rgba(10, 214, 156, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 11px;
  color: #027a58;
}

/* SUCCESS STATE */
.success-box {
  display: none;
  text-align: center;
  padding: 48px 40px;
}

.success-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.success-box h3 {
  font-family: var(--font-th);
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-box p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.success-box-cta {
  margin-top: 16px;
  font-weight: 700;
  color: var(--gold);
}

.success-box p.success-box-cta {
  color: var(--gold);
}

.success-box-note {
  margin-top: 48px;
  font-size: 14px;
  color: var(--muted);
}

.success-box p.success-box-note {
  color: var(--muted);
}

.reset-register-btn {
  margin-top: 8px;
  background: transparent;
  border: none;
  color: #888888;
  font-family: var(--font-th);
  font-size: 14px;
  font-weight: 400;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.reset-register-btn:hover {
  color: #555555;
}

/* FADE IN */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ===== TRY IJJI SECTION ===== */
.try-section {
  background: var(--navy);
  padding: 100px 24px;
}

.try-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.try-inner .section-label {
  color: rgba(10, 214, 156, 0.7);
  text-align: center;
}
.try-inner .section-title {
  color: #fff;
  margin-bottom: 16px;
}
.try-inner > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin-bottom: 48px;
}

.try-form-box {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  border: 1.5px solid #e8e0d0;
  box-shadow: 0 16px 64px rgba(13, 27, 62, 0.15);
  text-align: left;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.try-form-box h3:not(.try-section-heading) {
  font-family: var(--font-th);
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 24px;
  text-align: center;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-row-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.form-section-label {
  font-family: var(--font-th);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 16px;
  padding-top: 20px;
  border-top: 1.5px dashed #e8e0d0;
}

.form-section-label:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Major try-form section groupings */
.try-form-group {
  background: #fff;
  border: 1.5px solid #e8e0d0;
  border-radius: 14px;
  padding: 24px 22px;
  margin-top: 24px;
}
.try-form-group:first-of-type {
  margin-top: 0;
}
.try-form-group .form-section-label:first-of-type {
  border-top: 1.5px dashed #e8e0d0;
  margin-top: 28px;
  padding-top: 20px;
}
.try-form-group > .form-section-label:first-of-type,
.try-form-group > .form-group:first-of-type + .form-section-label {
  /* leave default */
}
.try-section-heading {
  font-family: var(--font-th);
  font-size: 20px;
  font-weight: 700;
  color: #fff !important;
  background: var(--navy);
  margin: -24px -22px 20px !important;
  padding: 14px 22px !important;
  border-radius: 14px 14px 0 0;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px;
  text-align: left !important;
  line-height: 1.2;
}

/* Collapsible store detail panel */
.store-detail-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px dashed var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font-family: var(--font-th);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  margin-top: 14px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.store-detail-toggle .toggle-arrow {
  margin-left: auto;
  transition: transform 0.25s ease;
  font-style: normal;
}
.store-detail-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}
.store-detail-panel {
  display: none;
  margin-top: 4px;
}
.store-detail-panel.open {
  display: block;
}
.try-section-heading .step-num {
  background: var(--gold);
  color: var(--navy);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex: 0 0 28px;
  align-self: center !important;
  vertical-align: middle;
  position: relative;
  top: 0;
}
.try-section-heading .step-text {
  flex: 1 1 auto;
  text-align: left;
  margin-right: auto;
  line-height: 1.3;
  align-self: center !important;
}

/* Dynamic list items */
.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dynamic-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dynamic-item input,
.dynamic-item textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #ddd5c8;
  border-radius: 10px;
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text);
  background: var(--cream);
  outline: none;
}

.dynamic-item input:focus,
.dynamic-item textarea:focus {
  border-color: var(--gold);
}

.dynamic-item .item-num {
  font-weight: 700;
  color: var(--navy);
  min-width: 24px;
  text-align: center;
}

.add-remove-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-add,
.btn-remove {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-add {
  background: rgba(6, 214, 160, 0.1);
  border: 1.5px solid rgba(6, 214, 160, 0.3);
  color: #027a58;
}
.btn-add:hover {
  background: rgba(6, 214, 160, 0.2);
}

.btn-remove {
  background: rgba(255, 107, 107, 0.08);
  border: 1.5px solid rgba(255, 107, 107, 0.25);
  color: var(--coral);
}
.btn-remove:hover {
  background: rgba(255, 107, 107, 0.15);
}

/* Review item */
.review-item {
  background: var(--cream);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-item textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid #ddd5c8;
  border-radius: 12px;
  font-family: var(--font-en);
  font-size: 15px;
  background: #fff;
  color: var(--text);
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.review-item textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.review-item textarea::placeholder {
  color: #bba99a;
}

.star-rating {
  display: flex;
  gap: 4px;
  cursor: pointer;
}

.star-rating .star {
  font-size: 24px;
  color: #ddd5c8;
  cursor: pointer;
  transition: color 0.15s;
}

.star-rating .star.active {
  color: var(--gold);
}

/* Hours grid */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-width: 100%;
}

.hours-row {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}

.hours-row .day-label {
  min-width: 60px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.hours-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1.5px solid #ddd5c8;
  border-radius: 10px;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text);
  background: var(--cream);
  outline: none;
}

.hours-row input:focus {
  border-color: var(--gold);
}

/* Results */
.results-area {
  display: none;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--gold);
  position: relative;
}

/* LINE Friend Gate Overlay */
.line-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(13, 27, 62, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.line-gate-overlay.dismissed {
  display: none;
}

.line-gate-content {
  text-align: center;
  padding: 48px 24px;
  max-width: 420px;
}

.line-gate-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.line-gate-content h3 {
  font-family: var(--font-th);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.5;
}

.line-gate-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 28px;
}

.line-gate-content .line-add-btn {
  display: inline-block;
  margin-bottom: 16px;
  transition: transform 0.2s;
}

.line-gate-content .line-add-btn:hover {
  transform: scale(1.05);
}

.line-gate-content .line-add-btn img {
  height: 44px;
  border: 0;
}

.line-gate-dismiss {
  display: block;
  margin: 8px auto 0;
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-th);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.line-gate-dismiss:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.results-title {
  font-family: var(--font-th);
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-bottom: 6px;
}

.results-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.results-meta:empty {
  display: none;
}
.results-meta .meta-store {
  font-family: var(--font-th);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}
.results-meta .meta-problem {
  font-family: var(--font-th);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 480px;
  line-height: 1.5;
  background: var(--cream);
  border-radius: 8px;
  padding: 6px 14px;
}

.task-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1.5px solid #e8e0d0;
}

.task-extra {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.65;
}
.task-extra.success-metric {
  background: #eaf5ec;
  border-left: 4px solid #3b8c5a;
  color: #1f4a2d;
}
.task-extra.watch-out {
  background: #fcefe6;
  border-left: 4px solid #c95a2b;
  color: #6e2e13;
  margin-top: 8px;
}

/* ── Analysis Panel ───────────────────────── */
.analysis-panel {
  background: var(--navy);
  color: #f3ecdc;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.analysis-panel:empty {
  display: none;
}

.analysis-panel-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.analysis-panel-toggle .ap-title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 7px;
}

.analysis-panel-body {
  display: block;
  margin-top: 16px;
}

.ap-problem-tag {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #f3ecdc;
  margin-bottom: 16px;
  line-height: 1.6;
  border-left: 3px solid var(--gold);
}
.ap-problem-tag .ap-row-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.ap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.ap-row {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #f3ecdc;
}
.ap-row .ap-row-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

/* Locale sub-rows (who / prime_time / opening) */
.ap-locale-group {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 12px 14px;
}
.ap-locale-group .ap-row-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.ap-locale-subrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
  font-size: 13.5px;
  line-height: 1.6;
  color: #f3ecdc;
}
.ap-locale-subrow:last-child {
  border-bottom: none;
}
.ap-locale-subrow .sr-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  padding-top: 1px;
}
.ap-locale-subrow .sr-label {
  font-weight: 800;
  color: #d4af37;
  min-width: 80px;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.ap-locale-subrow .sr-body {
  flex: 1 1 auto;
}

.ap-competitors-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ap-comp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.ap-comp-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #f3ecdc;
}
.ap-comp-name {
  font-weight: 800;
  margin-bottom: 4px;
  font-size: 14px;
  color: #fff;
}
.ap-comp-meta {
  color: #c4b99a;
  font-size: 12px;
  line-height: 1.5;
}
.ap-no-comp {
  color: #c4b99a;
  font-size: 13px;
  font-style: italic;
}

.task-card .task-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.task-card .task-body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  text-indent: 2em;
}

.task-card .task-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.task-score .stars {
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 2px;
}

.task-score {
  position: relative;
}
.score-info-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.score-info-btn:hover {
  background: var(--navy);
  color: #fff;
}
.score-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  right: -8px;
  width: 200px;
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-th);
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.score-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 12px;
  border: 7px solid transparent;
  border-top-color: var(--navy);
}
.score-tip.open {
  display: block;
}

.results-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.btn-send-email {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-th);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 400px;
}

.btn-send-email:hover {
  background: #163a80;
  transform: translateY(-1px);
}

.btn-send-email:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-send-email.sent {
  background: var(--gold);
  color: var(--navy);
}

.btn-retry {
  display: block;
  margin: 24px auto 0;
  background: none;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-retry:hover {
  background: var(--navy);
  color: #fff;
}

.results-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.results-btn-row .btn-retry {
  margin: 0;
}

.btn-retry-edit {
  border-color: #b8a68c;
  color: #6b5c47;
  font-family: var(--font-th);
}
.btn-retry-edit:hover {
  background: #6b5c47;
  color: #f5e6c8;
}

.retry-feedback-card {
  width: 100%;
  max-width: 560px;
  margin: 18px auto 0;
  padding: 20px;
  background: #fff8e7;
  border: 1.5px solid #e6d3a8;
  border-radius: 14px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.08);
}
.retry-feedback-label {
  display: block;
  font-family: var(--font-th);
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}
.retry-feedback-card textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-th);
  font-size: 14px;
  color: #2a2a2a;
  border: 1.5px solid #ddd5c8;
  border-radius: 10px;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.5;
}
.retry-feedback-card textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.retry-feedback-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}
.btn-retry-submit {
  background: var(--navy);
  color: #f5e6c8;
  border-color: var(--navy);
  font-family: var(--font-th);
}
.btn-retry-submit:hover {
  background: #0d1830;
  color: #fff;
}
.btn-retry-cancel {
  font-family: var(--font-th);
  padding: 10px 20px;
  font-size: 14px;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Thinking overlay */
.thinking-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.thinking-overlay.active {
  display: flex;
}

.thinking-box {
  background: var(--navy);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 32px 36px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  color: #f3ecdc;
}
.thinking-box .thinking-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(212, 175, 55, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 20px;
}
.thinking-box .thinking-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 14px;
}
.thinking-box .thinking-text {
  font-size: 15px;
  line-height: 1.7;
  color: #e8dfc8;
  min-height: 52px;
  transition: opacity 0.3s;
}
.thinking-box .thinking-text.fade {
  opacity: 0;
}
.thinking-dots {
  display: inline-block;
  overflow: hidden;
  width: 0;
  animation: dots 1.4s steps(4, end) infinite;
  vertical-align: bottom;
}
@keyframes dots {
  0% {
    width: 0;
  }
  33% {
    width: 0.5em;
  }
  66% {
    width: 1em;
  }
  100% {
    width: 1.5em;
  }
}

/* ===== Tutorial / First-time guide ===== */
.tutorial-replay-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}
.tutorial-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff8e7;
  border: 1.5px solid #e6d3a8;
  color: var(--navy);
  font-family: var(--font-th);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.tutorial-replay-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.tutorial-replay-btn .tr-icon {
  font-size: 14px;
}

/* Choice modal */
.tutorial-choice-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(4px);
  z-index: 10100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tutorial-choice-modal.active {
  display: flex;
}
.tutorial-choice-card {
  background: #fff8e7;
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 28px 28px 24px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.tutorial-choice-card .tc-emoji {
  font-size: 38px;
  margin-bottom: 6px;
}
.tutorial-choice-card h3 {
  font-family: var(--font-th);
  font-size: 20px;
  color: var(--navy);
  margin: 4px 0 8px;
}
.tutorial-choice-card p {
  font-family: var(--font-th);
  font-size: 14.5px;
  color: #4a4536;
  line-height: 1.6;
  margin: 0 0 20px;
}
.tutorial-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tc-btn {
  font-family: var(--font-th);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 100px;
  cursor: pointer;
  border: 1.5px solid var(--navy);
  transition: all 0.2s;
  position: relative;
}
.tc-btn-primary {
  background: var(--navy);
  color: #f5e6c8;
}
.tc-btn-primary:hover {
  background: #0d1830;
}
.tc-btn-primary .tc-recommend {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: 1px;
}
.tc-btn-secondary {
  background: transparent;
  color: var(--navy);
}
.tc-btn-secondary:hover {
  background: var(--navy);
  color: #f5e6c8;
}

/* Spotlight + tooltip */
.tutorial-tour-active {
  /* When active, body gets this class so non-target form parts dim a bit */
}
.tutorial-spotlight {
  position: relative;
  z-index: 10050;
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.85),
    0 0 0 9999px rgba(17, 24, 39, 0.55);
  border-radius: 14px;
  transition: box-shadow 0.3s;
}
.tutorial-tooltip {
  position: absolute;
  z-index: 10080;
  background: var(--navy);
  color: #f5e6c8;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 16px 18px 14px;
  width: min(360px, 92vw);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-family: var(--font-th);
  pointer-events: auto;
}
.tutorial-tooltip::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 32px;
  width: 18px;
  height: 18px;
  background: var(--navy);
  border-left: 1.5px solid var(--gold);
  border-top: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.tt-step-num {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.tt-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.tt-body {
  font-size: 14px;
  line-height: 1.6;
  color: #e8dfc8;
  margin: 0 0 14px;
}
.tt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tt-btn {
  font-family: var(--font-th);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  border: 1.5px solid rgba(245, 230, 200, 0.4);
  background: transparent;
  color: #f5e6c8;
  transition: all 0.2s;
}
.tt-btn:hover {
  background: rgba(245, 230, 200, 0.12);
}
.tt-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.tt-btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.tt-btn-primary:hover {
  background: #c9a23d;
}
.tt-progress {
  font-size: 12px;
  color: rgba(245, 230, 200, 0.7);
  letter-spacing: 1px;
}

/* Post-result tip toast */
.tutorial-result-tip {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #f5e6c8;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 14px 18px;
  max-width: 440px;
  width: calc(100vw - 32px);
  font-family: var(--font-th);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 10070;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.tutorial-result-tip.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.tutorial-result-tip .trt-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tutorial-result-tip .trt-emoji {
  font-size: 22px;
  line-height: 1;
}
.tutorial-result-tip .trt-text {
  flex: 1;
}
.tutorial-result-tip .trt-close {
  background: transparent;
  border: none;
  color: rgba(245, 230, 200, 0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}
.tutorial-result-tip .trt-close:hover {
  color: #f5e6c8;
}

@media (max-width: 600px) {
  .tutorial-tooltip {
    width: calc(100vw - 32px);
  }
  .tutorial-replay-row {
    justify-content: center;
  }
}

/* Google Places search */
.places-search-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.places-search-wrapper input {
  width: 100%;
  padding: 16px 18px 16px 44px;
  border: 2px solid var(--gold);
  border-radius: 14px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.places-search-wrapper input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(10, 214, 156, 0.15);
}

.places-search-wrapper::before {
  content: '📍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}

.places-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e8e0d0;
  border-radius: 12px;
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(13, 27, 62, 0.12);
  display: none;
}

.places-dropdown.show {
  display: block;
}

/* Locale autocomplete — reuses places-dropdown visuals */
.locale-search-wrapper {
  position: relative;
}
.locale-search-wrapper input[type='text'] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e8e0d0;
  border-radius: 10px;
  font-family: var(--font-en);
  font-size: 15px;
  background: var(--cream);
  outline: none;
}
.locale-search-wrapper input[type='text']:focus {
  border-color: var(--navy);
}
.locale-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e8e0d0;
  border-radius: 10px;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(13, 27, 62, 0.12);
  display: none;
}
.locale-dropdown.show {
  display: block;
}
.locale-item {
  padding: 10px 14px;
  cursor: pointer;
  font-family: var(--font-th);
  font-size: 14px;
  border-bottom: 1px solid #f5eeda;
}
.locale-item:last-child {
  border-bottom: none;
}
.locale-item:hover,
.locale-item.active {
  background: var(--cream);
}
.locale-item .locale-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.places-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0ebe3;
  transition: background 0.15s;
}

.places-item:last-child {
  border-bottom: none;
}

.places-item:hover {
  background: var(--cream);
}

.places-item .place-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}

.places-item .place-addr {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.autofill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.3);
  color: #027a58;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.places-loading {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Competitor slots */
.competitor-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.competitor-slot {
  background: var(--cream);
  border: 1.5px dashed #ddd5c8;
  border-radius: 14px;
  padding: 16px;
  position: relative;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.competitor-slot.filled {
  border-style: solid;
  border-color: rgba(10, 214, 156, 0.4);
  background: #fff;
}

.competitor-slot .comp-search-wrapper {
  position: relative;
}

.competitor-slot .comp-search-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 36px;
  border: 1.5px solid #ddd5c8;
  border-radius: 10px;
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.competitor-slot .comp-search-wrapper input:focus {
  border-color: var(--gold);
}

.competitor-slot .comp-search-wrapper::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.competitor-slot .comp-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e8e0d0;
  border-radius: 10px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 6px 24px rgba(13, 27, 62, 0.1);
  display: none;
}

.competitor-slot .comp-dropdown.show {
  display: block;
}

.comp-slot-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comp-slot-label .slot-num {
  background: var(--navy);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.comp-filled-card {
  display: none;
}

.competitor-slot.filled .comp-search-wrapper {
  display: none;
}
.competitor-slot.filled .comp-filled-card {
  display: flex;
}

.comp-filled-card {
  align-items: center;
  gap: 12px;
}

.comp-filled-info {
  flex: 1;
  min-width: 0;
}

.comp-filled-info .comp-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comp-filled-info .comp-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.comp-filled-info .comp-meta .comp-stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.comp-remove-btn {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: var(--coral);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.15s;
}

.comp-remove-btn:hover {
  background: rgba(255, 107, 107, 0.2);
}

/* DOT NAV */
.dot-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.dot-nav-item {
  position: relative;
  cursor: pointer;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot-nav-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(29, 68, 151, 0.25);
  transition: all 0.3s ease;
}

.dot-nav-item.active .dot {
  background: var(--gold);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 8px rgba(10, 214, 156, 0.4);
}

.dot-nav-item .dot-label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-th);
  font-size: 11px;
  font-weight: 700;
  color: rgba(29, 68, 151, 0.5);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 4px;
}

.dot-nav-item:hover .dot-label,
.dot-nav-item.active .dot-label {
  opacity: 1;
  color: var(--navy);
}

/* On dark sections, make dots visible */
.dot-nav.on-dark .dot-nav-item .dot {
  background: rgba(255, 255, 255, 0.3);
}

.dot-nav.on-dark .dot-nav-item.active .dot {
  background: var(--gold);
}

.dot-nav.on-dark .dot-nav-item .dot-label {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(29, 68, 151, 0.85);
}

.dot-nav.on-dark .dot-nav-item:hover .dot-label,
.dot-nav.on-dark .dot-nav-item.active .dot-label {
  color: #fff;
}

/* TRY SECTION LOCK OVERLAY */
.try-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(13, 27, 62, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.try-lock-overlay.unlocked {
  display: none;
}

.try-lock-content {
  text-align: center;
  padding: 40px 24px;
  max-width: 400px;
}

.try-lock-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.try-lock-content h3 {
  font-family: var(--font-th);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.try-lock-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* SCROLL SNAP */
html {
  scroll-snap-type: y proximity;
}

[data-section] {
  scroll-snap-align: start;
}

/* ===== TABLET (max-width: 768px) ===== */
@media (max-width: 768px) {
  .section {
    padding: 72px 20px;
  }
  .how-bg,
  .try-section,
  .cta-section {
    padding: 72px 20px;
  }
  .pain-card {
    padding: 28px 24px;
  }
  .value-card {
    padding: 28px 22px;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    padding: 40px 60px 48px 36px;
  }
  .hero-content {
    max-width: 620px;
  }

  /* How section stacks on tablet */
  .how-inner {
    flex-direction: column;
    gap: 48px;
  }
  .how-left {
    flex: 1 1 auto;
  }
  .how-right {
    width: 100%;
  }
  .iphone-frame {
    width: 260px;
    height: 530px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 20px 24px;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    padding: 16px 20px;
  }
}

/* ===== MOBILE (max-width: 600px) ===== */
@media (max-width: 600px) {
  .section {
    padding: 56px 16px;
  }
  .how-bg,
  .try-section,
  .cta-section {
    padding: 56px 16px;
  }
  .section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 36px;
  }

  /* Hero mobile */
  .hero-content {
    padding: 40px 16px;
    max-width: 100%;
  }
  .hero-card {
    clip-path: none;
    padding: 32px 24px 36px;
    border-radius: 12px;
  }
  .hero h2 {
    font-size: clamp(24px, 7vw, 36px);
  }
  .hero-sub {
    font-size: 14px;
    max-width: 100%;
  }
  .hero-cta {
    padding: 14px 28px;
    font-size: 15px;
    margin-top: 24px;
  }

  .hero-badge {
    font-size: 12px;
  }
  .logo {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .pain-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pain-card {
    padding: 24px 20px;
  }
  .pain-card h3 {
    font-size: 18px;
  }
  .pain-emoji {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .step-num {
    width: 56px;
    height: 56px;
    font-size: 20px;
    margin-bottom: 14px;
  }
  .step h4 {
    font-size: 15px;
  }
  .step p {
    font-size: 13px;
  }
  .iphone-frame {
    width: 220px;
    height: 450px;
    border-radius: 36px;
  }
  .iphone-frame::before {
    width: 70px;
    height: 22px;
    top: 8px;
  }
  .iphone-placeholder .ip-header {
    padding: 36px 12px 14px;
    font-size: 14px;
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .value-card {
    padding: 24px 20px;
  }
  .value-card h4 {
    font-size: 18px;
  }
  .value-section {
    padding: 60px 16px 80px;
    min-height: 100svh;
  }

  .form-box,
  .try-form-box {
    padding: 28px 20px;
  }
  .form-row {
    flex-direction: column;
  }
  .form-row-1-2 {
    grid-template-columns: 1fr;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 14px;
  }
  .form-section-label {
    font-size: 14px;
    margin: 20px 0 12px;
    padding-top: 16px;
  }
  .submit-btn {
    padding: 16px;
    font-size: 15px;
  }

  .places-search-wrapper input {
    padding: 14px 14px 14px 40px;
    font-size: 14px;
  }
  .places-dropdown {
    max-height: 200px;
  }

  .hours-row .day-label {
    min-width: 48px;
    font-size: 12px;
  }
  .hours-row input {
    padding: 8px 8px;
    font-size: 12px;
  }

  .star-rating .star {
    font-size: 22px;
  }
  .star-rating {
    gap: 2px;
  }
  .review-item {
    padding: 10px;
  }

  .competitor-slot {
    padding: 12px;
  }
  .comp-slot-label {
    font-size: 11px;
  }

  .task-card {
    padding: 20px 16px;
  }
  .task-card .task-title {
    font-size: 14px;
  }
  .task-card .task-body {
    font-size: 14px;
  }

  .dot-nav {
    right: 10px;
    gap: 10px;
  }
  .dot-nav-item .dot-label {
    display: none;
  }
  .dot-nav-item .dot {
    width: 7px;
    height: 7px;
  }
  .dot-nav-item.active .dot {
    width: 10px;
    height: 10px;
  }

  /* CTA section stacks on mobile */
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cta-left .section-title {
    font-size: clamp(28px, 7vw, 42px);
    text-align: center;
  }
  .cta-right .section-label {
    text-align: center;
  }
  .form-box {
    padding: 24px 20px;
  }

  /* Benefit section — center align on mobile */
  .benefit-section {
    padding: 60px 20px;
    justify-content: center;
  }
  .benefit-inner {
    text-align: center;
    max-width: 100%;
  }
  .benefit-title {
    font-size: clamp(28px, 7vw, 40px);
  }
  .benefit-sub {
    font-size: 14px;
    margin-bottom: 32px;
  }
  .benefit-card {
    padding: 24px 20px;
    text-align: left;
  }
  .benefit-card-title {
    font-size: 18px;
  }
  .benefit-list li {
    font-size: 14px;
    gap: 10px;
  }
  .benefit-check {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/* ===== SMALL PHONES (max-width: 400px) ===== */
@media (max-width: 400px) {
  .hero-content {
    padding: 32px 12px;
  }
  .hero-card {
    padding: 24px 16px 28px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero-sub {
    font-size: 13px;
  }

  .section {
    padding: 44px 12px;
  }
  .how-bg,
  .try-section,
  .cta-section {
    padding: 44px 12px;
  }

  .form-box,
  .try-form-box {
    padding: 20px 14px;
  }
  .form-group label {
    font-size: 13px;
  }

  .steps {
    grid-template-columns: 1fr;
  }
  .iphone-frame {
    width: 200px;
    height: 410px;
    border-radius: 32px;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .value-section {
    padding: 48px 12px 60px;
  }

  .hours-row .day-label {
    min-width: 40px;
    font-size: 11px;
  }
  .hours-row input {
    padding: 6px 6px;
    font-size: 11px;
  }
  .hours-row {
    gap: 4px;
  }

  .dot-nav {
    right: 6px;
    gap: 8px;
  }
  .dot-nav-item {
    width: 12px;
    height: 12px;
  }
  .dot-nav-item .dot {
    width: 6px;
    height: 6px;
  }
  .dot-nav-item.active .dot {
    width: 9px;
    height: 9px;
  }
}
