/*
 * Aveny marketing site.
 * Tokens mirror packages/shared-components/src/theme/aveny-default-theme.ts,
 * with the soft accent tints from the Aveny brand board (orange, lavender, mint, yellow).
 */

:root {
  /* Neutral / warm gray */
  --surface-1: #fefefd;
  --surface-2: #f7f7f5;
  --surface-3: #efedea;
  --line: #e3e1de;
  --line-strong: #d4d2cf;
  --text-high: #141414;
  --text: #2b2b2b;
  --text-muted: #5a696c;
  --text-soft: #6b7a7d;
  --ink: #1c1c1c;

  /* Teal (primary) */
  --teal-50: #d8ebe5;
  --teal-100: #b3dfdc;
  --teal-200: #87bfb1;
  --teal-400: #49a294;
  --teal-500: #318174;
  --teal-700: #33887b;
  --teal-900: #1a5653;
  --green-900: #00261f;

  /* Brand-board tints */
  --tint-lavender: #cfcff0;
  --tint-mint: #d9ebdd;
  --tint-peach: #f2caa9;
  --tint-yellow: #ffeeb4;
  --accent-orange: #d2690a;
  --red-600: #c44536;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 24px;
  --r-xl: 40px;
  --r-pill: 80px;

  /* Type */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;

  /* Layout */
  --gutter: 20px;
  --container: 1280px;
  --container-narrow: 760px;
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  background: var(--surface-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-500);
  text-decoration: none;
}
a:hover {
  color: var(--teal-700);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-high);
  margin: 0;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow {
  max-width: var(--container-narrow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Shared type styles ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.label__num {
  color: var(--teal-500);
}
.label--light,
.label--light .label__num {
  color: rgb(255 255 255 / 0.7);
}

.display {
  font-size: clamp(36px, 5.6vw, 76px);
}
.display--xl {
  font-size: clamp(48px, 9.5vw, 150px);
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--text-muted);
  max-width: 34em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.18s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--primary {
  background: var(--teal-500);
  color: #fff;
}
.btn--primary:hover {
  background: var(--teal-700);
  color: #fff;
}
.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: #000;
  color: #fff;
}
.btn--light {
  background: var(--surface-1);
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
  color: var(--ink);
}
.btn--ghost {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  border-color: rgb(255 255 255 / 0.4);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  color: #fff;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.site-header--light,
.site-header.is-scrolled {
  position: sticky;
  background: rgb(254 254 253 / 0.86);
  backdrop-filter: blur(14px);
  color: var(--text-high);
  box-shadow: inset 0 -1px 0 var(--line);
}
.site-header.is-scrolled {
  position: fixed;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 26px;
  width: auto;
}
.brand__dark {
  display: none;
}
.site-header--light .brand__light,
.site-header.is-scrolled .brand__light {
  display: none;
}
.site-header--light .brand__dark,
.site-header.is-scrolled .brand__dark {
  display: block;
}
.nav {
  display: none;
  gap: 36px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a {
  color: inherit;
  opacity: 0.8;
}
.nav a:hover,
.nav a[aria-current] {
  opacity: 1;
  color: inherit;
}
.site-header .btn {
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
}
.site-header--light .btn--light,
.site-header.is-scrolled .btn--light {
  background: var(--ink);
  color: #fff;
}

/* ---------- Grid lines (decorative) ---------- */

.gridlines {
  position: relative;
}
.gridlines::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--grid-color, rgb(20 20 20 / 0.06)) 0 1px,
    transparent 1px calc(100% / 6)
  );
  background-size: 100% 100%;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 15%,
    #000 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 15%,
    #000 85%,
    transparent
  );
}

/* ---------- Hero tag + shared dots ---------- */

