/*
 * YesPlay — "Coming soon to India" landing.
 * Breakpoints follow the Figma frames:
 *   mobile  < 768   (390 frame)
 *   tablet  768–1199 (768 frame)
 *   desktop 1200–1679 (1440 frame)
 *   wide    ≥ 1680  (1920 frame)
 */

:root {
  --orange: #f5791f;
  --orange-hover: #e0670f;
  --orange-pressed: #c2570b;
  --navy: #112232;
  --yellow: #f4d330;

  --text-secondary: #637380;
  --text-muted: rgba(17, 34, 50, 0.65);
  --text-soft: rgba(17, 34, 50, 0.75);
  --text-subtle: rgba(17, 34, 50, 0.5);
  --text-placeholder: rgba(17, 34, 50, 0.45);
  --text-disabled: #9aa4ad;
  --text-error: #e5484d;

  --bg-page: #f3f4f6;
  --bg-surface: #fff;
  --bg-subtle: #f6f7f9;
  --bg-accent-subtle: #fff3ea;
  --bg-input-prefix: rgba(17, 34, 50, 0.04);
  --bg-input-error: #fff4f4;
  --bg-disabled: #e3e6ea;

  --border-input: rgba(17, 34, 50, 0.16);
  --border-input-hover: rgba(17, 34, 50, 0.35);
  --border-card: rgba(17, 34, 50, 0.06);
  --border-brand-subtle: rgba(245, 121, 31, 0.3);
  --border-error: #e5484d;

  --radius-pill: 999px;
  --radius-section: 32px;
  --radius-section-mobile: 24px;
  --radius-card: 24px;
  --radius-tile: 18px;
  --radius-sticker: 12px;

  --shadow-chip: 0 8px 24px rgba(17, 34, 50, 0.12);
  --shadow-card: 0 20px 50px rgba(5, 13, 20, 0.12);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-page);
  color: var(--navy);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.show-mobile {
  display: inline;
}

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .show-mobile {
    display: none;
  }

  .hide-mobile {
    display: inline;
  }
}

/* ---------- Icons (structure mirrors the Figma icon instances) ---------- */

.ico {
  position: relative;
  flex-shrink: 0;
  width: var(--ico, 18px);
  height: var(--ico, 18px);
}

.ico__g {
  position: absolute;
  inset: var(--g, 0);
}

.ico__i {
  position: absolute;
  inset: var(--i, 0);
}

.ico__i picture,
.ico__i img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.ico--arrow { --g: 29.17%; --i: -10%; }
.ico--sport { --g: 8.33%; --i: -5%; }
.ico--casino { --g: 12.5%; --i: -5.56%; }
.ico--cricket { --g: 8.33% 8.33% 8.67% 8.67%; --i: -5.02%; }
.ico--gift { --g: 12.5%; --i: -7.41%; }
.ico--phone { --g: 8.33% 20.83%; --i: -5% -7.14%; }
.ico--calendar { --g: 8.33% 12.5%; --i: -5% -5.56%; }
.ico--check { --g: 25% 16.67% 29.17% 16.67%; --i: -10.91% -7.5%; }
.ico--success-phone { --g: 8.33% 20.83%; --i: -6% -8.57%; }

@media (min-width: 768px) {
  .ico--gift { --i: -6.06%; }
}

/* ---------- Layout ---------- */

.page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100vh;
  padding: 8px;
}

.main {
  display: flex;
  flex-direction: column;
  gap: inherit;
}

@media (min-width: 768px) {
  .page {
    gap: 16px;
    padding: 12px;
  }
}

@media (min-width: 1200px) {
  .page {
    padding: 16px;
  }
}

/* ---------- Logo ---------- */

.logo {
  display: block;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #fff;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--orange-hover);
}

.btn:active {
  background: var(--orange-pressed);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--navy);
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
}

.nav__logo {
  width: 86px;
  height: 42px;
}

/* Button S on mobile, Button M from tablet up */
.nav__cta {
  --ico: 15px;
  padding: 10px 16px;
  font-size: 13px;
}

@media (min-width: 768px) {
  .nav {
    padding: 12px 28px;
  }

  .nav__logo {
    width: 110px;
    height: 54px;
  }

  .nav__cta {
    --ico: 17px;
    padding: 13px 24px;
    font-size: 15px;
  }
}

/* ---------- Hero ---------- */

/*
 * --u is "one design pixel" of the hero composition (headline, dice, chips, sticker).
 * It is resolved against the hero content width (cqw excludes padding), so at each Figma
 * frame width it equals 1px and in between the composition scales proportionally.
 */
.hero {
  --u: clamp(0.8px, calc(100cqw / 338), 1.25px);
  --dw: 320;
  --fs1: 42;
  --fs2: 60;
  --l1-mb: 0;
  --d-gap: 2;
  --d-mb: -10;
  --dice: 220;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  padding: 28px 18px 24px;
  border-radius: var(--radius-section-mobile);
  background: var(--bg-surface);
  container-type: inline-size;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
}

.hero__display {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: calc(var(--u) * var(--dw));
  height: calc(var(--u) * 362);
}

