/* ==========================================================================
   Bo Kaata — Basant festival platform
   One stylesheet for all pages:
   1. Tokens  2. Base  3. Layout  4. Buttons & tags  5. Header & nav
   6. Hero  7. Sections & cards  8. Phone mockups  9. Page-specific
   10. Footer  11. Motion
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --purple: #613B86;
  --purple-700: #50306F;
  --purple-deep: #34253D;
  --purple-ink: #241A2B;
  --red: #D51F32;
  --red-shadow: #8E1220;
  --cream: #FAF5ED;
  --cream-200: #F3EADC;
  --green: #147568;
  --gold: #E8B323;
  --gold-shadow: #A87C0B;
  --gold-ink: #845A00;      /* gold for text: passes 4.5:1 on white & cream */
  --white: #FFFFFF;

  --lavender: #F1EAF6;
  --blush: #FCEBEC;
  --mint: #E4F2EF;
  --sand: #FCF2D8;

  --text: #2A2230;
  --muted: #5F5468;
  --line: #E6DCE9;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(52, 37, 61, .06), 0 4px 14px rgba(52, 37, 61, .05);
  --shadow: 0 14px 34px -14px rgba(52, 37, 61, .28);
  --shadow-lg: 0 34px 60px -22px rgba(36, 26, 43, .55);

  --container: 1180px;
  --gutter: 16px;
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 68px;
}

@media (min-width: 768px) {
  :root { --gutter: 28px; }
}

/* Accent colour helpers — set --c (borders/fills) and --c-ink (text) */
.c-purple { --c: var(--purple); --c-ink: var(--purple); --c-soft: var(--lavender); }
.c-red    { --c: var(--red);    --c-ink: #B5182A;      --c-soft: var(--blush); }
.c-green  { --c: var(--green);  --c-ink: var(--green); --c-soft: var(--mint); }
.c-gold   { --c: var(--gold);   --c-ink: var(--gold-ink); --c-soft: var(--sand); }

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--purple-deep); }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.005em; }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--purple); text-underline-offset: .2em; }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--purple-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

[hidden] { display: none !important; }

/* 3. Layout
   ========================================================================== */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--white { background: var(--white); }
.section--dark { background: var(--purple-deep); color: #E9E1EF; }
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p,
.lead { color: var(--muted); font-size: 1.0625rem; }
.section--dark .section-head p,
.section--dark .lead { color: #D6CCDD; }
.section--after-divider { padding-top: 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-bottom: .9rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--gold); }

.split {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) and (max-width: 959.98px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }

/* Kite-string strip, used at the bottom of purple bands */
.strings {
  height: 40px;
  background: url("../assets/images/strings.svg") repeat-x center / 800px 40px;
  pointer-events: none;
}

/* Yarn-ball divider */
.yarn-divider {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(110px, 14vw, 150px);
  margin-block: 0;
}
.yarn-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 56px;
  transform: translateY(-50%);
  background: url("../assets/images/strings.svg") repeat-x center / 800px 56px;
  opacity: .9;
}
.yarn-divider img { position: relative; width: clamp(150px, 20vw, 220px); }

/* 4. Buttons & tags
   ========================================================================== */
.btn {
  --btn-edge: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 50px;
  padding: .8em 1.5em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: 600 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--btn-edge);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--btn-edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }

