/* APPstar landing page.
   One idea: the business lands on the customer's home screen (the star drop at the top).
   Colour rule: violet means "you can act on this", gold is only ever the star. */
:root {
  color-scheme: light dark;
  --surface: #f5f4f9;
  --card: #ffffff;
  --content: #15112e;
  --secondary: #5a5674;
  --hairline: rgba(21, 17, 46, .1);
  --accent: #5438ea;
  --accent-text: #5438ea;
  --on-accent: #ffffff;
  --star: #ffb800;
  --star-word: #d18f00;
  --shadow: 0 24px 60px -30px rgba(21, 17, 46, .35);
  --r-l: 32px;
  --r-m: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0d0b18;
    --card: #1a1729;
    --content: #f3f1fb;
    --secondary: #a8a4bf;
    --hairline: rgba(243, 241, 251, .12);
    --accent: #6a50f5;
    --accent-text: #a593ff;
    --star-word: #ffb800;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--content);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 132px; /* room for the sticky mobile button */
  overflow-x: clip;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(740px, 100% - 40px); }

section { padding: 88px 0; }
h1 { font-size: clamp(2.7rem, 11.2vw, 7rem); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(2.1rem, 6.4vw, 4rem); font-weight: 900; line-height: 1.06; letter-spacing: -.02em; }
h3 { font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -.005em; }
.accent { color: var(--accent-text); }
.eyebrow { font-size: 1.0625rem; font-weight: 700; color: var(--accent-text); margin-bottom: 10px; }
.section-lead { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.45; color: var(--secondary); margin-top: 18px; max-width: 34em; }
.for-who h2, .screens h2, .screens .section-lead, .screens .wrap, .why, .steps, .faq h2, .secretary .eyebrow, .secretary h2, .secretary .section-lead { text-align: center; }
.section-lead { margin-inline: auto; }

/* Buttons: same height and shape everywhere, 48px target */
.btn {
  display: inline-grid; place-items: center;
  min-height: 48px; padding: 10px 26px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 40px; padding: 6px 18px; font-size: .95rem; }
.btn-big { min-height: 56px; font-size: 1.15rem; }