.hero__tag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.85);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__tag::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.ui-card__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}
.ui-card__dot svg {
  width: 12px;
  height: 12px;
}
.ui-card__dot--lavender {
  background: var(--tint-lavender);
  color: #4b4b9a;
}
.ui-card__dot--mint {
  background: var(--tint-mint);
  color: var(--teal-900);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 10vw, 150px) 0;
}
.section--tint {
  background: var(--surface-2);
}
.section__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section__head .display {
  max-width: 16ch;
}

/* Statement */

.statement {
  text-align: left;
}
.statement .display {
  max-width: 20ch;
  font-weight: 400;
}
.statement .display em {
  font-style: normal;
  color: var(--teal-500);
}
.statement__row {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}
.statement__row .lede {
  color: var(--text-muted);
}

/* Propositions */

.prop {
  display: grid;
  gap: 32px;
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.prop:last-of-type {
  border-bottom: 1px solid var(--line);
}
.prop__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--teal-500);
}
.prop__copy {
  display: grid;
  gap: 18px;
}
.prop__copy h3 {
  font-size: clamp(30px, 3.4vw, 46px);
  max-width: 14ch;
}
.prop__copy p {
  color: var(--text-muted);
  max-width: 44ch;
}
.prop__media {
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.prop__media img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}
.prop__media--lavender {
  background: var(--tint-lavender);
}
.prop__media--peach {
  background: var(--tint-peach);
}
.prop__media--mint {
  background: var(--tint-mint);
}

/* Numbers */

.numbers {
  background: var(--ink);
  color: #fff;
  --grid-color: rgb(255 255 255 / 0.07);
}
.numbers .container {
  position: relative;
  display: grid;
  gap: 56px;
}
.numbers__intro {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.numbers__intro img {
  width: 40px;
  height: 40px;
}
.numbers__intro h2 {
  color: #fff;
}
.numbers__intro p {
  color: rgb(255 255 255 / 0.72);
  max-width: 34em;
  font-size: 18px;
}
.numbers__grid {
  display: grid;
  gap: 0;
  margin: 0;
}
.stat {
  border-top: 1px solid rgb(255 255 255 / 0.16);
  padding: 28px 0;
  display: grid;
  gap: 8px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  margin: 0;
}
.stat__value small {
  font-size: 0.4em;
  color: rgb(255 255 255 / 0.6);
  letter-spacing: 0;
}
.stat__label {
  color: rgb(255 255 255 / 0.7);
  font-size: 15px;
  margin: 0;
}

/* FAQ */

.faq {
  display: grid;
  gap: 0;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  color: var(--text-high);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .prop__num {
  font-size: 12px;
}
.faq summary .plus {
  position: relative;
  width: 24px;
  height: 24px;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--text-high);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.faq summary .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq details[open] summary .plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq details p {
  color: var(--text-muted);
  padding: 0 0 30px;
  max-width: 60ch;
}
.faq__more {
  margin-top: 32px;
  color: var(--text-muted);
}

/* CTA band */

.cta {
  position: relative;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  padding: clamp(96px, 12vw, 180px) 0;
}
.cta__media {
  position: absolute;
  inset: 0;
}
.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgb(20 20 20 / 0.9),
    rgb(20 20 20 / 0.55) 60%,
    rgb(20 20 20 / 0.3)
  );
}
.cta .container {
  position: relative;
  display: grid;
  gap: 40px;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: rgb(255 255 255 / 0.8);
}
.cta__panel {
  background: rgb(254 254 253 / 0.96);
  color: var(--text);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  backdrop-filter: blur(10px);
}
.cta__panel h3 {
  font-size: 24px;
}
.cta__panel > p {
  color: var(--text-muted);
  margin-top: 8px;
}

/* Forms */

.form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text-high);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 15px 16px;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--teal-500);
  flex: none;
}
.form .btn {
  justify-self: start;
}
.form__note {
  font-size: 14px;
  color: var(--text-soft);
}
/* Honeypot: off-screen for people, still filled in by naive bots. */
.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
}
.form__status--ok {
  display: block;
  background: var(--tint-mint);
  color: var(--teal-900);
}
.form__status--error {
  display: block;
  background: #f8d1d7;
  color: var(--red-600);
}