.btn--gold   { --btn-edge: var(--gold-shadow); background: var(--gold); color: var(--purple-ink); }
.btn--gold:hover { color: var(--purple-ink); background: #F0BF35; }
.btn--red    { --btn-edge: var(--red-shadow); background: var(--red); color: var(--white); }
.btn--red:hover { color: var(--white); background: #E02A3D; }
.btn--purple { --btn-edge: var(--purple-deep); background: var(--purple); color: var(--white); }
.btn--purple:hover { color: var(--white); background: #6F479A; }
.btn--ghost  { border-color: rgba(255, 255, 255, .65); color: var(--white); box-shadow: none; }
.btn--ghost:hover { color: var(--white); background: rgba(255, 255, 255, .12); box-shadow: none; }
.btn--outline { border-color: var(--purple); color: var(--purple); background: transparent; box-shadow: none; }
.btn--outline:hover { color: var(--white); background: var(--purple); box-shadow: none; }
.btn--sm { min-height: 44px; padding: .6em 1.2em; font-size: .9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .8em;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
}
.tag svg { width: 14px; height: 14px; }
.tag--ok  { background: var(--mint); color: var(--green); }
.tag--tbc { background: var(--sand); color: var(--gold-ink); }
.tag--soon { background: var(--blush); color: #B5182A; }

.date-pill {
  display: inline-block;
  padding: .5em 1.1em;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--red-shadow);
}

/* Petal burst in the top-right corner of a card (mirrors the app) */
.burst { position: relative; overflow: hidden; }
.burst::before {
  content: "";
  position: absolute;
  top: -46px;
  right: -46px;
  width: 124px;
  height: 124px;
  background: repeating-conic-gradient(var(--c, var(--purple)) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 0 22px, #000 23px 40px, transparent 41px 46px, #000 47px 58px, transparent 59px);
          mask: radial-gradient(circle, transparent 0 22px, #000 23px 40px, transparent 41px 46px, #000 47px 58px, transparent 59px);
  opacity: .8;
  pointer-events: none;
}

/* Icon tile: soft circle with a small badge, as in the app's "Add new" row */
.icon-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--c-soft, var(--blush));
  color: var(--c-ink, var(--red));
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--badge::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--c, var(--red));
}

/* 5. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--purple);
  color: var(--white);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(20, 10, 28, .6); }

.nav-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
}
.brand__tag { font-size: .72rem; letter-spacing: .04em; color: rgba(255, 255, 255, .82); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle line { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .l1 { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .l3 { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.nav-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block;
  padding: .55rem .95rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, .9);
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.nav-list a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .14); box-shadow: inset 0 -2px 0 var(--gold); }

@media (max-width: 959.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--purple-700);
    box-shadow: 0 20px 30px -16px rgba(20, 10, 28, .7);
  }
  .js .site-header.nav-open .primary-nav { display: flex; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a { padding: 14px 16px; border-radius: 12px; }
  .js .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
  .no-js-hide { display: none; }
}

/* 6. Hero (homepage) & page hero (inner pages)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 112px);
  background:
    radial-gradient(900px 480px at 90% -10%, rgba(154, 107, 199, .55), transparent 65%),
    radial-gradient(600px 400px at -10% 110%, rgba(213, 31, 50, .25), transparent 70%),
    var(--purple);
  color: var(--white);
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }

.hero__title {
  margin: 22px 0 18px;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  line-height: 1.05;
  color: var(--white);
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead { max-width: 34rem; font-size: clamp(1.0625rem, .5vw + 1rem, 1.1875rem); color: rgba(255, 255, 255, .88); }
.hero .btn-row { margin-top: 32px; }

.hero__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .85);
}
.hero__apps li { display: flex; align-items: center; gap: 10px; }
.hero__apps strong { color: var(--white); font-weight: 600; }
.hero__apps svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 24px 0 8px; }
.hero__visual .phone { position: relative; z-index: 1; }
.hero__kite {
  position: absolute;
  z-index: 0;
  top: -12px;
  right: calc(50% - 250px);
  width: clamp(130px, 16vw, 190px);
}
.hero__cloud { position: absolute; top: 40px; left: calc(50% - 280px); width: 150px; opacity: .9; }
.hero__yarn { position: absolute; z-index: 2; bottom: -6px; left: calc(50% - 230px); width: clamp(120px, 14vw, 160px); }

.hero .strings,
.page-hero .strings { position: absolute; left: 0; right: 0; bottom: 6px; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 9vw, 112px);
  background:
    radial-gradient(700px 380px at 95% -20%, rgba(154, 107, 199, .55), transparent 65%),
    var(--purple);
  color: var(--white);
}
.page-hero h1 { margin: 18px 0 14px; font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); color: var(--white); }
.page-hero p { max-width: 40rem; font-size: 1.125rem; color: rgba(255, 255, 255, .88); }
.page-hero__kite {
  position: absolute;
  right: max(var(--gutter), calc(50% - 560px));
  top: 28px;
  width: clamp(80px, 12vw, 150px);
  opacity: .95;
}
@media (max-width: 639.98px) { .page-hero__kite { width: 72px; top: 16px; opacity: .5; } }
.page-hero .btn-row { margin-top: 28px; }

/* 7. Sections & cards
   ========================================================================== */
.card {
  background: var(--white);
  border: 1.5px solid var(--c, var(--line));
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }

.feature-card { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.25rem; color: var(--c-ink); }
.feature-card .tag { margin-top: auto; align-self: flex-start; }
.feature-card p { margin-bottom: 20px; }

/* How it works */
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    top: 58px;
    left: 12%;
    right: 12%;
    height: 40px;
    background: url("../assets/images/strings.svg") repeat-x center / 800px 40px;
    opacity: .55;
  }
}
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.step__num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font: 1.6rem/1 var(--font-display);
  box-shadow: 0 4px 0 var(--purple-deep);
}
.step h3 { margin: 6px 0 0; font-size: 1.25rem; }
.step p { margin: 0; }
.step .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }

