/* The palette of the app (mobile/lib/core/theme/app_tokens.dart). */
:root {
  --ink: #1e1b3a;
  --muted: #5b5e78;
  --primary: #4f46e5;
  --primary-deep: #3730a3;
  --turquoise: #0ea5a4;
  --turquoise-deep: #0e7c7b;
  --amber: #f59e0b;
  --background: #f8f9fc;
  --surface: #ffffff;
  --container: #f0f1f8;
  --outline: #e2e4ef;
  --error: #c62838;
  --on-primary: #ffffff;
  --brand-gradient: linear-gradient(135deg, #3730a3 0%, #4f46e5 45%, #0e7c7b 100%);
  --shadow: 0 1px 2px rgb(30 27 58 / 6%), 0 12px 32px rgb(30 27 58 / 8%);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e6f0;
    --muted: #a6a8c0;
    --primary: #a5b4fc;
    --turquoise: #5eead4;
    --background: #0f1020;
    --surface: #1a1b2e;
    --container: #1f2135;
    --outline: #2c2e46;
    --error: #ffa4a9;
    --on-primary: #1e1b4b;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

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

/* Elements below set their own display, which would otherwise win over [hidden]. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.65 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--outline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.site-header .brand {
  margin-right: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0.3rem;
  border-radius: 0.6rem;
  background: var(--brand-gradient);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(79 70 229 / 28%);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.button.small {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

.button.light {
  background: #ffffff;
  color: #3730a3;
}

.button.ghost {
  background: rgb(255 255 255 / 14%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 40%);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-gradient);
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 40%;
  height: 80%;
  background: radial-gradient(closest-side, rgb(94 234 212 / 35%), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 15%);
  font-size: 0.9rem;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #5eead4;
}

.hero h1 {
  margin: 1.2rem 0 1rem;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
}

.hero p {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: 1.15rem;
  color: rgb(255 255 255 / 88%);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-phones {
  position: relative;
  height: 34rem;
}

.hero-phones .phone {
  position: absolute;
  width: 15.5rem;
}

.hero-phones .phone:first-child {
  right: 14%;
  top: 0;
  z-index: 2;
}

.hero-phones .phone:last-child {
  right: 46%;
  top: 3.5rem;
  transform: rotate(-6deg);
  opacity: 0.95;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-phones {
    height: 25rem;
  }

  .hero-phones .phone {
    width: 11.5rem;
  }

  .hero-phones .phone:first-child {
    right: 8%;
  }

  .hero-phones .phone:last-child {
    right: 44%;
    top: 2.5rem;
  }
}

/* A screenshot in a phone outline. */
.phone {
  padding: 0.45rem;
  border-radius: 2rem;
  background: #0b0c18;
  box-shadow: 0 24px 60px rgb(11 12 24 / 35%);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 1.6rem;
  object-fit: cover;
}

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

.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--container);
}

.section-title {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .grid.three {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 561px) and (max-width: 860px) {
  .grid.three.features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.75rem;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step-number {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}

.icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 860px) {
  .gallery {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 13rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }

  .gallery figure {
    scroll-snap-align: start;
  }
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.checks li::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--turquoise-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}

@media (max-width: 640px) {
  .checks {
    grid-template-columns: 1fr;
  }
}

.cta {
  padding: 3.5rem 2rem;
  border-radius: calc(var(--radius) * 1.5);
  background: var(--brand-gradient);
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.cta p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: rgb(255 255 255 / 88%);
  font-size: 1.1rem;
}

.cta .actions {
  justify-content: center;
}

/* The farewell note runs to several paragraphs; the CTA spacing is meant for one. */
.cta.farewell p {
  margin-bottom: 1rem;
}

.cta.farewell .actions {
  margin-top: 2rem;
}

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

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1rem;
}

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

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline);
}

@media (max-width: 640px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------ Legal and link pages */

.doc {
  max-width: 48rem;
  margin: 2.5rem auto 4rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .doc {
    margin: 0 0 2rem;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }
}

.doc h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}

.doc h2 {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--outline);
  font-size: 1.25rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 0.9rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.doc table {
  display: block;
  overflow-x: auto;
}

th,
td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--outline);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--container);
}

/* The pages that email links open. */
.doc.narrow {
  max-width: 30rem;
  text-align: center;
}

.doc.narrow .doc-mark {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  padding: 0.6rem;
  border-radius: 1.1rem;
  background: var(--brand-gradient);
}

.doc.narrow footer {
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  text-align: center;
}

label {
  font-weight: 500;
}

input {
  font: inherit;
  padding: 0.8rem 1rem;
  border: 1px solid var(--outline);
  border-radius: 0.9rem;
  background: var(--container);
  color: var(--ink);
}

input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.form .button {
  margin-top: 0.75rem;
}

.status {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--turquoise) 45%, transparent);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--turquoise) 10%, transparent);
}

.status.error {
  border-color: color-mix(in srgb, var(--error) 50%, transparent);
  background: color-mix(in srgb, var(--error) 8%, transparent);
}
