/* Domino Lakay website. Palette and fonts from the app's style guide (assets-src/style-bible). */
@font-face {
  font-family: 'Lilita One';
  src: url('fonts/lilita-one-regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('fonts/atkinson-hyperlegible-next-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('fonts/atkinson-hyperlegible-next-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --sand: #fff4e2;
  --sand-deep: #e9d6b8;
  --white: #fff;
  --border: #e2cdaa;
  --ink: #2a1f17;
  --muted: #6b5a4a;
  --turquoise: #1fa59a;
  --turquoise-deep: #147a72;
  --mango: #f2b33d;
  --mango-deep: #c88a12;
  --coral: #c9472d;
  --radius: 18px;
  --lip: 5px;
  --rays: repeating-conic-gradient(#fdd46e 0deg 11.25deg, #fcc542 11.25deg 22.5deg);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font:
    400 18px/1.55 'Atkinson',
    system-ui,
    sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--turquoise-deep);
  font-weight: 700;
}
h1,
h2,
h3 {
  font-family: 'Lilita One', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
}
h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}
h3 {
  font-size: 1.45rem;
}
.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 244, 226, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand img {
  height: 46px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--turquoise-deep);
}
@media (max-width: 720px) {
  .site-nav .nav-link {
    display: none;
  }
}

/* Buttons: raised on a lip, like the app */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font:
    400 1.25rem/1 'Lilita One',
    system-ui,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.btn:active {
  transform: translateY(var(--lip));
  box-shadow: none !important;
}
.btn-primary {
  background: var(--turquoise);
  color: var(--white);
  box-shadow: 0 var(--lip) 0 var(--turquoise-deep);
}
.btn-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 var(--lip) 0 #000;
}
.btn-light {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--border);
  box-shadow: 0 var(--lip) 0 var(--sand-deep);
}
.btn small {
  display: block;
  font:
    400 0.75rem/1 'Atkinson',
    sans-serif;
  opacity: 0.85;
}
.btn .store-text {
  text-align: left;
  line-height: 1.05;
}
.btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.btn-sm {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 1.05rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Hero */
.hero {
  overflow: hidden;
  background: #fcc542 var(--rays);
  background-position: 50% 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
}
.hero-copy {
  padding-bottom: 64px;
}
.hero-logo {
  width: min(420px, 90%);
  margin-bottom: 18px;
}
.hero .lead {
  font-size: 1.3rem;
  max-width: 34ch;
  margin: 0 0 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cta-note {
  margin-top: 16px;
  font-size: 0.95rem;
  opacity: 0.85;
}
.hero-phones {
  position: relative;
  height: 600px;
  align-self: end;
}
.phone {
  border: 10px solid var(--ink);
  border-radius: 46px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 14px 0 var(--turquoise-deep);
}
.hero-phones .phone {
  position: absolute;
  width: 270px;
}
.hero-phones .back {
  left: 0;
  bottom: -130px;
  transform: rotate(-7deg);
}
.hero-phones .front {
  right: 10px;
  bottom: -90px;
  transform: rotate(4deg);
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-logo,
  .hero .lead {
    margin-inline: auto;
  }
  .cta-row {
    justify-content: center;
  }
  .hero-copy {
    padding-bottom: 10px;
  }
  .hero-phones {
    height: 440px;
    width: min(440px, 100%);
    margin-inline: auto;
  }
  .hero-phones .phone {
    width: 210px;
  }
}

/* Sections */
section {
  padding: 84px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0;
}
.kicker {
  display: inline-block;
  background: var(--mango);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.features,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 var(--lip) 0 var(--border);
  padding: 26px;
}
.card .emoji {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 12px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.steps {
  counter-reset: step;
}
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--white);
  font:
    1.5rem 'Lilita One',
    sans-serif;
  margin-bottom: 14px;
}

/* Screens gallery */
.screens {
  background: var(--white);
  border-block: 2px solid var(--border);
}
.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 30px;
}
.gallery figure {
  margin: 0;
  flex: 0 0 240px;
  scroll-snap-align: center;
  text-align: center;
}
.gallery .phone {
  border-width: 8px;
  border-radius: 38px;
  box-shadow: 0 10px 0 var(--turquoise-deep);
}
.gallery figcaption {
  margin-top: 22px;
  font-weight: 700;
}

/* Lakou band */
.lakou {
  position: relative;
  color: var(--white);
  background: url('img/lakou.webp') center / cover;
  text-align: center;
  padding: 120px 0;
}
.lakou::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 31, 23, 0.55);
}
.lakou .wrap {
  position: relative;
}
.lakou p {
  font-size: 1.25rem;
  max-width: 40ch;
  margin: 0 auto 30px;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq details {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
}
.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Final call to action */
.final {
  text-align: center;
  background: #fcc542 var(--rays);
}
.final .icon {
  width: 120px;
  border-radius: 28px;
  margin: 0 auto 22px;
  box-shadow: 0 var(--lip) 0 var(--mango-deep);
}
.final .cta-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--sand-deep);
  padding: 40px 0;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.site-footer a {
  color: var(--white);
  font-weight: 400;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* Legal and support pages */
.page {
  padding: 56px 0 84px;
}
.page .wrap {
  max-width: 820px;
}
.page h2 {
  font-size: 1.6rem;
  margin-top: 1.8em;
}
.page .updated {
  color: var(--muted);
  margin-top: -6px;
}
.page li {
  margin-bottom: 6px;
}
.table-scroll {
  overflow-x: auto;
}
.page table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 2px solid var(--border);
  font-size: 0.95rem;
}
.page th,
.page td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.page th {
  background: var(--sand);
}

/* Support form */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 34px;
}
@media (max-width: 640px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}
.form {
  display: grid;
  gap: 18px;
}
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--turquoise);
}
.error {
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 4px;
  display: none;
}
.invalid input,
.invalid select,
.invalid textarea {
  border-color: var(--coral);
}
.invalid .error {
  display: block;
}
.check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--turquoise);
}
.success {
  text-align: center;
}
.success .emoji {
  font-size: 3rem;
}
.ticket {
  display: inline-block;
  font:
    1.6rem 'Lilita One',
    sans-serif;
  color: var(--turquoise-deep);
  background: var(--sand);
  border: 2px dashed var(--turquoise);
  border-radius: 14px;
  padding: 6px 18px;
  margin: 8px 0 16px;
}