.status-panel {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--lavender);
}
@media (min-width: 800px) { .status-panel { grid-template-columns: 1fr 1fr; gap: 40px; } }
.status-panel h3 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.status-panel h3 svg { width: 22px; height: 22px; }
.status-panel .ok h3 { color: var(--green); }
.status-panel .tbc h3 { color: var(--gold-ink); }
.status-panel ul { margin: 0; padding-left: 1.2em; color: var(--text); }
.status-panel li { margin-bottom: .35em; }
.status-panel li::marker { color: var(--purple); }

/* Checklist */
.checklist { display: grid; gap: 14px; margin: 24px 0 32px; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist .check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
}
.checklist .check svg { width: 16px; height: 16px; }
.checklist strong { color: var(--purple-deep); }

/* Vendor feature list on dark */
.vendor-features { display: grid; gap: 22px 28px; margin: 28px 0 36px; padding: 0; list-style: none; }
@media (min-width: 640px) { .vendor-features { grid-template-columns: 1fr 1fr; } }
.vendor-features li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.vendor-features .vf-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: var(--gold);
}
.vendor-features .vf-icon svg { width: 22px; height: 22px; }
.vendor-features h3 { margin: 0 0 4px; font-size: 1rem; }
.vendor-features p { margin: 0; font-size: .9375rem; color: #D6CCDD; }

/* Showcase */
.showcase { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-bottom: 56px; }
.showcase--duo .phone { --w: clamp(168px, 40vw, 272px); }
.showcase--duo .phone + .phone { margin-left: calc(var(--w) * -.18); transform: translateY(56px); }
.showcase__kite { position: absolute; top: -30px; right: 0; width: clamp(70px, 10vw, 110px); }
.mock-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  font-size: .8125rem;
  color: var(--muted);
  text-align: center;
}
.mock-note svg { width: 16px; height: 16px; flex: none; }
.section--dark .mock-note { color: #CFC3D8; }
.showcase-figure { margin: 0; }

/* Festival band */
.festival { position: relative; background: var(--purple-ink); color: var(--white); }
.festival__art { width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover; object-position: center bottom; }
.festival__copy {
  padding-top: clamp(56px, 7vw, 88px);
  text-align: center;
}
.festival__copy h2 { margin-bottom: .3em; color: var(--white); font-size: clamp(1.8rem, 3vw + 1rem, 3rem); }
.festival__copy p { max-width: 34rem; margin-inline: auto; color: rgba(255, 255, 255, .85); }

/* Final CTA */
.cta-card { display: flex; flex-direction: column; align-items: flex-start; }
.cta-banner { text-align: center; }
.cta-banner .btn-row { justify-content: center; margin-top: 24px; }
.cta-card h3,
.cta-card-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.5vw + 1rem, 2rem); color: var(--purple-deep); }
.cta-card p { margin-bottom: 24px; }
.cta-card .btn { margin-top: auto; }

