/* SalonGo site: the customer app's look on the web.
   Colours from lib/theme/brand.dart (BrandColors) and the Home header
   (lib/screens/home/home_header.dart); type from BrandType, one face
   (Plus Jakarta Sans): Bold titles, SemiBold labels, Medium meta. */

:root {
  color-scheme: light;
  /* Brand teal */
  --teal: #013B3B;          /* BrandColors.teal: main buttons */
  --teal-pill: #083C3E;     /* tealPill: selected pills, links */
  --teal-mid: #1C5D5C;
  --hdr-light: #00594F;     /* Home header band */
  --hdr-mid: #00423B;
  --hdr-dark: #003731;
  --hdr-glow: #004841;
  --band: #284E4D;          /* sign-in wedge */
  --gold: #F7C45C;          /* sparkles */
  /* Accent orange */
  --orange: #F38916;
  --orange-soft: #F5A552;
  --orange-ink: #8A4A06;
  --orange-fill: #FEF2E8;
  /* Neutrals */
  --ink: #0B1820;
  --meta: #5B6887;
  --line: #E7EAEC;
  --page: #F7F7F8;
  --card: #FFFFFF;
  --mint: #EEF6F4;
  --mint-strong: #DCEBEA;
  --chip-ink: #1B6B5A;
  /* Status */
  --success: #1F7A4A;
  --danger: #D5231B;
  --pending-fill: #FDF1DE;  --pending-ink: #94570C;
  --suggested-fill: #E0EFEE; --suggested-ink: #083C3E;
  --confirmed-fill: #E2F3E7; --confirmed-ink: #1F7A4A;
  --declined-fill: #FBE7E4;  --declined-ink: #B3382A;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(11, 24, 32, .04), 0 10px 28px -16px rgba(11, 24, 32, .18);
  --gutter: 16px;
  --max: 1200px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-pill); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--teal); font-weight: 700;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header bar (sits on the teal) ---------- */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1875rem; letter-spacing: -.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 600; font-size: .9375rem;
  padding: 8px 12px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav .nav-link { display: none; }
@media (min-width: 860px) { .nav .nav-link { display: inline-flex; } }
.nav a.pill-light {
  margin-left: 6px; background: #fff; color: var(--teal); padding: 9px 16px;
}
.nav a.pill-light:hover { background: var(--mint); color: var(--teal); }

