/* Pulse Suite, pulsesuite.app
   Brand: business plan appendix A. Neutral everywhere (Notte, Carta, Grafite, Nebbia),
   app colour only where it marks an app. Inter, tabular figures for numbers. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --notte: #0E1430;
  --carta: #F7F7F5;
  --grafite: #5B6170;
  --nebbia: #E4E5E9;

  --bg: var(--carta);
  --surface: #FFFFFF;
  --surface-2: #F1F1EE;
  --panel: #FFFFFF;
  --ink: var(--notte);
  --muted: var(--grafite);
  --line: var(--nebbia);
  --shadow: 0 1px 2px rgba(14, 20, 48, .04), 0 12px 32px rgba(14, 20, 48, .07);

  --search-text: #4338CA; --search-tint: #EEEDFC;
  --map-text: #0F766E;    --map-tint: #E6F4F2;
  --answer-text: #A21CAF; --answer-tint: #F8E9FA;

  --scr-bg: #F2F2F7; --scr-card: #FFFFFF; --scr-ink: #0E1430; --scr-muted: #6B7080;

  --radius: 20px;
  --wrap: 1160px;
  --gutter: 24px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090D1F;
    --surface: #111831;
    --surface-2: #161E3B;
    --panel: #161E3B;
    --ink: #EEF0F6;
    --muted: #A3A9BC;
    --line: rgba(255, 255, 255, .1);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 16px 40px rgba(0, 0, 0, .35);
    --search-text: #818CF8; --search-tint: rgba(79, 70, 229, .2);
    --map-text: #2DD4BF;    --map-tint: rgba(13, 148, 136, .2);
    --answer-text: #E879F9; --answer-tint: rgba(192, 38, 211, .2);
    --scr-bg: #000000; --scr-card: #1C1C1E; --scr-ink: #FFFFFF; --scr-muted: #98989F;
  }
}

/* App scopes. --app-btn uses the "text on white" teal for MapPulse, as the guidelines ask for small text. */
.app-search { --app: #4F46E5; --app-btn: #4F46E5; --app-text: var(--search-text); --app-tint: var(--search-tint); --app-text-dark: #818CF8; --app-tint-dark: rgba(79, 70, 229, .22); }
.app-map    { --app: #0D9488; --app-btn: #0F766E; --app-text: var(--map-text);    --app-tint: var(--map-tint);    --app-text-dark: #2DD4BF; --app-tint-dark: rgba(13, 148, 136, .22); }
.app-answer { --app: #C026D3; --app-btn: #C026D3; --app-text: var(--answer-text); --app-tint: var(--answer-tint); --app-text-dark: #E879F9; --app-tint-dark: rgba(192, 38, 211, .22); }

/* Notte sections: same components, inverted tokens */
.dark {
  --bg: var(--notte);
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --panel: #182044;
  --ink: #FFFFFF;
  --muted: #AEB3C4;
  --line: rgba(255, 255, 255, .11);
  --search-text: #818CF8; --search-tint: rgba(79, 70, 229, .22);
  --map-text: #2DD4BF;    --map-tint: rgba(13, 148, 136, .22);
  --answer-text: #E879F9; --answer-tint: rgba(192, 38, 211, .22);
  --app-text: var(--app-text-dark);
  --app-tint: var(--app-tint-dark);
  background: var(--bg);
  color: var(--ink);
}

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--app-text, var(--ink)); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
code { font: 500 .86em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--app-tint, var(--surface-2)); color: var(--app-text, var(--ink)); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--app, #4F46E5); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--panel); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.55; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 13px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, filter .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-app { background: var(--app-btn); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -8px var(--app); }
.btn-app:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.btn-ghost:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--ink) 32%, transparent); }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: .9rem; gap: 6px; box-shadow: none; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-col { display: grid; gap: 12px; justify-items: stretch; }

.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 14px; height: 14px; background: var(--app-text, var(--muted)); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.hero .facts li::before { background: #fff; opacity: .7; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 12px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.22rem; letter-spacing: -0.02em; margin-right: auto; flex: none; }
.brand span { font-weight: 400; }
.brand b { font-weight: 600; }
.brand-mark { width: 30px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .menu-panel a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav a { opacity: .74; }
.nav a:hover, .nav a[aria-current] { opacity: 1; background: var(--surface-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--app); flex: none; }
.header-cta { margin-left: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--ink); border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 2 * var(--gutter))); display: grid; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.menu-panel a { padding: 12px 14px; font-size: 1rem; }
.menu-panel a:hover { background: var(--surface-2); }