/* Notices */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1.5px solid var(--n-border, var(--purple));
  border-radius: var(--radius);
  background: var(--n-bg, var(--lavender));
  color: var(--text);
  font-size: .9375rem;
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--n-icon, var(--purple)); }
.notice p { margin: 0 0 .4em; }
.notice--warn { --n-border: var(--gold); --n-bg: var(--sand); --n-icon: var(--gold-ink); }
.notice--success { --n-border: var(--green); --n-bg: var(--mint); --n-icon: var(--green); }
.notice--error { --n-border: var(--red); --n-bg: var(--blush); --n-icon: var(--red); }

/* 8. Phone mockups (sizes in em so the whole phone scales with --w)
   ========================================================================== */
.phone {
  --w: clamp(240px, 64vw, 296px);
  flex: none;
  width: var(--w);
  aspect-ratio: 9 / 19;
  padding: .7em;
  font-size: calc(var(--w) / 28);
  line-height: 1.35;
  border-radius: 3.8em;
  background: #1E1525;
  box-shadow: var(--shadow-lg), inset 0 0 0 .18em #3B2D46;
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 3.1em;
  background: var(--cream);
  color: var(--text);
}
.phone__screen::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: .9em;
  left: 50%;
  width: 8.5em;
  height: 2.2em;
  border-radius: 2em;
  background: #120C17;
  transform: translateX(-50%);
}

.ui-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25em 2.2em 0;
  font-size: 1.05em;
  font-weight: 600;
}
.ui-statusbar i { display: block; width: 2.3em; height: 1.1em; border-radius: .3em; background: linear-gradient(90deg, #3FD07A 45%, rgba(255,255,255,.5) 45%); }

.ui-top { position: relative; padding-bottom: 3.2em; background: var(--purple); color: var(--white); }
.ui-top--compact { padding-bottom: 1.4em; }
.ui-top__inner { padding: 1.6em 1.6em 0; }
.ui-brandrow { display: flex; align-items: center; gap: .8em; }
.ui-logo { width: 3.4em; height: 3.4em; flex: none; }
.ui-brand { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.9em; line-height: 1; color: var(--gold); }
.ui-sub { display: block; font-size: 1em; color: rgba(255, 255, 255, .85); }
.ui-hello { margin: .35em 0 .25em; font-family: var(--font-display); font-size: 2.6em; line-height: 1.1; color: var(--white); }
.ui-pill { display: inline-block; padding: .35em .9em; border-radius: .5em; background: var(--red); font-size: .85em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 .25em 0 var(--red-shadow); }
.ui-search {
  display: flex;
  align-items: center;
  gap: .7em;
  margin-top: 1.3em;
  padding: .9em 1.1em;
  border-radius: 1.2em;
  background: var(--white);
  color: var(--muted);
  font-size: 1.05em;
}
.ui-search svg { width: 1.3em; height: 1.3em; color: var(--purple); }
.ui-top-kite { position: absolute; top: 2.2em; right: 1em; width: 6.4em; transform: rotate(8deg); }

.ui-strings { height: 2.4em; margin-top: -1.2em; position: relative; z-index: 1; background: url("../assets/images/strings.svg") repeat-x center / auto 100%; }

.ui-body { flex: 1; display: grid; align-content: start; gap: 1.1em; padding: 1.2em 1.4em; overflow: hidden; }
.ui-body--lift { margin-top: -2.4em; position: relative; z-index: 2; }

.ui-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; }
.ui-stat {
  position: relative;
  display: grid;
  gap: .15em;
  padding: 1em 1.1em;
  overflow: hidden;
  border: .13em solid var(--c);
  border-radius: 1.2em;
  background: var(--white);
}
.ui-stat .l { font-size: .95em; color: var(--muted); }
.ui-stat .v { font-size: 1.9em; font-weight: 700; line-height: 1.1; color: var(--c-ink); }
.ui-stat .m { font-size: .95em; font-weight: 600; color: var(--c-ink); }
.ui-stat.burst::before { top: -3.6em; right: -3.6em; width: 7em; height: 7em; opacity: .6; }

.ui-heading { margin: .3em 0 0; font-size: 1.3em; font-weight: 700; color: var(--purple-ink); }
.ui-heading span { margin-left: .4em; font-size: .78em; font-weight: 400; color: var(--muted); }

.ui-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; }
.ui-tile {
  padding: .9em .2em .8em;
  border: .13em solid #F2C4C8;
  border-radius: 1em;
  background: var(--white);
  text-align: center;
  font-size: .92em;
  font-weight: 600;
}
.ui-tile b {
  position: relative;
  display: grid;
  place-items: center;
  width: 3em;
  height: 3em;
  margin: 0 auto .5em;
  border-radius: 50%;
  background: var(--blush);
  color: var(--red);
}
.ui-tile b svg { width: 1.5em; height: 1.5em; }
.ui-tile b::after { content: "+"; position: absolute; right: -.35em; bottom: -.3em; display: grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--red); color: var(--white); font-size: .95em; line-height: 1; }