/* ---------- Teal header surface (Home header) ---------- */
.teal {
  position: relative; color: #fff; isolation: isolate;
  background:
    radial-gradient(70% 55% at 10% 0%, var(--hdr-light) 0%, rgba(0, 89, 79, 0) 70%),
    radial-gradient(45% 60% at 45% 55%, var(--hdr-glow) 0%, rgba(0, 72, 65, 0) 75%),
    linear-gradient(90deg, var(--hdr-mid), var(--hdr-dark));
}
.sparkles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.sparkles .tw { animation: twinkle 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sparkles .tw:nth-of-type(3n) { animation-delay: -1.7s; animation-duration: 6s; }
.sparkles .tw:nth-of-type(3n+1) { animation-delay: -3.1s; animation-duration: 7s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* The Home header's curved bottom edge: lowest just right of centre. */
.curve { position: absolute; left: 0; right: 0; top: calc(100% - 1px); width: 100%; height: clamp(28px, 5vw, 72px); display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 10px 22px -12px rgba(1, 59, 59, .7); }
.btn-teal:hover { background: var(--teal-pill); }
.btn-orange { background: var(--orange); color: var(--ink); box-shadow: 0 10px 22px -12px rgba(243, 137, 22, .8); }
.btn-orange:hover { background: #F59A35; }
.btn-ghost { background: #fff; color: var(--teal); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--mint); }
.btn svg { flex: none; }

/* Google Play badge-style pill: "coming soon" by default, a link when live. */
.play {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px;
  border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .55);
  transition: transform .16s var(--ease-out), background-color .2s;
}
a.play:hover { background: var(--mint); }
a.play:active { transform: scale(.97); }
.play svg { width: 26px; height: 26px; flex: none; }
.play span { display: flex; flex-direction: column; line-height: 1.15; }
.play small { font-size: .75rem; font-weight: 600; color: var(--meta); }
.play b { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
.play.is-soon { cursor: default; }
.play.on-light { box-shadow: none; border: 1px solid var(--line); }

/* ---------- Phone mock-ups ---------- */
.phone {
  --w: 260px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .155);
  background: linear-gradient(160deg, #24333A, #0C161B 55%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08) inset,
    0 50px 80px -40px rgba(0, 20, 18, .75),
    0 18px 36px -24px rgba(0, 20, 18, .6);
}
.phone img {
  width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover;
  border-radius: calc(var(--w) * .125); background: var(--page);
}
.phone::after {
  content: ""; position: absolute; top: calc(var(--w) * .058); left: 50%;
  width: calc(var(--w) * .04); height: calc(var(--w) * .04); margin-left: calc(var(--w) * -.02);
  border-radius: 50%; background: #0C161B; box-shadow: 0 0 0 2px rgba(255, 255, 255, .06);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-head { max-width: 640px; margin-bottom: 40px; }
.h2 {
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -.025em; color: var(--ink);
}
.lead { margin-top: 14px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--meta); font-weight: 500; max-width: 60ch; }
.h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.meta { color: var(--meta); font-weight: 500; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Status pills, as on Booking Status and Appointments. */
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.status svg { width: 14px; height: 14px; flex: none; }
.s-pending { background: var(--pending-fill); color: var(--pending-ink); }
.s-suggested { background: var(--suggested-fill); color: var(--suggested-ink); }
.s-confirmed { background: var(--confirmed-fill); color: var(--confirmed-ink); }
.s-declined { background: var(--declined-fill); color: var(--declined-ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 40px 0 32px; }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer .brand { color: var(--ink); }
.site-footer .tag { margin-top: 8px; color: var(--meta); font-size: .9375rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 4px; margin: 0 -10px; padding: 0; list-style: none; }
.foot-nav a {
  display: inline-flex; padding: 8px 10px; border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.foot-nav a:hover { background: var(--mint); color: var(--teal); }
.foot-nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.copyright { color: var(--meta); font-size: .875rem; }
@media (min-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
  .copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
}

/* ---------- Document pages (policies, contact) ---------- */
.doc-hero { padding: 72px 0 64px; }
.doc-hero .wrap.head { max-width: 840px; padding-top: 24px; }
.doc-hero h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em;
}
.doc-hero .sub { margin-top: 12px; color: rgba(255, 255, 255, .84); font-size: 1.0625rem; max-width: 60ch; }
.doc-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.doc-hero .chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: .8125rem; font-weight: 600;
}
.doc-main { position: relative; z-index: 2; max-width: 840px; margin: -24px auto 0; padding: 0 var(--gutter) 64px; }
.doc-main .card { padding: 24px 20px; margin-bottom: 14px; font-size: 1rem; }
@media (min-width: 600px) { .doc-main .card { padding: 30px 32px; } }
.doc-main h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 12px;
}
.doc-main h2::before { content: ""; flex: none; width: 6px; height: 22px; border-radius: 3px; background: var(--orange); }
.doc-main h3 { font-size: 1.0625rem; font-weight: 700; margin: 18px 0 6px; }
.doc-main p { margin: 0 0 12px; }
.doc-main ul, .doc-main ol { margin: 0 0 12px; padding-left: 22px; }
.doc-main li { margin-bottom: 8px; }
.doc-main li::marker { color: var(--teal-mid); font-weight: 700; }
.doc-main .card > :last-child { margin-bottom: 0; }
.doc-main a { font-weight: 700; text-underline-offset: 3px; }
.doc-main strong { font-weight: 700; }
.doc-main .note { color: var(--meta); font-size: .9375rem; }
.doc-main .callout {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: var(--mint); color: var(--ink); margin: 0 0 12px;
}
.doc-main .callout svg { flex: none; margin-top: 3px; color: var(--chip-ink); }
.doc-main .btn { margin-top: 4px; }
.doc-main table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-bottom: 12px; }
.doc-main th, .doc-main td { text-align: left; vertical-align: top; padding: 11px 10px; border-bottom: 1px solid var(--line); }
.doc-main th { font-weight: 700; font-size: .8125rem; color: var(--teal-pill); background: var(--mint); }
.doc-main th:first-child { border-radius: 10px 0 0 10px; }
.doc-main th:last-child { border-radius: 0 10px 10px 0; }
.doc-main td:first-child { font-weight: 700; }
.doc-main tr:last-child td { border-bottom: 0; }
@media (max-width: 599px) {
  .doc-main table, .doc-main tbody, .doc-main tr, .doc-main td { display: block; }
  .doc-main thead { display: none; }
  .doc-main tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc-main tr:last-child { border-bottom: 0; }
  .doc-main td { border: 0; padding: 2px 0; }
}
/* Steps inside a document (delete-account). */
.doc-main ol.path { list-style: none; padding: 0; counter-reset: step; }
.doc-main ol.path li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; margin-bottom: 12px; }
.doc-main ol.path li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-pill); color: #fff; font-weight: 700; font-size: .875rem;
}
.doc-main ol.path li span { padding-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