.display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * var(--d-gap));
  margin-bottom: calc(var(--u) * var(--d-mb));
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
}

.display__l1 {
  margin-bottom: calc(var(--u) * var(--l1-mb));
  color: var(--navy);
  font-size: calc(var(--u) * var(--fs1));
}

.display__l2 {
  color: var(--orange);
  font-size: calc(var(--u) * var(--fs2));
}

.dice {
  flex-shrink: 0;
  width: calc(var(--u) * var(--dice));
  height: calc(var(--u) * var(--dice));
  max-width: none;
  object-fit: cover;
  filter: drop-shadow(0 30px 30px rgba(17, 34, 50, 0.25));
}

/* Chips and the sticker are anchored by their centre, in design px of the headline block */
.float {
  position: absolute;
  z-index: 2;
  left: calc(var(--u) * var(--x));
  top: calc(var(--u) * var(--y));
  transform: translate(-50%, -50%) rotate(var(--r));
  pointer-events: none;
}

.float--sticker { --x: 169.76; --y: 338.7; --r: -6deg; }
.float--sport { --x: 302.95; --y: 314.95; --r: -5.48deg; }
.float--casino { --x: 299.42; --y: 149.71; --r: 6deg; }
.float--cricket { --x: 48.97; --y: 249.83; --r: -6deg; }

.chip {
  --ico: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  box-shadow: var(--shadow-chip);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.sticker {
  padding: 6px 12px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sticker);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--navy);
  color: var(--navy);
  font-size: 13px;
  font-style: italic;
  font-weight: 900;
  line-height: normal;
  white-space: nowrap;
}

.hero__bottom {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.blurb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.blurb__text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

/* Button M, full width on mobile */
.blurb__btn {
  --ico: 17px;
  width: 100%;
  padding: 15px 24px;
  font-size: 15px;
}

/* Bonus card */
.bonus {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-tile);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-chip);
}

.bonus__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border-brand-subtle);
  border-radius: var(--radius-pill);
  background: var(--bg-accent-subtle);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.bonus__value {
  font-size: 26px;
  font-style: italic;
  font-weight: 800;
  line-height: normal;
  white-space: nowrap;
}

.bonus__desc {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: normal;
  white-space: pre-line;
}

.bonus__link {
  --ico: 18px;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--orange);
  font-size: 12px;
  line-height: normal;
}

.bonus__link:hover {
  text-decoration: underline;
}

/* ---------- Hero: tablet ---------- */

@media (min-width: 768px) {
  .hero {
    --u: clamp(1px, calc(100cqw / 664), 1.5px);
    --dw: 608;
    --fs1: 80;
    --fs2: 108;
    --l1-mb: -8;
    --d-gap: 0;
    --d-mb: -38;
    --dice: 206;

    gap: 0;
    padding: 40px;
    border-radius: var(--radius-section);
  }

  .hero__display {
    height: auto;
  }

  .float--sticker { --x: 307.32; --y: 313.86; --r: -6deg; }
  .float--sport { --x: -16.79; --y: 139.89; --r: -6deg; }
  .float--casino { --x: 621.25; --y: 73.66; --r: 5deg; }
  .float--cricket { --x: 425.66; --y: 184.83; --r: 4deg; }

  .hero__bottom {
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
  }

  .blurb {
    flex: 1 1 0;
    min-width: 0;
    align-items: flex-start;
  }

  .blurb__text {
    font-size: 16px;
    text-align: left;
  }

  /* Button L */
  .blurb__btn {
    --ico: 18px;
    width: auto;
    padding: 14px 26px;
    font-size: 16px;
  }

  .stats {
    flex-shrink: 0;
    width: 314px;
  }

  .bonus {
    padding: 18px 20px;
  }

  .bonus__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .bonus__value {
    font-size: 32px;
  }

  .bonus__desc {
    font-size: 13px;
  }
}

/* ---------- Hero: desktop ---------- */

@media (min-width: 1200px) {
  .hero {
    --u: calc(100cqw / 1296);
    --dw: 1140;
    --fs1: 150;
    --fs2: 200;
    --l1-mb: -14;
    --d-mb: -70;
    --dice: 380;

    aspect-ratio: 1408 / 798;
    padding: 48px 56px 40px;
  }

  .float--sticker { --x: 559.76; --y: 637.63; --r: -6deg; }
  .float--sport { --x: 50.02; --y: 187.43; --r: -6deg; }
  .float--casino { --x: 1146.1; --y: 100.23; --r: 5deg; }
  .float--cricket { --x: 795.31; --y: 344.72; --r: 4deg; }

  .chip {
    --ico: 18px;
    padding: 9px 16px;
    font-size: 15px;
  }

  .sticker {
    padding: 10px 18px;
    border-width: 3px;
    box-shadow: 5px 5px 0 var(--navy);
    font-size: 26px;
  }

  .hero__bottom {
    position: absolute;
    right: 60px;
    bottom: 52px;
    left: 56px;
    justify-content: space-between;
    width: auto;
    pointer-events: none;
  }

  .hero__bottom > * {
    pointer-events: auto;
  }

  .blurb {
    flex: 0 0 313px;
    margin-bottom: 8px;
  }
}