/* Form card (support page) */

.form-card {
  max-width: 640px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 24px;
}
.form-card h2 {
  font-size: 28px;
}

/* Page (support / privacy) */

.page-hero {
  padding: 56px 0 32px;
  display: grid;
  gap: 16px;
}
.page-hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
}
.page-hero p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 34em;
}
.prose {
  padding-bottom: 120px;
}
.prose h2 {
  font-size: 26px;
  margin: 48px 0 14px;
}
.prose p,
.prose li {
  color: var(--text);
  margin: 0 0 14px;
}
.prose ol,
.prose ul {
  padding-left: 22px;
}
.prose address {
  font-style: normal;
  margin: 0 0 14px;
  padding-left: 18px;
  border-left: 2px solid var(--teal-200);
  color: var(--text-muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 8px 0 16px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--tint-mint);
  color: var(--teal-900);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  justify-self: start;
}
.pdf-link:hover {
  background: var(--teal-100);
  color: var(--green-900);
}

/* Footer */

.site-footer {
  background: var(--surface-2);
  padding: 64px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
}
.site-footer .container {
  display: grid;
  gap: 40px;
}
.site-footer__top {
  display: grid;
  gap: 32px;
}
.site-footer__brand p {
  max-width: 30em;
  margin-top: 16px;
}
.site-footer__brand img {
  height: 28px;
  width: auto;
}
.site-footer nav {
  display: grid;
  align-content: start;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer a {
  color: var(--text);
}
.site-footer a:hover {
  color: var(--teal-700);
}
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer__word {
  width: 100%;
  height: auto;
  opacity: 0.08;
  margin-top: 8px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-left,
.reveal-right {
  opacity: 0;
  translate: -64px 0;
  transition:
    opacity 0.8s ease,
    translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-right {
  translate: 64px 0;
}
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  translate: 0 0;
}
.no-js .reveal,
.no-js .reveal-left,
.no-js .reveal-right {
  opacity: 1;
  transform: none;
  translate: 0 0;
}

/* ---------- Responsive ---------- */

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
  .nav {
    display: flex;
  }
  .statement__row {
    grid-template-columns: 1fr 1fr;
  }
  .prop {
    grid-template-columns: 64px 1fr 1fr;
    gap: 40px;
  }
  .prop--flip .prop__num,
  .prop--flip .prop__media,
  .prop--flip .prop__copy {
    grid-row: 1;
  }
  .prop--flip .prop__num {
    grid-column: 1;
  }
  .prop--flip .prop__media {
    grid-column: 2;
  }
  .prop--flip .prop__copy {
    grid-column: 3;
  }
  .numbers .container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .numbers__grid {
    grid-template-columns: 1fr;
  }
  .cta .container {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
  .cta__panel {
    padding: 40px;
  }
  .form-card {
    padding: 48px;
  }
  .site-footer__top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .btn svg,
  .reveal,
  .site-header {
    transition: none;
  }
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    translate: 0 0;
    transition: none;
  }
}

/* ---------- Hero, variant B: two devices + USPs ---------- */

.hero-alt {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--text);
  padding: calc(var(--header-h) + 48px) 0 64px;
  --grid-color: rgb(20 20 20 / 0.05);
}
.hero-alt::after {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -260px;
  top: -120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, var(--tint-lavender), transparent 62%),
    radial-gradient(circle at 70% 70%, var(--tint-mint), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}
.hero-alt .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-alt__copy {
  display: grid;
  gap: 24px;
}
.hero-alt__copy .hero__tag {
  color: var(--text-muted);
}
.hero-alt h1 {
  font-size: clamp(42px, 6.2vw, 92px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 11ch;
}
.hero-alt h1 em {
  font-style: normal;
  color: var(--teal-500);
}
.hero-alt .lede {
  max-width: 30em;
}
.hero-alt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.usps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.usps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.usps .prop__num {
  padding-top: 4px;
}
.usps strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--text-high);
}
.usps span {
  display: block;
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 2px;
}