.ui-golist { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.ui-golist span { padding: 1em .9em; border-radius: 1em; background: var(--lavender); color: var(--purple); font-size: .95em; font-weight: 600; }

.ui-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 1em .6em 2em;
  background: var(--purple-ink);
  color: rgba(255, 255, 255, .72);
  font-size: .85em;
  text-align: center;
}
.ui-tabbar span { display: grid; justify-items: center; gap: .3em; }
.ui-tabbar svg { width: 1.9em; height: 1.9em; }
.ui-tabbar .is-active { color: var(--gold); font-weight: 600; }

/* App bar (detail screens) */
.ui-appbar { position: relative; padding-bottom: 1.4em; background: var(--purple); color: var(--white); }
.ui-appbar__row { display: flex; align-items: center; gap: 1em; padding: 1.4em 1.4em 0; }
.ui-appbar__row > svg { width: 1.8em; height: 1.8em; flex: none; }
.ui-title { display: block; font-family: var(--font-display); font-size: 2.2em; line-height: 1.1; }
.ui-round { display: grid; place-items: center; width: 3.6em; height: 3.6em; margin-left: auto; border-radius: 50%; background: rgba(255, 255, 255, .14); flex: none; }
.ui-round svg { width: 1.6em; height: 1.6em; }

.ui-card {
  position: relative;
  padding: 1.1em 1.2em;
  overflow: hidden;
  border: .1em solid var(--c, #EDE4EF);
  border-radius: 1.2em;
  background: var(--white);
}
.ui-card.burst::before { top: -3.6em; right: -3.6em; width: 7em; height: 7em; opacity: .6; }
.ui-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7em; }
.ui-card__title { display: block; margin-bottom: .4em; font-family: var(--font-display); font-size: 1.45em; color: var(--purple); }
.ui-card__head .ui-card__title { margin: 0; }
.ui-badge { padding: .3em .8em; border-radius: .6em; font-size: .9em; font-weight: 600; background: var(--sand); color: var(--gold-ink); }