/* Sections */
section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.035em; line-height: 1.05; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: clamp(1.04rem, 1.4vw, 1.16rem); margin: 18px 0 0; max-width: 40em; }

/* The pulse: flat line, one beat, a bright segment that travels through it */
.pulse { display: flex; align-items: center; height: 64px; color: var(--line); }
.pulse i { flex: 1; height: 2px; background: currentColor; }
.pulse i:first-child { flex: 1.7; }
.pulse svg { width: 160px; height: 64px; flex: none; overflow: visible; }
.pulse path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pulse .beat { stroke: var(--app, #fff); stroke-width: 2.6; stroke-dasharray: 22 140; stroke-dashoffset: 22; opacity: 0; }
.hero-pulse { margin-top: clamp(40px, 6vw, 72px); color: rgba(255, 255, 255, .22); }
.hero-pulse .beat { stroke: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .7)); }
.foot-pulse { margin: 40px 0 0; height: 40px; }
.foot-pulse svg { width: 100px; height: 40px; }
@media (prefers-reduced-motion: no-preference) {
  .pulse .beat { animation: beat 3.6s cubic-bezier(.45, 0, .3, 1) 1s infinite; }
}
@keyframes beat {
  0% { stroke-dashoffset: 22; opacity: 1; }
  55% { stroke-dashoffset: -118; opacity: 1; }
  56%, 100% { stroke-dashoffset: -118; opacity: 0; }
}

/* Devices */
.device {
  --w: 290px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * .03);
  border-radius: calc(var(--w) * .16);
  background: #0A0B10;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 50px 80px -30px rgba(6, 10, 32, .5), 0 18px 36px -18px rgba(6, 10, 32, .4);
}
.device img, .device picture, .device .lock-screen, .device .screen { border-radius: calc(var(--w) * .13); overflow: hidden; width: 100%; }
.device.iphone::after { content: ""; position: absolute; top: calc(var(--w) * .062); left: 50%; translate: -50% 0; width: calc(var(--w) * .29); height: calc(var(--w) * .085); border-radius: 99px; background: #000; }
.device.duo { --w: 100%; padding: 10px; border-radius: 30px; }
.device.duo img, .device.duo picture { border-radius: 21px; }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 clamp(28px, 4vw, 48px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 100% 88px;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 20%, #000 70%, transparent);
  mask: linear-gradient(to bottom, transparent, #000 20%, #000 70%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1, .app-hero h1 { font-size: clamp(2.75rem, 6.6vw, 5.1rem); letter-spacing: -0.045em; line-height: 1.0; }
.app-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.25rem); line-height: 1.02; }
.hero .lead, .app-hero .lead { margin-top: 26px; max-width: 34em; }
.hero .eyebrow { color: #AEB3C4; }
.hero-visual { position: relative; width: min(100%, 500px); margin-left: auto; padding-top: 76px; }
.hero-visual .front { --w: clamp(250px, 25vw, 300px); z-index: 2; }
.hero-visual .back { --w: clamp(220px, 22vw, 266px); position: absolute; top: 0; right: 0; }
.dark .hero-visual .back { opacity: .92; }

/* Lock screen with the three apps talking */
.lock-screen {
  position: relative; aspect-ratio: 1320 / 2868; display: flex; flex-direction: column; align-items: center;
  padding: 24% 5.5% 7%; color: #fff; text-align: center; font-size: calc(var(--w) * .043);
  background:
    radial-gradient(120% 55% at 15% 0%, rgba(79, 70, 229, .55), transparent 62%),
    radial-gradient(90% 45% at 100% 45%, rgba(192, 38, 211, .32), transparent 62%),
    radial-gradient(110% 55% at 25% 100%, rgba(13, 148, 136, .42), transparent 62%),
    #0B1028;
}
.lock-date { margin: 0; font-size: 1.05em; font-weight: 500; opacity: .85; }
.lock-time { margin: 0; font-size: 5.2em; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.notes { margin-top: auto; width: 100%; display: grid; gap: .55em; }
.note { display: flex; gap: .7em; align-items: flex-start; text-align: left; padding: .75em .8em; border-radius: 1.25em; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: .82em; line-height: 1.3; }
.note img { width: 2.7em; height: 2.7em; border-radius: .65em; flex: none; }
.note > div { min-width: 0; flex: 1; }
.note p { margin: 0; }
.note-head { display: flex; justify-content: space-between; gap: .5em; font-size: .86em; opacity: .7; margin-bottom: .1em !important; }
.note-head b { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.note-title { font-weight: 600; }
.note-body { opacity: .82; }
@media (prefers-reduced-motion: no-preference) {
  .note { animation: note-in .6s cubic-bezier(.2, .8, .2, 1) both; }
  .note:nth-child(1) { animation-delay: .5s; }
  .note:nth-child(2) { animation-delay: .9s; }
  .note:nth-child(3) { animation-delay: 1.3s; }
}
@keyframes note-in { from { opacity: 0; translate: 0 14px; scale: .97; } }

/* App cards */
.apps-section { padding-top: clamp(40px, 6vw, 72px); }
.app-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px;
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.app-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--app); }
.app-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--app) 55%, transparent); background: var(--surface-2); }
.app-card header { display: flex; align-items: center; gap: 14px; }
.app-card header img { width: 56px; height: 56px; border-radius: 13px; }
.app-card h3 { font-size: 1.3rem; }
.app-card header span { color: var(--muted); font-size: .9rem; }
.app-card .claim { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }
.app-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: var(--muted); font-size: .95rem; }
.app-card li { display: flex; gap: 10px; align-items: baseline; }
.app-card li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--app); flex: none; translate: 0 -2px; }
.app-card .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--app-text); }
.app-card .more svg { width: 17px; height: 17px; transition: translate .2s ease; }
.app-card:hover .more svg { translate: 4px 0; }

