/* Waylet marketing site — tokens per design handoff */

:root {
  --page: #f6eedd;
  --desk: #efe6d3;
  --ink: #2b2722;
  --ink-hover: #3a352e;
  --body: #5f584b;
  --muted: #7d7466;
  --quiet: #9b9080;
  --label: #8a8172;
  --terracotta: #a8502c;
  --terracotta-hover: #b25b34;
  --tag-bg: #f0e0c4;
  --band: #e9dcc2;
  --bezel: #e2d6bd;
  --screen-bg: #ece3d2;
  --button-ink: #f5f1e8;
  --hairline: rgba(120, 108, 80, 0.16);
  --bezel-edge: rgba(120, 108, 80, 0.14);
  --bezel-sheen: rgba(255, 255, 255, 0.4);
  --shadow-screen: rgba(60, 50, 30, 0.14);

  --font: 'Nunito Sans', ui-sans-serif, system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--desk);
  font-family: var(--font);
}

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-hover); }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.page {
  min-height: 100dvh;
  background: var(--page);
}

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

.btn {
  display: inline-block;
  font-weight: 800;
  color: var(--button-ink);
  background: var(--ink);
  border-radius: 999px;
  transition: background .15s ease;
}
.btn:hover { background: var(--ink-hover); color: var(--button-ink); }

.btn-header { font-size: 14px; padding: 11px 22px; }
.btn-band { flex: none; font-size: 16px; padding: 16px 34px; }
.btn-block { display: block; text-align: center; font-size: 16px; padding: 15px 24px; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 40px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.wordmark {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pill {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--tag-bg);
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1;
}

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

.hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 40px 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.subhead {
  margin: 14px auto 0;
  max-width: 500px;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}

/* --- Phone (shared by row + rail) --------------------------------------- */

.bezel {
  width: 100%;
  background: var(--bezel);
  padding: 9px;
  border-radius: 30px;
  box-shadow: inset 0 1px 0 var(--bezel-sheen);
}

.screen {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--bezel-edge);
  background: var(--screen-bg);
  box-shadow: 0 14px 30px var(--shadow-screen);
  aspect-ratio: 1125 / 2436;
  width: 100%;
}

.screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.caption { text-align: center; padding: 0 4px; }

/* Uppercasing is done in CSS, not the markup, so screen readers don't
   spell the labels out letter by letter. */
.caption-label {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.caption-body {
  margin-top: 7px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

/* --- Desktop screen row ------------------------------------------------- */

.screen-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 40px 0;
}

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

/* --- Mobile carousel (hidden on desktop) -------------------------------- */

.carousel { display: none; }

.rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 22px 0 6px;
}
.rail::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
}

.slide .bezel { width: 212px; }
.slide .screen { box-shadow: 0 12px 26px var(--shadow-screen); }
.slide .caption { max-width: 290px; padding: 0; }
.slide .caption-body { margin-top: 6px; }

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 0 0;
}

.dot {
  position: relative;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 108, 80, 0.3);
  cursor: pointer;
  transition: background .2s ease;
}
.dot.is-active { background: var(--terracotta); }
/* Expands the touch target to ~31px without disturbing the 7px visual. */
.dot::after { content: ''; position: absolute; inset: -12px; }

/* --- Founder note ------------------------------------------------------- */

.note {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 660px;
  margin: 0 auto;
  padding: 48px 40px 0;
  text-align: center;
}

.rule {
  width: 26px;
  height: 3px;
  background: var(--terracotta-hover);
  border-radius: 2px;
  margin-bottom: 18px;
}

.note p {
  margin: 0;
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--terracotta);
  text-wrap: pretty;
}

.note-mobile { display: none; }

/* --- Desktop CTA band --------------------------------------------------- */

.band-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 40px 0;
}

.band {
  background: var(--band);
  border-radius: 20px;
  padding: 30px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.band-title {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.band-sub {
  margin-top: 6px;
  font-weight: 500;
  font-size: 15px;
  color: #6b6355;
}

/* --- Mobile CTA (hidden on desktop) ------------------------------------- */

.cta-mobile { display: none; }

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

.site-footer {
  max-width: var(--max);
  margin: 26px auto 0;
  border-top: 1px solid var(--hairline);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.footer-label { color: var(--label); }

/* --- 700–899px: keep the desktop layout, wrap the screens 2×2 ----------- */

@media (min-width: 700px) and (max-width: 899px) {
  .screen-row { max-width: 542px; }
}

/* --- Under 700px: mobile layout ----------------------------------------- */

@media (max-width: 699px) {
  .page { max-width: 430px; margin: 0 auto; }

  .site-header { padding: 16px 20px; }
  .brand { gap: 9px; }
  .wordmark { font-size: 18px; }
  .pill { font-size: 9px; padding: 4px 8px; }
  .btn-header { font-size: 13px; padding: 9px 18px; }

  .hero { padding: 14px 24px 0; }
  .hero h1 { font-size: 32px; line-height: 1.06; letter-spacing: -0.025em; }
  .subhead { margin-top: 10px; font-size: 15.5px; line-height: 1.45; }

  .screen-row { display: none; }
  .carousel { display: block; }

  .note { padding: 26px 28px 0; }
  .rule { margin-bottom: 12px; }
  .note p { font-size: 15px; line-height: 1.5; }
  .note-desktop { display: none; }
  .note-mobile { display: block; }

  .band-wrap { display: none; }
  .cta-mobile { display: block; padding: 24px 20px 0; }

  .site-footer {
    margin: 20px 20px 0;
    padding: 16px 0 28px;
    font-size: 13px;
  }
  .hide-mobile { display: none; }
}
