/* Shared styles for vantlyapps.com marketing pages (home, /returns, /cancellations). */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --mist: #F4F4F5;
  --line: #E5E5E7;
  --ink: #111113;
  --muted: #62626B;
  --soft: #FAFAFA;
  --accent-bg: #EAF5F0;
  --teal: #0F6E56;
  --teal-strong: #0A5A46;
  --mint: #5DCAA5;
  --mint-soft: #9FE1CB;
  --coral: #E9876A;
  --amber: #BA7517;
  --blue: #185FA5;
  --on-teal: #FFFFFF;
  --btn: #111113; --btn-hover: #2A2A2E; --on-btn: #FFFFFF;
  --shadow: 0 1px 2px rgba(17,17,19,.05), 0 12px 32px -14px rgba(17,17,19,.16);
  --font-display: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0C; --surface: #141416; --mist: #1C1C1F; --line: #2A2A2E; --ink: #F4F4F5; --muted: #A1A1AA; --soft: #111113; --accent-bg: #10251E;
    --teal: #3CC39A; --teal-strong: #5DCAA5; --mint: #5DCAA5; --mint-soft: #2C6B57; --coral: #F0997B; --amber: #E3A443; --blue: #5B9BE0;
    --on-teal: #04241B; --btn: #F4F4F5; --btn-hover: #FFFFFF; --on-btn: #111113;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0C; --surface: #141416; --mist: #1C1C1F; --line: #2A2A2E; --ink: #F4F4F5; --muted: #A1A1AA; --soft: #111113; --accent-bg: #10251E;
  --teal: #3CC39A; --teal-strong: #5DCAA5; --mint: #5DCAA5; --mint-soft: #2C6B57; --coral: #F0997B; --amber: #E3A443; --blue: #5B9BE0;
  --on-teal: #04241B; --btn: #F4F4F5; --btn-hover: #FFFFFF; --on-btn: #111113;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 600 15px/1 var(--font-body); padding: 14px 20px; border-radius: 999px; text-decoration: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s, box-shadow .25s; }
.btn-primary { background: var(--btn); color: var(--on-btn); box-shadow: 0 8px 22px -12px rgba(0,0,0,.45); }
.btn-primary:hover { transform: translateY(-2px); background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 35%; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 10%, transparent), transparent 70%); filter: blur(10px); pointer-events: none; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero-note .dot { flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--mint) 0%, transparent); } }
h1 .word { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
h1 .accent { color: var(--ink); position: relative; white-space: nowrap; }
h1 .accent svg { position: absolute; left: 0; right: 0; bottom: -0.12em; width: 100%; height: .28em; overflow: visible; }
h1 .accent path { stroke: var(--mint); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.1s .9s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes rise { from { transform: translateY(.45em); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Hero demo */
.demo { position: relative; min-width: 0; animation: rise 1s .25s cubic-bezier(.2,.8,.2,1) both; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.demo-card { padding: 22px 22px 40px; display: grid; gap: 18px; }
.demo-head { display: flex; align-items: center; gap: 12px; }
.demo-head .avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; font: 700 14px var(--font-display); color: var(--teal); }
.demo-head .meta { flex: 1; min-width: 0; }
.demo-head strong { display: block; font-size: 15px; }
.demo-head span { font-size: 13px; color: var(--muted); }
.pill { font: 600 12px/1 var(--font-body); padding: 7px 11px; border-radius: 999px; background: var(--accent-bg); color: var(--teal); white-space: nowrap; transition: background .4s, color .4s; }
.pill.done { background: var(--teal); color: var(--on-teal); }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.step { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.step .bar { height: 6px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.step .bar i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: inherit; transition: width .9s cubic-bezier(.6,0,.2,1); }
.step.on { color: var(--ink); font-weight: 600; }
.step.on .bar i { width: 100%; }
.item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.item .thumb { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(145deg, var(--mist), var(--surface)); display: grid; place-items: center; flex: none; }
.item .thumb svg { width: 28px; height: 28px; color: var(--teal); }
.item .info { flex: 1; min-width: 0; }
.item strong { display: block; font-size: 14px; }
.item span { font-size: 13px; color: var(--muted); }
.item .price { font: 600 14px var(--font-body); font-variant-numeric: tabular-nums; }
.events { display: grid; gap: 8px; min-height: 124px; align-content: start; }
.event { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); animation: slidein .6s cubic-bezier(.2,.8,.2,1) both; }
.event b { font-weight: 600; }
.event .ic { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--on-teal); display: grid; place-items: center; flex: none; }
.event .ic svg { width: 12px; height: 12px; }
.event .amt { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--teal); white-space: nowrap; }
@keyframes slidein { from { transform: translateY(8px); opacity: 0; } }
.float { position: absolute; right: -14px; bottom: -22px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; animation: bob 5s ease-in-out infinite; }
.float .big { font: 700 20px var(--font-display); color: var(--teal); letter-spacing: -0.02em; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .float { position: static; margin-top: 14px; animation: none; } .stepper { font-size: 11px; } }

/* Integrations strip */
.strip { padding-block: 20px 8px; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--muted); font-size: 14px; }
.strip .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--mint); }