.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 99px; font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.status.live { color: var(--app-text); background: var(--app-tint); border-color: transparent; }
.status.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--app); }
@media (prefers-reduced-motion: no-preference) {
  .status.live::before { animation: ping 2s ease-out infinite; }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--app) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* Split layouts and app identity */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.split h2, .feature-row h2, .feature-wide h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.035em; line-height: 1.07; }
.split .lead { margin-top: 18px; }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-id img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 8px 22px -8px var(--app); }
.app-id b { display: block; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.app-id span { color: var(--muted); font-size: .9rem; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .18em; width: 21px; height: 21px; border-radius: 7px; background: var(--app-tint, var(--surface-2)); }
.checks li::after { content: ""; position: absolute; left: 4.5px; top: calc(.18em + 4.5px); width: 12px; height: 12px; background: var(--app-text, var(--ink)); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }

/* Privacy in numbers */
.privacy { background: var(--surface); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(3.6rem, 7vw, 5.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { color: var(--muted); margin: 14px 0 0; max-width: 17em; }
.footnote { margin: 44px 0 0; color: var(--muted); font-size: .92rem; max-width: 52em; }

/* Pricing */
.price-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.price-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.price-head .app-id { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.plan h3 { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan .price { margin: 6px 0 4px; font-size: 2.3rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan .price small { margin-left: 4px; font-size: .92rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan p:last-child { margin: 0; color: var(--muted); font-size: .93rem; }
.plan.free { background: var(--app-tint); border-color: transparent; }
.plan.free h3 { color: var(--app-text); }
.price-note { margin: 18px 0 0; color: var(--muted); font-size: .86rem; }
.later { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.later-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
.later-card:hover { border-color: color-mix(in srgb, var(--app) 55%, transparent); }
.later-card img { width: 40px; height: 40px; border-radius: 10px; }
.later-card b { font-weight: 600; }
.later-card p { margin: 2px 0 0; color: var(--muted); font-size: .93rem; }

/* Roadmap */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--app); }
.timeline li.now::before { background: var(--app); }
@media (prefers-reduced-motion: no-preference) {
  .timeline li.now::before { animation: ping 2s ease-out infinite; }
}
.timeline .when { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--app-text); }
.timeline h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.timeline p { color: var(--muted); margin: 0; font-size: .96rem; }

/* CTA */
.cta-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: 28px; background: var(--app-tint, var(--surface)); }
.cta-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.07; }
.cta-card p { color: var(--muted); margin: 16px 0 0; max-width: 36em; }
.cta-card .btn-ghost { background: var(--surface); }
.cta-section { padding-top: 0; }
.roadmap + .cta-section, .integration + .cta-section { padding-top: clamp(72px, 9vw, 120px); }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tile .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--app-tint, var(--surface-2)); color: var(--app-text, var(--ink)); }
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.1rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.tile p { color: var(--muted); margin: 0; font-size: .97rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid2 .tile h3 { margin-bottom: 18px; }
.grid2 .checks { margin: 0; font-size: .97rem; }

/* App pages */
.app-hero { background: var(--app-tint); padding: clamp(48px, 6vw, 84px) 0 clamp(64px, 8vw, 104px); }
.app-hero .eyebrow { color: var(--app-text); }
.app-hero .hero-visual { padding-top: 64px; }
.tinted { background: var(--app-tint); }
.rows { padding-top: 0; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 120px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; padding-top: 0; }
.feature-row.reverse { grid-template-columns: auto minmax(0, 1fr); }
.feature-row.reverse .copy { order: 2; }
.feature-row .device { --w: clamp(240px, 24vw, 290px); }
.feature-row .copy, .feature-wide .copy { max-width: 32em; }
.feature-row .copy > p:not(.eyebrow), .feature-wide .copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }
.feature-row .eyebrow, .feature-wide .eyebrow { color: var(--app-text); }
.feature-wide { padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); display: grid; gap: 40px; }
.feature-wide .device { max-width: 980px; }

