/* Preview landing page (dist/preview/index.html). Not part of either template. */
:root {
  --deep: #0b3a38;
  --deeper: #072826;
  --teal: #12a89f;
  --teal-dark: #0b7670;
  --teal-light: #7fe3da;
  --mint: #e7f6f5;
  --sun: #fff799;
  --red: #d32a33;
  --bg: #f6f9f9;
  --ink: #0b3a38;
  --text: #4f6967;
  --line: #dbe7e5;
  --head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--head); letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--deep); color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 14px 24px; border-radius: 999px; background: var(--red); color: #fff; font: 600 16px var(--head); text-decoration: none; border: 2px solid var(--red); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(211, 42, 51, .28); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(11, 58, 56, .2); }
.btn--sm { padding: 9px 16px; font-size: 15px; }
.btn--light { background: #fff; color: var(--deep); border-color: #fff; }
.btn--light:hover { color: var(--deep); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--line:hover { border-color: #fff; color: #fff; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 21px var(--head); letter-spacing: -0.01em; text-decoration: none; }
.brand__tag { display: inline-flex; gap: 2px; }
.brand__tag b { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 3px; background: var(--deep); color: #fff; font-size: 10px; }
.top__nav { display: flex; gap: 6px; margin-left: auto; }
.top__nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; }
.top__nav a:hover { background: var(--mint); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) 40px; background: radial-gradient(1100px 520px at 85% 0%, #dff4f2 0%, transparent 70%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { margin-bottom: 14px; color: var(--teal-dark); font: 700 13px var(--body); letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; }
.hero h1 span { color: var(--teal-dark); }
.lead { margin-top: 22px; font-size: 19px; max-width: 34em; }
.lead b { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink); font-weight: 500; }
.ticks i { margin-right: 8px; color: var(--teal); }

.hero__art { position: relative; aspect-ratio: 16 / 12; }
.browser { display: block; margin: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 30px 70px rgba(7, 40, 38, .22), 0 0 0 1px rgba(7, 40, 38, .08); }
.browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef3f3; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d6d5; }
.browser__bar i:first-child { background: #ff6a5f; }
.browser__bar i:nth-child(2) { background: #ffc13b; }
.browser__bar i:nth-child(3) { background: #33c56b; }
.browser--front { position: absolute; left: 0; top: 14%; width: 86%; animation: float 7s ease-in-out infinite; }
.browser--back { position: absolute; right: 0; top: 0; width: 70%; opacity: .95; }
.phone { margin: 0; padding: 7px; border-radius: 30px; background: #0d1f1e; box-shadow: 0 24px 50px rgba(7, 40, 38, .3); }
.phone img { border-radius: 23px; }
.phone--hero { position: absolute; right: 2%; bottom: -4%; width: 26%; animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: clamp(40px, 6vw, 72px) 0 0; }
.stats div { padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(7, 40, 38, .06); }
.stats dd { margin: 0; color: var(--ink); font: 800 clamp(34px, 4vw, 46px)/1 var(--head); font-variant-numeric: tabular-nums; }
.stats dt { order: 2; margin-top: 6px; font-size: 15px; }
.stats div { display: flex; flex-direction: column-reverse; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--bg); }
.head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.head h2, .split h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; }
.head p:not(.eyebrow) { margin-top: 16px; font-size: 19px; }

/* Versions */
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.version { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.version--v2 { background: linear-gradient(180deg, #e3f5f3, var(--bg) 46%); }
.version__shot { display: block; padding: 28px 28px 0; }
.version__shot .browser { transition: transform .3s; }
.version:hover .version__shot .browser { transform: translateY(-6px); }
.version__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex: 1; }
.version__body h3 { font-size: 28px; font-weight: 700; }
.version__body .btn { align-self: flex-start; margin-top: auto; }
.badge { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--deep); color: #fff; font: 600 13px var(--body); }
.badge--v1 { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.list { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.list li { position: relative; padding-left: 28px; }
.list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
.list b { color: var(--ink); }

/* Pages */
.tabs { display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.tabs button { padding: 10px 20px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 600 16px var(--head); cursor: pointer; }
.tabs button small { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--teal-dark); font-size: 13px; }
.tabs button[aria-selected="true"] { background: var(--deep); color: #fff; }
.tabs button[aria-selected="true"] small { background: rgba(255, 255, 255, .16); color: #fff; }
.pages__group + .pages__group { margin-top: 44px; }
.pages__group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--teal-dark); }
.pages__group h3 small { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--deep); color: var(--sun); font: 700 15px/1 var(--body); font-variant-numeric: tabular-nums lining-nums; }
.pages__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.shot { display: block; color: var(--ink); text-decoration: none; }
.shot__img { display: block; overflow: hidden; aspect-ratio: 36 / 25; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(7, 40, 38, .06); transition: transform .25s, box-shadow .25s; }
.shot__img img { width: 100%; }
.shot:hover .shot__img { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--teal), 0 18px 34px rgba(7, 40, 38, .14); }
.shot__name { display: block; margin-top: 12px; font: 600 16px var(--head); }
.shot:hover .shot__name { color: var(--teal-dark); }

/* Dark mode slider */
.section--dark { background: radial-gradient(900px 500px at 20% 0%, #134c49 0%, transparent 70%), var(--deeper); color: #b9d3d0; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--teal-light); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__text p:not(.eyebrow) { margin-top: 18px; font-size: 18px; }
.hint { color: var(--teal-light); font-weight: 500; }
.hint i { margin-right: 8px; }
.compare { --pos: 50%; position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); user-select: none; }
.compare__dark { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 0 0 var(--pos)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.compare__knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: var(--deep); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + .compare__tag, .compare:has(.compare__range:focus-visible) { outline: 3px solid var(--teal-light); outline-offset: 4px; }
.compare__tag { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(7, 40, 38, .75); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.features li { padding: 28px; border-radius: 20px; background: var(--bg); transition: background .2s, transform .2s; }
.features li:hover { background: var(--mint); transform: translateY(-3px); }
.features i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--deep); color: var(--teal-light); font-size: 20px; }
.features h3 { margin-bottom: 8px; font-size: 21px; font-weight: 700; }
.features p { font-size: 16px; }

/* Phones */
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 3vw, 36px); max-width: 1000px; margin: 0 auto; }
.phones .phone:nth-child(even) { transform: translateY(40px); }

/* AI */
.section--ai { background: linear-gradient(135deg, #0b3a38 0%, #0e5450 100%); color: #c4dcd9; }
.section--ai h2 { color: #fff; }
.section--ai .eyebrow { color: var(--sun); }
.section--ai b { color: #fff; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tools li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; font-weight: 500; }
.chat { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: rgba(4, 26, 25, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .3); }
.chat p { max-width: 86%; padding: 14px 18px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.chat__you { justify-self: end; background: var(--teal); color: #032321; border-bottom-right-radius: 6px; font-weight: 500; }
.chat__ai { background: rgba(255, 255, 255, .08); color: #e2f1ef; border-bottom-left-radius: 6px; }
.chat__ai i { margin-right: 6px; color: var(--sun); }
.chat code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; }

/* Tech */
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.tech li { display: grid; gap: 4px; padding: 22px 24px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.tech b { color: var(--ink); font: 700 19px var(--head); }
.tech span { font-size: 15px; }

/* Inside */
.inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.inside div { padding: 26px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.inside h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 20px; font-weight: 700; }
.inside h3 i { color: var(--teal); }
.inside p { font-size: 16px; }

/* CTA and footer */
.cta { padding-block: clamp(64px, 9vw, 110px); background: radial-gradient(800px 400px at 50% 120%, #12a89f 0%, transparent 70%), var(--deep); color: #c4dcd9; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; }
.cta p { max-width: 36em; margin: 16px auto 0; font-size: 19px; }
.cta .hero__cta { justify-content: center; }
.foot { padding-block: 28px; background: var(--deeper); color: #9dbdb9; font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot b { color: #fff; }

/* Scroll-in */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .rise.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .pages__grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .top__nav { display: none; }
  .top__in .btn { margin-left: auto; }
  .hero__in, .versions, .split { grid-template-columns: 1fr; }
  .hero__art { max-width: 640px; }
  .features, .inside, .tech { grid-template-columns: 1fr 1fr; }
  .pages__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .features, .inside, .tech { grid-template-columns: 1fr; }
  .pages__grid { gap: 14px; }
  .shot__name { font-size: 14px; }
  .phones { grid-template-columns: 1fr 1fr; }
  .phones .phone:nth-child(even) { transform: translateY(24px); }
  .phones .phone:nth-child(n+3) { display: none; }
  .tabs button { padding: 9px 12px; font-size: 14px; }
  .version__shot, .version__body { padding: 18px; }
  .chat p { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .browser--front, .phone--hero { animation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .btn, .shot__img, .features li, .version__shot .browser { transition: none; }
}

/* AI-ready badge above the hero heading */
.ai-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 22px; padding: 8px 18px 8px 12px; border-radius: 999px; background: var(--deep); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 10px 24px rgba(7, 40, 38, .18); transition: transform .2s, box-shadow .2s; }
.ai-badge i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: var(--deep); font-size: 13px; }
.ai-badge span { font-weight: 500; color: #a6e9e2; }
.ai-badge:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(7, 40, 38, .24); color: #fff; }
.ai-badge:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ai-badge { transition: none; } }

/* Phones: the header keeps the brand and the demo button on one line. */
@media (max-width: 480px) {
  .top__in { gap: 12px; }
  .brand { font-size: 18px; gap: 8px; }
  .top .btn--sm { margin-left: auto; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
}

/* AI section: a big yellow AI-ready tag, and the menu link stands out too. */
.ai-tag { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 10px 22px 10px 12px; border-radius: 999px; background: var(--sun); color: var(--deep); font: 800 clamp(22px, 2.6vw, 30px)/1 var(--head); letter-spacing: -0.01em; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.ai-tag i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--deep); color: var(--sun); font-size: 18px; }
#ai h2 span { color: var(--teal-light); }
.top__nav a.top__ai { display: inline-flex; align-items: center; gap: 7px; background: var(--sun); color: var(--deep); font-weight: 700; }
.top__nav a.top__ai:hover { background: #fff27a; }
.top__ai i { font-size: 13px; }

/* Text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