/* Sections */
section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 44rem; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; padding: 26px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s; min-width: 0; }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); }
.tile.wide { grid-column: span 3; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--teal); }
.tile .ico svg { width: 22px; height: 22px; }
.rule { font-family: var(--font-mono); font-size: 13px; line-height: 1.8; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.rule .k { color: var(--teal); font-weight: 600; }
.rule .v { background: var(--mist); border-radius: 6px; padding: 1px 6px; }
.rule .r { color: var(--coral); font-weight: 600; }
.swap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.swap .sku { font-family: var(--font-mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.swap .arrow { color: var(--teal); }
@media (max-width: 960px) { .tile, .tile.wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide { grid-column: auto; } }

/* Protection */
.cancel-offer { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--accent-bg); font-size: 14px; }
.cancel-offer span { color: var(--muted); }
@media (max-width: 860px) { #cancellations .protect { grid-template-columns: 1fr; } #cancellations .cart { order: 1 !important; } }
.protect { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.protect ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.protect li { display: flex; gap: 12px; color: var(--muted); }
.protect li b { color: var(--ink); font-weight: 600; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-bg); color: var(--teal); display: grid; place-items: center; flex: none; margin-top: 2px; }
.tick svg { width: 12px; height: 12px; }
.cart { padding: 22px; display: grid; gap: 14px; max-width: 440px; justify-self: center; width: 100%; }
.cart-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-row.total { font-weight: 700; font-size: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-row .pp { color: var(--teal); transition: opacity .3s; }
.widget { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .3s, background .3s; text-align: left; width: 100%; font: inherit; color: inherit; }
.widget[aria-checked="true"] { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); background: var(--surface); }
.widget .shield { width: 36px; height: 36px; flex: none; color: var(--teal); }
.widget .txt { flex: 1; min-width: 0; line-height: 1.35; }
.widget .txt b { display: block; font-size: 14px; }
.widget .txt span { font-size: 13px; color: var(--muted); }
.switch { width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.widget[aria-checked="true"] .switch { background: var(--teal); }
.widget[aria-checked="true"] .switch::after { transform: translateX(18px); }
.checkout { width: 100%; }
.kept { font-size: 13px; color: var(--muted); text-align: center; }
.kept b { color: var(--teal); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .protect { grid-template-columns: 1fr; } }


/* Pricing */
.price-card { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: #111113; color: #F4F4F5; border: 0; position: relative; overflow: hidden; }
.price-card::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 35%, transparent), transparent); opacity: .35; pointer-events: none; }
.price-card h2 { color: #F4F4F5; }
.price-card .lede { color: #A1A1AA; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.promises li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.promises .tick { background: rgba(93,202,165,.16); color: #5DCAA5; margin: 0; }
@media (max-width: 860px) { .price-card { grid-template-columns: 1fr; } }

/* Footer */
footer { padding-block: 40px 56px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* Scroll reveals: content is visible at rest; supporting browsers ease it in as it scrolls into view. */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  @keyframes reveal { from { opacity: .001; transform: translateY(28px) scale(.985); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .accent path { stroke-dashoffset: 0; }
}

/* Nav: active page + current-app CTA */
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn { flex: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-body); padding: 6px 10px; border-radius: 999px; background: var(--accent-bg); color: var(--teal); white-space: nowrap; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.badge.soon { background: var(--mist); color: var(--muted); }

/* Home: app cards */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.app-card { padding: clamp(24px, 3.5vw, 36px); display: grid; gap: 16px; align-content: start; min-width: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.app-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); }
.app-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-bg); display: grid; place-items: center; color: var(--teal); }
.app-card .ico svg { width: 24px; height: 24px; }
.app-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; }
.app-card p { color: var(--muted); }
.app-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.app-card li { display: flex; gap: 10px; color: var(--muted); }
.app-card li b { color: var(--ink); font-weight: 600; }
.app-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.app-card.more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; background: var(--soft); box-shadow: none; padding: 22px clamp(24px, 3.5vw, 36px); }
.app-card.more:hover { transform: none; }
.app-card.more p { margin: 0; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } }

/* Home: principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle { padding: 24px; display: grid; gap: 10px; align-content: start; }
.principle p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* Returns: plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 1; grid-column: 1 / -1; }
.plan { border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 20px; display: grid; gap: 6px; align-content: start; background: rgba(255,255,255,.03); }
.plan.pick { border-color: rgba(93,202,165,.55); background: rgba(93,202,165,.07); }
.plan .name { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #A1A1AA; }
.plan .amt { font: 700 2rem/1.1 var(--font-display); letter-spacing: -0.03em; color: #F4F4F5; }
.plan .amt small { font: 500 14px var(--font-body); color: #A1A1AA; letter-spacing: 0; }
.plan .yr { font-size: 13px; color: #A1A1AA; }
.plan .lim { margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #E4E4E7; }
.price-note { grid-column: 1 / -1; color: #A1A1AA; font-size: 14px; position: relative; z-index: 1; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }

/* Cross-sell band */
.also { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: clamp(24px, 4vw, 36px); }
.also .txt { display: grid; gap: 8px; max-width: 40rem; }
.also p { color: var(--muted); }

/* Footer columns */
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer .links a { color: inherit; text-decoration: none; }
footer .links a:hover { color: var(--ink); }

/* Phones: keep page links in the bar (the app pages need them); CTAs live in the page content. */
@media (max-width: 760px) {
  .nav .wrap { gap: 14px; }
  .nav-links { display: flex; gap: 14px; font-size: 13px; }
  .nav .btn { display: none; }
}
@media (max-width: 380px) { .brand { font-size: 19px; } .brand svg { width: 26px; height: 26px; } .nav-links { gap: 11px; } }