/* HTML phone mockups (MapPulse, AnswerPulse) */
.mock { justify-self: center; }
.mock .device { --w: clamp(260px, 26vw, 310px); }
.screen { aspect-ratio: 1320 / 2868; display: flex; flex-direction: column; padding: 22% 5% 5%; font-size: calc(var(--w) * .04); line-height: 1.38; background: var(--scr-bg); color: var(--scr-ink); }
.screen > * { flex: none; }
.tabbar { margin-top: auto; display: flex; justify-content: space-between; padding: .45em; border-radius: 99px; background: var(--scr-card); box-shadow: 0 .3em 1.2em rgba(14, 20, 48, .08); font-size: .8em; font-weight: 600; color: var(--scr-muted); }
.tabbar span { padding: .35em .75em; border-radius: 99px; }
.tabbar .on { background: var(--app-tint); color: var(--app-text); }
.bars { display: grid; gap: .5em; margin-top: .7em; }
.bars p { margin: 0; display: grid; grid-template-columns: 5.4em 1fr 2.6em; align-items: center; gap: .6em; font-size: .9em; }
.bars i { height: .55em; border-radius: 99px; background: linear-gradient(to right, var(--app) var(--v), var(--app-tint) var(--v)); }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }
.screen p { margin: .4em 0 0; }
.scr-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1em; }
.scr-bar b { font-size: 1.75em; letter-spacing: -0.02em; }
.scr-muted { color: var(--scr-muted); }
.chip { background: var(--app-tint); color: var(--app-text); border-radius: 99px; padding: .3em .8em; font-weight: 600; font-size: .9em; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; margin-bottom: .75em; }
.kpis div { background: var(--scr-card); border-radius: 1em; padding: .75em; }
.kpis b { display: block; font-size: 1.35em; font-variant-numeric: tabular-nums; }
.kpis span { color: var(--scr-muted); font-size: .82em; }
.card-s { background: var(--scr-card); border-radius: 1.2em; padding: 1em; margin-bottom: .75em; }
.card-s .row { display: flex; justify-content: space-between; align-items: baseline; gap: .5em; }
.stars { color: #F5A524; letter-spacing: 1px; }
.draft { margin-top: .8em; background: var(--app-tint); border-radius: .9em; padding: .8em; }
.draft small { display: block; color: var(--app-text); font-weight: 600; font-size: .85em; margin-bottom: .25em; }
.mini-btns { display: flex; gap: .45em; margin-top: .65em; }
.mini-btns span { background: var(--app-btn); color: #fff; border-radius: .6em; padding: .4em .8em; font-weight: 600; font-size: .88em; }
.mini-btns span.alt { background: transparent; color: var(--app-text); box-shadow: inset 0 0 0 1px var(--line); }
.concept { text-align: center; font-size: .8rem; color: var(--muted); margin: 16px 0 0; }

/* Google Business Profile integration */
.integration { background: var(--surface); border-block: 1px solid var(--line); }
.integration .section-head .eyebrow { color: var(--app-text); }
.integration .tile { background: var(--bg); }
.table-title { font-size: 1.2rem; margin: 48px 0 16px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--line); }
table.spec { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .94rem; background: var(--surface); }
table.spec th { text-align: left; background: var(--notte); color: #fff; font-weight: 600; padding: 13px 16px; }
table.spec td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.spec tbody tr:nth-child(even) td { background: var(--surface-2); }
table.spec td:first-child { font-weight: 500; }
.callout { margin: 32px 0 20px; padding: 20px 24px; border-left: 3px solid var(--app); background: var(--app-tint); border-radius: 0 16px 16px 0; }
.callout p { margin: 0; }

/* FAQ */
.faq-section { background: var(--surface); border-top: 1px solid var(--line); }
.faq { max-width: 820px; }
.faq h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.035em; margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--app-tint, var(--surface-2)); color: var(--app-text, var(--ink)); font-weight: 500; font-size: 1.2rem; transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); margin: -4px 0 22px; max-width: 44em; }