/* ---------- Hero: wide ---------- */

@media (min-width: 1680px) {
  .hero {
    --u: calc(100cqw / 1776);
    --dw: 1490;
    --fs1: 196;
    --fs2: 262;
    --l1-mb: -18;
    --d-mb: -92;
    --dice: 498;

    aspect-ratio: 1888 / 934;
  }

  .float--sticker { --x: 731.58; --y: 835.03; }
  .float--sport { --x: 63.83; --y: 245.05; }
  .float--casino { --x: 1497.77; --y: 130.41; }
  .float--cricket { --x: 1040.15; --y: 451.1; }
}

/* ---------- Register section ---------- */

.register {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 18px;
  border-radius: var(--radius-section-mobile);
  background: var(--bg-surface);
  scroll-margin-top: 16px;
}

.register__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
}

.h2 {
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.accent {
  color: var(--orange);
}

.lead {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-badge {
  --ico: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.icon-badge--orange { background: var(--orange); }
.icon-badge--yellow { background: var(--yellow); }
.icon-badge--navy { background: var(--navy); }

.feature__text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  /* Montserrat "normal" metrics; Chrome rounds `normal` up per line, Figma does not */
  line-height: 1.219;
}

.feature__title {
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
}

.feature__desc {
  color: var(--text-secondary);
  font-size: 14px;
}

@media (min-width: 768px) {
  .register {
    align-items: center;
    gap: 40px;
    padding: 48px 40px;
    border-radius: var(--radius-section);
  }

  .register__copy {
    gap: 24px;
    width: 100%;
  }

  .heading {
    gap: 24px;
  }

  .h2 {
    font-size: 44px;
  }

  .lead {
    font-size: 17px;
  }

  .icon-badge {
    --ico: 22px;
    width: 48px;
    height: 48px;
  }

  .feature__title {
    font-size: 17px;
  }
}

@media (min-width: 1200px) {
  .register {
    flex-direction: row;
    justify-content: center;
    gap: 64px;
    padding: 64px 56px;
  }

  .register__copy {
    flex: 0 1 732px;
    width: auto;
    min-width: 0;
  }

  .h2 {
    font-size: 52px;
  }

  .features {
    max-width: 462px;
  }
}

/* ---------- Form card ---------- */

.form-card {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.form-card.is-success {
  padding: 40px 32px;
}

@media (min-width: 768px) {
  .form-card {
    width: 520px;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .form-card {
    flex-shrink: 0;
    width: 500px;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__title {
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
}

.form__helper {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.form__legal {
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.55;
}

/* Input/Light */
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field__labels {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  line-height: normal;
  white-space: nowrap;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
}

.field__hint {
  font-size: 13px;
  opacity: 0.5;
}

.field__hint--required {
  color: var(--orange);
}

.field__box {
  display: flex;
  align-items: center;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  background: var(--bg-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.field__box:hover,
.field.is-filled .field__box {
  border-color: var(--border-input-hover);
}

/* Focus: 2px orange stroke + 4px halo, drawn with shadows so the field does not shift */
.field__box:focus-within {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange), 0 0 0 4px rgba(245, 121, 31, 0.18);
}

.field.is-error .field__box {
  border-color: var(--border-error);
  background: var(--bg-input-error);
  box-shadow: inset 0 0 0 0.5px var(--border-error);
}

.field__prefix {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  padding: 0 16px;
  background: var(--bg-input-prefix);
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
}

.field__divider {
  flex-shrink: 0;
  align-self: stretch;
  width: 1px;
  background: var(--border-input);
}

.field__input {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.field__input::placeholder {
  color: var(--text-placeholder);
  opacity: 1;
}

/* iOS zooms the page into inputs smaller than 16px */
@media (hover: none) and (pointer: coarse) {
  .field__input {
    font-size: 16px;
  }
}

.field__msg {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.3;
}

.field.is-error .field__msg {
  color: var(--text-error);
}

/* Anti-spam honeypot, invisible to people */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Button/Register */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 17px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit:hover {
  background: var(--orange-hover);
}

.btn-submit:active,
.btn-submit.is-loading {
  background: var(--orange-pressed);
}

.btn-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 34, 50, 0.1);
}

.btn-submit:disabled:not(.is-loading) {
  background: var(--bg-disabled);
  color: var(--text-disabled);
  cursor: not-allowed;
}

.btn-submit.is-loading {
  cursor: progress;
}

.btn-submit__spinner {
  display: none;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

.btn-submit.is-loading .btn-submit__spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success state */
.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.success__check {
  --ico: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(245, 121, 31, 0.35);
}

.success__title {
  font-size: 26px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
}

.success__text {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.success__number {
  --ico: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-accent-subtle);
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.success__edit {
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  cursor: pointer;
}

.success__edit:hover {
  text-decoration: underline;
}

.success__note {
  color: var(--text-subtle);
  font-size: 12px;
  line-height: normal;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
}

.footer__logo {
  width: 82px;
  height: 40px;
}

.footer__copy {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: normal;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 56px;
  }

  .footer__logo {
    width: 98px;
    height: 48px;
  }
}