.ui-steps { display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; font-size: .85em; color: #A79BAE; text-align: center; }
.ui-steps li { display: grid; justify-items: center; gap: .35em; }
.ui-steps i { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #F1ECF3; font-style: normal; font-weight: 600; }
.ui-steps .is-done { color: var(--purple); }
.ui-steps .is-done i { background: var(--purple); color: var(--white); }
.ui-steps .is-current { color: var(--red); font-weight: 600; }
.ui-steps .is-current i { background: var(--white); color: var(--red); box-shadow: inset 0 0 0 .18em var(--red); }

.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.ui-row b { display: block; font-size: 1.15em; }
.ui-row small { display: block; font-size: .95em; color: var(--muted); }
.ui-call { display: grid; place-items: center; width: 3.6em; height: 3.6em; border-radius: 50%; background: var(--green); color: var(--white); flex: none; }
.ui-call svg { width: 1.5em; height: 1.5em; }
.ui-line { display: flex; justify-content: space-between; gap: 1em; padding: .4em 0; font-size: 1.05em; }
.ui-line + .ui-line { border-top: .1em dashed #E4D9E7; }
.ui-line small { display: block; color: var(--muted); }
.ui-strings--flat { margin-top: 0; }
.ui-total b:last-child { color: var(--purple); }

.ui-footer { padding: 1em 1.4em 2em; background: var(--purple-ink); }
.ui-cta { display: block; padding: 1em; border-radius: 1em; background: var(--green); color: var(--white); text-align: center; font-weight: 600; font-size: 1.1em; }
.ui-cta--purple { background: var(--purple); }

.ui-chips { display: flex; gap: .6em; overflow: hidden; }
.ui-chips span { flex: none; padding: .5em 1em; border-radius: 2em; background: var(--white); border: .1em solid var(--line); font-size: .95em; font-weight: 600; color: var(--muted); }
.ui-chips .is-active { background: var(--purple); border-color: var(--purple); color: var(--white); }

.ui-products { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.ui-product { padding: .7em; border-radius: 1.1em; background: var(--white); border: .1em solid #EDE4EF; font-size: .95em; }
.ui-product__img { position: relative; display: grid; place-items: center; height: 6.4em; margin-bottom: .6em; border-radius: .8em; background: var(--c-soft); }
.ui-product__img svg { width: 4em; height: 4em; }
.ui-product b { display: block; font-size: 1.05em; }
.ui-product small { color: var(--muted); }
.ui-product em { position: absolute; top: .5em; left: .5em; padding: .15em .6em; border-radius: .5em; background: var(--red); color: var(--white); font-style: normal; font-size: .8em; font-weight: 600; }

.ui-banner { display: flex; align-items: center; justify-content: space-between; padding: 1em 1.2em; border-radius: 1.1em; border: .13em solid var(--c); background: var(--white); font-weight: 600; color: var(--c-ink); }
.ui-banner svg { width: 1.5em; height: 1.5em; }

.ui-roof-img { height: 11em; overflow: hidden; }
.ui-roof-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; }
.ui-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55em; }
.ui-days span { padding: .55em 0; border-radius: .7em; background: var(--lavender); color: var(--purple); text-align: center; font-size: .95em; font-weight: 600; }
.ui-days .is-taken { background: #F1EEF2; color: #B4AABA; text-decoration: line-through; }
.ui-days .is-picked { background: var(--purple); color: var(--white); }
.ui-note { display: flex; gap: .6em; padding: .8em 1em; border-radius: 1em; border: .1em solid var(--gold); background: var(--sand); font-size: .95em; color: var(--gold-ink); }
.ui-note svg { width: 1.4em; height: 1.4em; flex: none; }

.mini-kite .q1 { fill: var(--k1, #D51F32); }
.mini-kite .q2 { fill: var(--k2, #E8B323); }
.mini-kite .q3 { fill: var(--k3, #147568); }
.mini-kite .q4 { fill: var(--k4, #613B86); }

/* 9. Page-specific
   ========================================================================== */

/* About */
.intro-art { position: relative; display: grid; place-items: center; min-height: 320px; padding: 32px; border-radius: var(--radius-lg); background: var(--purple); overflow: hidden; }
.intro-art::after { content: ""; position: absolute; inset: auto 0 10px; height: 40px; background: url("../assets/images/strings.svg") repeat-x center / 800px 40px; }
.intro-art .kite { width: min(200px, 50%); }
.intro-art .yarn { position: absolute; right: 18px; bottom: 34px; width: 130px; z-index: 1; }
.intro-art .cloud { position: absolute; left: 24px; top: 30px; width: 120px; }

.benefit-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.benefit-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text); }
.benefit-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--c-ink, var(--green)); }

.principle { text-align: left; }
.principle .icon-tile { margin-bottom: 16px; }

/* Legal / prose */
.legal-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 260px 1fr; gap: 56px; } }
.toc { padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1.5px solid var(--line); }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc h2 { margin-bottom: 12px; font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .9375rem; }
.toc a { color: var(--purple-deep); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; padding-top: .2em; font-size: clamp(1.5rem, 1.2vw + 1rem, 1.9rem); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.ph {
  padding: .05em .35em;
  border-radius: 4px;
  background: var(--sand);
  color: var(--gold-ink);
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Download */
.jump-links { display: flex; flex-wrap: wrap; gap: 12px; }
.app-panel { display: grid; gap: 36px; }
@media (min-width: 900px) { .app-panel { grid-template-columns: 1.25fr .75fr; align-items: center; } }
.app-panel + .app-panel { margin-top: 32px; }
.app-panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; padding-right: 56px; }
@media (max-width: 899.98px) {
  .app-panel__art { min-height: 150px; }
  .app-panel__art img { width: min(120px, 40%); }
}
.app-panel h2 { margin: 0; color: var(--c-ink); }
.app-panel .lead { font-size: 1.0625rem; color: var(--muted); }
.app-status { display: inline-flex; align-items: center; gap: .45em; padding: .35em .9em; border-radius: var(--radius-pill); background: var(--blush); color: #B5182A; font-size: .8125rem; font-weight: 600; }
.app-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.app-status.is-live { background: var(--mint); color: var(--green); }
.app-panel__art { display: grid; place-items: center; min-height: 240px; border-radius: var(--radius); background: var(--c-soft); }
.app-panel__art img { width: min(180px, 60%); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  min-width: 196px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--purple-ink);
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease;
}
.store-btn:hover { color: var(--white); background: var(--purple-deep); transform: translateY(-1px); }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn small { display: block; font-size: .72rem; opacity: .85; }
.store-btn strong { display: block; font-size: 1.05rem; font-weight: 600; }
.store-btn.is-pending { background: #ECE6EF; color: var(--muted); cursor: not-allowed; transform: none; }
.store-btn.is-pending:hover { background: #ECE6EF; color: var(--muted); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1.5px solid var(--line); background: var(--white); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--lavender); color: var(--purple-deep); font-weight: 600; }
.compare tbody th { width: 28%; color: var(--purple-deep); font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }


/* 10. Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--purple-ink); color: rgba(255, 255, 255, .8); font-size: .9375rem; }
.site-footer .strings { position: absolute; top: -20px; left: 0; right: 0; }
.footer-grid { display: grid; gap: 36px; padding: 72px 0 40px; }
@media (min-width: 640px) and (max-width: 1023.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
.footer-brand p { max-width: 30rem; margin: 16px 0 20px; }
.footer-title { margin-bottom: 14px; font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 5px 0; color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

.socials { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  transition: background-color .15s ease;
}
.social:hover { background: var(--red); color: var(--white); }
.social svg { width: 20px; height: 20px; }
.social.is-pending { opacity: .5; cursor: not-allowed; }
.social.is-pending:hover { background: rgba(255, 255, 255, .1); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .7);
}

/* 11. Motion
   ========================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
.float { animation: float 7s ease-in-out infinite; }
.float--slow { animation-duration: 9s; animation-delay: -2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