/* Documents */
.doc { max-width: 780px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 104px; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.04; }
.doc .meta { color: var(--muted); margin: 14px 0 32px; }
.doc .lead { margin: 18px 0 32px; }
.doc h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.08rem; margin: 28px 0 8px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--muted); }
.summary-box { margin: 32px 0; padding: 4px 28px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.summary-box h2 { border: 0; padding-top: 0; margin-top: 22px; }
.contact-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.contact-card > div { background: var(--surface); padding: 22px 24px; display: grid; gap: 6px; align-content: start; }
.contact-card b { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }
.doc .faq summary { font-size: 1rem; }
.notfound { text-align: center; padding-top: clamp(72px, 12vw, 140px); }
.notfound .btn-row { justify-content: center; }
.flatline { height: 2px; background: var(--line); margin: 0 auto 48px; max-width: 420px; position: relative; }
.flatline::after { content: ""; position: absolute; right: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }

/* Footer */
.site-footer { padding: 72px 0 44px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); margin: 16px 0 0; max-width: 24em; }
.foot-brand .credit { margin-top: 10px; font-size: .88rem; }
.site-footer .foot-grid .credit a:not(.brand) { display: inline; margin: 0; opacity: 1; color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted); }
.site-footer h4 { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px; }
.site-footer .foot-grid a:not(.brand) { display: block; color: var(--ink); opacity: .82; text-decoration: none; margin-bottom: 10px; }
.site-footer .foot-grid a:not(.brand):hover { opacity: 1; }
.site-footer .legal { margin: 0; padding-top: 8px; color: var(--muted); font-size: .8rem; line-height: 1.65; max-width: 90em; }

/* Scroll reveal, where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 28px; } }

/* Responsive */
@media (max-width: 1060px) {
  .nav a { padding: 8px 9px; }
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero-grid, .split, .cta-card { grid-template-columns: 1fr; }
  .hero-visual { margin: 8px auto 0; width: min(100%, 440px); }
  .app-cards, .tiles, .grid2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .copy { order: 0; }
  .feature-row .device { margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .bar { height: 60px; }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 27px; height: 21px; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero-visual { width: min(100%, 360px); padding-top: 56px; }
  .hero-visual .front { --w: min(232px, 64vw); }
  .hero-visual .back { --w: min(200px, 55vw); }
  .tiles, .later, .contact-card { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .plans { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan { padding: 16px; }
  .plan .price { font-size: 1.85rem; }
  .timeline { grid-template-columns: 1fr; row-gap: 28px; padding-left: 4px; }
  .timeline::before { left: 11px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .timeline li { padding: 0 0 0 40px; }
  .timeline li::before { left: 4px; top: 3px; }
  .pulse svg { width: 120px; height: 48px; }
  .pulse { height: 48px; }
  .summary-box { padding: 2px 20px 8px; }
  .site-footer { padding-top: 56px; }
}
@media (max-width: 400px) {
  .header-cta { display: none; }
  .plans { grid-template-columns: 1fr; }
}