/* Devices */

.devices {
  position: relative;
  height: 640px;
  display: flex;
  justify-content: center;
}
.device {
  position: absolute;
  width: 272px;
  height: 580px;
  background: var(--ink);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.4) inset,
    0 40px 80px -30px rgb(20 20 20 / 0.45);
}
.device::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 20px;
  z-index: 2;
}
.device__screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface-1);
  color: var(--text-high);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  padding: 56px 16px 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.device--back {
  left: 50%;
  top: 0;
  transform: translateX(-4%) rotate(5deg);
  z-index: 1;
}
.device--front {
  left: 50%;
  top: 60px;
  transform: translateX(-96%) rotate(-5deg);
  z-index: 2;
}
.device--front .device__screen {
  background: var(--surface-2);
}

.scr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scr-hello {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.scr-hello small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 400;
  letter-spacing: 0;
}
.scr-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint-peach);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent-orange);
}
.scr-card {
  background: var(--surface-1);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--line);
}
.scr-card--dark {
  background: var(--green-900);
  color: #fff;
  border-color: transparent;
}
.scr-card__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.scr-card--dark .scr-card__label {
  color: rgb(255 255 255 / 0.65);
}
.scr-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
}
.scr-ring {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scr-ring__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(
    var(--teal-200) 0 62%,
    rgb(255 255 255 / 0.15) 62% 100%
  );
  display: grid;
  place-items: center;
}
.scr-ring__circle span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-900);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
}
.scr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.scr-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.scr-list li .ui-card__dot {
  width: 26px;
  height: 26px;
}
.scr-list li .ui-card__dot--peach {
  background: var(--tint-peach);
  color: var(--accent-orange);
}
.scr-list li .ui-card__dot--done {
  background: var(--teal-500);
  color: #fff;
}
.scr-list b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
}
.scr-list small {
  color: var(--text-soft);
  font-size: 10px;
}
.scr-list .due {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-orange);
  white-space: nowrap;
}
.scr-list .due--ok {
  color: var(--teal-500);
}
.scr-tabs {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.scr-tabs span {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--line-strong);
}
.scr-tabs span:first-child {
  background: var(--teal-500);
}

/* Chat screen */
.scr-chat {
  display: grid;
  gap: 10px;
}
.scr-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.scr-bubble--me {
  justify-self: end;
  background: var(--accent-orange);
  color: #fff;
  border-color: transparent;
  border-bottom-right-radius: 6px;
}
.scr-bubble--sophie {
  border-bottom-left-radius: 6px;
}
.scr-sophie {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scr-sophie i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tint-lavender), var(--teal-200));
  flex: none;
}
.scr-sophie b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
}
.scr-sophie small {
  color: var(--teal-500);
  font-size: 10px;
}
.scr-input {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 11px;
}
.scr-input span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-500);
}

/* Floating callouts around the devices */
.callout {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-1);
  box-shadow: 0 20px 40px -20px rgb(20 20 20 / 0.35);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-high);
  white-space: nowrap;
}
.callout .ui-card__dot {
  width: 26px;
  height: 26px;
}
.callout--1 {
  left: 0;
  top: 40px;
}
.callout--2 {
  right: 0;
  top: 300px;
}
.callout--3 {
  left: 8%;
  bottom: 20px;
}