/* ---------- Floating glass bar (the only blur on the page) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 7px; font-size: 1.3rem; font-weight: 900; letter-spacing: -.01em; text-decoration: none; direction: ltr; }
.logo b { color: var(--star-word); font-weight: 900; }
.logo svg { width: 22px; height: 22px; fill: var(--star); stroke: none; }
.nav { display: none; gap: 28px; font-size: .95rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--secondary); transition: color .15s; }
.nav a:hover { color: var(--content); }
.site-header .btn-small { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 100px; overflow: hidden; }
.hero + main section:first-child { padding-top: 24px; }
.hero-copy { text-align: center; }
.lead { font-size: clamp(1.15rem, 2.5vw, 1.5rem); line-height: 1.42; color: var(--secondary); max-width: 32em; margin: 22px auto 0; }
.quick-form { max-width: 460px; margin: 30px auto 0; }
.quick-row { display: flex; gap: 8px; padding: 6px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--hairline); }
.quick-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border: 0; background: transparent; font: inherit; color: inherit; text-align: right; border-radius: 999px; }
.quick-row input::placeholder { color: var(--secondary); }
.quick-row input.bad { outline: 2px solid #d92d3f; }
.quick-done { margin-top: 24px; font-size: 1.2rem; font-weight: 700; color: var(--accent-text); }
.form-error { margin-top: 12px; color: #d92d3f; font-weight: 700; }
.ticks { margin-top: 18px; font-size: .95rem; color: var(--secondary); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* the home screen */
.stage { position: relative; width: min(300px, 74vw); margin: 56px auto 0; }
.device { position: relative; aspect-ratio: 300 / 620; padding: 3.2%; background: #0a0814; border-radius: 15%/7.3%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .1), 0 60px 110px -40px rgba(21, 17, 46, .7); }
.display { position: relative; height: 100%; border-radius: 12.5%/6%; padding: 9% 8% 0;
  background: radial-gradient(120% 70% at 80% 0%, #6a48f0 0%, transparent 60%), radial-gradient(100% 60% at 0% 100%, #c2409c 0%, transparent 60%), #1b1140; }
.status { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: .8rem; font-weight: 700; margin-bottom: 15%; direction: ltr; }
.status i { width: 36%; height: 20px; border-radius: 12px; background: #000; position: absolute; top: 2.4%; left: 32%; }
.grid, .dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14% 13%; }
.grid { row-gap: 9%; column-gap: 9%; }
.ic, .slot { position: relative; display: block; aspect-ratio: 1; border-radius: 24%; }
.c1 { background: rgba(255, 255, 255, .16); } .c2 { background: rgba(255, 255, 255, .24); } .c3 { background: rgba(255, 255, 255, .1); }
.c4 { background: rgba(255, 255, 255, .2); } .c5 { background: rgba(255, 255, 255, .13); } .c6 { background: rgba(255, 255, 255, .28); }
.slot { outline: 1.5px dashed rgba(255, 255, 255, .28); outline-offset: -1px; }
.slot-tile { position: absolute; inset: 0; border-radius: inherit; background: #0d0a24; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 34px 6px rgba(255, 184, 0, .55); }
.slot-star { position: absolute; inset: 16%; width: 68%; height: 68%; fill: var(--star); stroke: none; filter: drop-shadow(0 0 6px rgba(255, 184, 0, .7)); }
.slot-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--star); opacity: 0; }
.slot-name { position: absolute; top: 106%; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #fff; font-size: .68rem; font-weight: 700; }
.dock { position: absolute; left: 6%; right: 6%; bottom: 3%; padding: 4.5%; column-gap: 8%; border-radius: 22%/60%; background: rgba(255, 255, 255, .14); }

.note {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 16px;
  background: var(--card); color: var(--content); border: 1px solid var(--hairline); border-radius: 20px;
  font-size: .86rem; line-height: 1.3; white-space: nowrap; box-shadow: var(--shadow);
}
.note b { display: block; font-size: 1rem; }
.note-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.note-ic svg { width: 24px; height: 24px; stroke-width: 2.3; }
.note-ic.ok { background: #d9f7e3; color: #137a3a; }
.note-ic.pz { background: #fff0d1; color: #9a5400; }
.note-a { top: 15%; right: 58%; }
.note-b { top: 49%; left: 58%; }

/* The one orchestrated moment: the star falls into the empty slot and becomes the icon */
@media (prefers-reduced-motion: no-preference) {
  .slot-star { animation: star-drop 1.15s cubic-bezier(.45, 0, .55, 1) .5s both; }
  .slot-tile { animation: tile-in .45s cubic-bezier(.34, 1.56, .64, 1) 1.55s both; }
  .slot-ring { animation: ring-out 1s cubic-bezier(.16, 1, .3, 1) 1.6s both; }
  .slot-name { animation: fade-in .4s ease 1.8s both; }
  .note-a { animation: note-in .6s cubic-bezier(.34, 1.56, .64, 1) 2.1s both; }
  .note-b { animation: note-in .6s cubic-bezier(.34, 1.56, .64, 1) 2.6s both; }
  @keyframes star-drop {
    0% { transform: translate(-30px, -560px) rotate(-260deg) scale(3); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: none; opacity: 1; }
  }
  @keyframes tile-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes ring-out { 0% { transform: scale(.8); opacity: 0; } 12% { opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes note-in { from { transform: translateY(18px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Two products ---------- */
.tiles { display: grid; gap: 18px; margin-top: 44px; }
.tile { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-l); overflow: hidden; }
.tile-head { padding: 36px 30px 28px; text-align: center; }
.tile-head h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -.015em; line-height: 1.1; }
.tile-head > p:not(.eyebrow) { color: var(--secondary); margin: 12px auto 0; max-width: 26em; }
.more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 8px; color: var(--accent-text); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more svg { width: 18px; height: 18px; stroke-width: 2.4; }
.tile-shot { margin-top: auto; height: 400px; overflow: hidden; display: flex; justify-content: center; }
.tile-shot .ph { width: 280px; height: max-content; }

.ph { padding: 8px; background: #0a0814; border-radius: 40px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow); }
.ph img { width: 100%; border-radius: 32px; }

/* ---------- The problem: notifications at night ---------- */
.night { background: #0f0c1f; color: #f3f1fb; }
.night h2 { text-align: center; }
.stack { display: grid; gap: 14px; margin-top: 44px; }
.alert { padding: 22px 24px 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; }
.alert-top { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: #c4c0d8; margin-bottom: 10px; }
.alert p:last-child { color: #c4c0d8; margin-top: 8px; }

/* ---------- Bento cells ---------- */
.bento { display: grid; gap: 14px; margin-top: 44px; text-align: start; }
.cell { padding: 28px; background: var(--card); border-radius: var(--r-m); }
.cell p { color: var(--secondary); margin-top: 8px; }
.mock { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cell .bubble { margin: 0; padding: 12px 16px; max-width: 26em; background: #dcf8c6; color: #15112e; border-radius: 18px 18px 18px 4px; font-size: 1rem; line-height: 1.4; }
.mock-btn { display: inline-grid; place-items: center; min-height: 40px; padding: 4px 22px; background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: 999px; font-size: .95rem; }

/* ---------- Screens ---------- */
.look-toggle { display: inline-flex; padding: 4px; margin-top: 28px; background: var(--hairline); border-radius: 999px; }
.look-toggle button { min-height: 40px; padding: 4px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--content); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.look-toggle button.on { background: var(--card); box-shadow: 0 2px 8px rgba(21, 17, 46, .16); }
.shots { display: flex; gap: 18px; margin-top: 40px; padding: 8px 20px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transition: opacity .2s; }
.shots::-webkit-scrollbar { display: none; }
.shots.swapping { opacity: .3; }
.shots figure { flex: none; width: min(230px, 62vw); scroll-snap-align: center; text-align: center; }
.shots figcaption { margin-top: 14px; font-weight: 700; }

/* ---------- Ordering: the oven ---------- */
.oven { color: #fff6ee; overflow: hidden; background: radial-gradient(90% 60% at 70% 0%, #5a1f12 0%, transparent 70%), #1c0f0d; }
.oven .eyebrow { color: #ff9d5c; }
.oven .section-lead { color: #e3cfc4; margin-inline: 0; }
.oven-top { display: grid; gap: 26px; align-items: center; }
.oven-pizza { width: min(440px, 88vw); margin: 0 auto -30px; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); }
.points { display: grid; gap: 24px; margin-top: 56px; }
.points p { color: #e3cfc4; margin-top: 4px; }
.oven .ph { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px #000; }
.shots-note { text-align: center; color: #e3cfc4; font-size: .92rem; margin-top: 10px; padding: 0 20px; }

/* ---------- Steps ---------- */
.steps { padding-top: 0; }
.step-list { list-style: none; display: grid; gap: 34px; padding: 0; margin: 44px 0 0; }
.step-list span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--card); color: var(--accent-text); font-size: 1.3rem; font-weight: 900; }
.step-list p { color: var(--secondary); margin: 6px auto 0; max-width: 24em; }

/* ---------- Form ---------- */
.lead-section { background: #1d1252; color: #fff; }
.lead-grid { display: grid; gap: 34px; }
.lead-copy p { margin-top: 16px; font-size: 1.2rem; line-height: 1.45; color: #dcd6fb; max-width: 28em; }
.lead-form, .lead-card { padding: 28px; background: var(--card); color: var(--content); border-radius: var(--r-l); }
.lead-form label { display: block; margin: 16px 0 6px; font-weight: 700; }
.lead-form input, .lead-form select {
  width: 100%; min-height: 52px; padding: 0 16px; font: inherit; color: inherit; background: var(--surface);
  border: 1.5px solid var(--hairline); border-radius: 14px; text-align: right;
}
.lead-form input.bad, .lead-form select.bad { border-color: #d92d3f; }
.lead-form .btn { width: 100%; margin-top: 22px; }
.consent { margin-top: 14px; font-size: .86rem; line-height: 1.4; color: var(--secondary); }
.lead-card { text-align: center; }
.lead-card svg { width: 56px; height: 56px; margin: 0 auto 10px; display: block; fill: var(--star); stroke: none; }
.lead-card p { color: var(--secondary); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq .wrap { display: block; }
.faq h2 { margin-bottom: 34px; }
details { border-bottom: 1px solid var(--hairline); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; font-size: 1.15rem; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 500; line-height: 1; color: var(--accent-text); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--secondary); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 28px; border-top: 1px solid var(--hairline); font-size: .95rem; color: var(--secondary); }
.site-footer .logo { color: var(--content); }
.footer-top { display: grid; gap: 26px; }
.footer-brand p { margin-top: 8px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 4px 34px; }
.footer-links a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-links a:hover, .footer-row a:hover { color: var(--content); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hairline); }

/* ---------- Floating buttons ---------- */
.insta-float {
  position: fixed; left: 14px; bottom: 138px; z-index: 29;
  display: inline-flex; align-items: center; gap: 0;
  height: 52px; min-width: 52px; padding: 0 13px; border-radius: 999px;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); color: #fff;
  text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; direction: rtl;
  box-shadow: 0 14px 28px -12px rgba(98, 40, 215, .8), 0 0 0 3px var(--surface);
  transition: transform .2s, gap .25s, padding .25s;
}
.insta-float svg { flex: none; width: 26px; height: 26px; stroke-width: 2; }
.insta-float span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .25s, opacity .2s; }
.insta-float:hover, .insta-float:focus-visible { transform: translateY(-2px); gap: 8px; padding: 0 18px 0 14px; }
.insta-float:hover span, .insta-float:focus-visible span { max-width: 120px; opacity: 1; }
.insta-float.hide { opacity: 0; transform: scale(.7); pointer-events: none; }
.sticky-cta {
  /* sits above the "Powered by Netlify" badge the free plan adds at the bottom of the screen */
  position: fixed; inset-inline: 14px; bottom: 70px; z-index: 30;
  display: grid; place-items: center; min-height: 52px;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 800; border-radius: 999px;
  box-shadow: 0 16px 32px -12px rgba(21, 17, 46, .7);
  transition: transform .25s, opacity .25s;
}
.sticky-cta.hide { transform: translateY(180%); opacity: 0; pointer-events: none; }

/* Simple text page (privacy) */
.page { padding: 40px 0 64px; }
.page h1 { font-size: 2.4rem; margin-bottom: 20px; letter-spacing: -.015em; }
.page h2 { font-size: 1.3rem; margin: 28px 0 8px; letter-spacing: 0; }
.page p, .page li { color: var(--secondary); }

/* Content rises gently as it scrolls in, only where the browser can tie it to scrolling.
   Everywhere else it is simply there. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tile, .alert, .cell, .step-list li, .shots figure, .points > div {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
    @keyframes rise { from { opacity: .001; transform: translateY(36px); } to { opacity: 1; transform: none; } }
    .oven-pizza { animation: pizza-turn linear both; animation-timeline: view(); }
    @keyframes pizza-turn { from { transform: rotate(-50deg) scale(.86); } to { transform: rotate(50deg) scale(1.04); } }
  }
}

/* ---------- Tablet and up ---------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  section { padding: 120px 0; }
  .sticky-cta { display: none; }
  .insta-float { left: 24px; bottom: 24px; }
  .site-header .btn-small { display: inline-grid; }
  .hero { padding-top: 76px; padding-bottom: 130px; }
  .stage { width: 330px; }
  .note { font-size: .92rem; padding: 14px 22px 14px 18px; }
  .note-a { top: 20%; right: 86%; }
  .note-b { top: 56%; left: 86%; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-shot { height: 460px; }
  .tile-shot .ph { width: 300px; }
  .stack { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .bento .wide .mock { margin-top: 0; }
  .cell { padding: 32px; border-radius: 26px; }
  .shots { justify-content: safe center; overflow: visible; padding-inline: 40px; }
  .shots figure { width: auto; flex: 1 1 0; max-width: 240px; }
  .points { grid-template-columns: repeat(2, 1fr); gap: 34px 48px; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .footer-links { grid-template-columns: repeat(3, auto); }
  h3 { font-size: 1.45rem; }
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .oven-top { grid-template-columns: 1.1fr .9fr; }
  .oven-pizza { width: 100%; margin: 0; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr auto; align-items: start; }
  .lead-grid { grid-template-columns: 1fr 440px; align-items: center; }
  .note-a { right: 96%; }
  .note-b { left: 96%; }
}
@media (max-width: 719px) {
  .note { font-size: .8rem; padding: 10px 14px 10px 12px; gap: 10px; }
  .note b { font-size: .92rem; }
  .note-ic { width: 34px; height: 34px; }
  .note-a { top: 8%; right: 38%; }
  .note-b { top: 42%; left: 36%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta, .insta-float, .insta-float span, .shots { transition: none; }
}