@media (min-width: 720px) {
  .hero-alt .container {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
  }
  .hero-alt {
    padding-bottom: 80px;
  }
  .devices {
    height: 700px;
  }
  .device {
    width: 290px;
    height: 620px;
  }
  .device--front {
    top: 80px;
  }
}
@media (min-width: 1024px) {
  .hero-alt {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  .hero-alt .container {
    width: 100%;
  }
}
@media (max-width: 719px) {
  .devices {
    height: 560px;
    margin-top: 8px;
  }
  .device {
    width: 230px;
    height: 500px;
  }
  .device--back {
    transform: translateX(-22%) rotate(5deg);
  }
  .device--front {
    top: 50px;
    transform: translateX(-78%) rotate(-5deg);
  }
  .scr-list li:nth-child(n + 4),
  .scr-chat .scr-bubble:nth-child(n + 4) {
    display: none;
  }
  .callout--2 {
    top: 250px;
  }
  .callout--3 {
    left: 0;
  }
}

/* The light header is sticky and takes its own space, so the hero needs no offset. */
.site-header--light + main .hero-alt {
  padding-top: 48px;
}
@media (min-width: 1024px) {
  .site-header--light + main .hero-alt {
    min-height: calc(100svh - var(--header-h));
  }
}

/* Hero B on wider screens: callouts sit around the phones, never on top of them. */
.devices__callouts,
.devices__phones {
  display: contents;
}
@media (min-width: 720px) {
  .hero-alt .container {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .devices {
    height: 720px;
    justify-content: flex-start;
  }
  .callout {
    font-size: 13px;
    padding: 12px 18px 12px 12px;
  }
  .device {
    width: 230px;
    height: 500px;
  }
  .device--back {
    left: auto;
    right: -16px;
    top: 0;
    transform: rotate(5deg);
  }
  .device--front {
    left: 252px;
    top: 70px;
    transform: rotate(-5deg);
  }
  .callout--1 {
    left: 110px;
    top: 0;
  }
  .callout--2 {
    left: -16px;
    right: auto;
    top: 300px;
  }
  .callout--3 {
    left: 340px;
    bottom: 40px;
  }
}
@media (min-width: 1200px) {
  .devices {
    height: 780px;
  }
  .device {
    width: 270px;
    height: 580px;
  }
  .device--back {
    right: -60px;
  }
  .device--front {
    left: 250px;
  }
  .callout--1 {
    left: 190px;
  }
  .callout--2 {
    top: 350px;
  }
  .callout--3 {
    left: 420px;
  }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: 40px;
  align-items: start;
}
.contact__copy {
  display: grid;
  gap: 20px;
}
.contact .form-card {
  max-width: none;
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }
  .contact__copy {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* ---------- Callouts pop in, then float gently ---------- */

@keyframes callout-pop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  70% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes callout-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
.callout {
  opacity: 0;
  transform-origin: 20% 50%;
  animation:
    callout-pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both,
    callout-float 5s ease-in-out infinite;
}
.callout--1 {
  animation-delay: 0.7s, 1.25s;
}
.callout--2 {
  animation-delay: 1.1s, 1.65s;
}
.callout--3 {
  animation-delay: 1.5s, 2.05s;
}
.device {
  animation: device-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.device--back {
  animation-delay: 0.15s;
}
@keyframes device-in {
  from {
    opacity: 0;
    translate: 0 40px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .callout,
  .device {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Hero copy slides in from the left ---------- */

@keyframes slide-in-left {
  from {
    opacity: 0;
    translate: -48px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.hero-alt__copy > * {
  animation: slide-in-left 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-alt__copy > :nth-child(1) {
  animation-delay: 0.05s;
}
.hero-alt__copy > :nth-child(2) {
  animation-delay: 0.15s;
}
.hero-alt__copy > :nth-child(3) {
  animation-delay: 0.3s;
}
.hero-alt__copy > :nth-child(4) {
  animation-delay: 0.42s;
}

/* Parallax: once the entry animation is done, JS drives --py per phone. */
.device.is-in {
  animation: none;
  opacity: 1;
  translate: 0 var(--py, 0px);
  will-change: translate;
}

@media (prefers-reduced-motion: reduce) {
  .hero-alt__copy > * {
    animation: none;
  }
  .device.is-in {
    translate: 0 0;
  }
}
