/* Flagstone marketing site. Static, no build step. Light theme only. */
:root {
  --ink: #1d2f40;
  --text: #485868;
  --muted: #6b7986;
  --bg: #ffffff;
  --soft: #f4f6f7;
  --line: #e1e6ea;
  --brand: #1f6b47;
  --brand-d: #175237;
  --tint: #e6f1ea;
  --navy: #152431;
  --navy-2: #1e3244;
  --on-navy: #c5d0da;
  --tag-bg: #fdf1cf;
  --tag-fg: #6b4e00;
  --r: 14px;
  --shadow-s: 0 1px 2px rgba(21, 36, 49, .05), 0 6px 18px rgba(21, 36, 49, .06);
  --shadow-l: 0 2px 6px rgba(21, 36, 49, .06), 0 28px 64px -16px rgba(21, 36, 49, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 72px;
  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.125rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1180px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1.0625rem/1 var(--font); letter-spacing: -.01em; text-decoration: none;
  padding: 1em 1.5em; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(31, 107, 71, .55); }
.btn.primary:hover { background: var(--brand-d); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(31, 107, 71, .6); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #c9d2d9; }
.btn.ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn.light { background: #fff; color: var(--brand-d); }
.btn.light:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .35); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn.outline-light:hover { border-color: #fff; transform: translateY(-2px); }
.btn.small { padding: .8em 1.15em; font-size: 1rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background-color .3s;
}
header.site.scrolled, header.site.open { background: rgba(255, 255, 255, .96); box-shadow: 0 6px 24px -10px rgba(21, 36, 49, .22); border-color: var(--line); }
header.site .wrap { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.45rem; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 34px; flex: none; }
header.site nav { display: flex; gap: 6px; margin-inline: auto; }
header.site nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.0625rem; padding: 8px 12px; border-radius: 8px; position: relative; }
header.site nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
header.site nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 8px; cursor: pointer; padding: 11px 9px; flex-direction: column; justify-content: space-between; }
.menu-btn i { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
header.site.open .menu-btn i:nth-child(1) { transform: translateY(10px) rotate(45deg); }
header.site.open .menu-btn i:nth-child(2) { opacity: 0; }
header.site.open .menu-btn i:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Sections */
section { padding-block: clamp(64px, 9vw, 124px); position: relative; }
section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; font-size: 1.25rem; line-height: 1.6; }

/* Hero */
.hero { background: var(--soft); padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 7vw, 92px)); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#d7dee3 1px, transparent 1px), linear-gradient(90deg, #d7dee3 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 82% 28%, #000 0, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 75% at 82% 28%, #000 0, transparent 72%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lead { font-size: clamp(1.2rem, 1.7vw, 1.36rem); line-height: 1.6; margin-top: 24px; max-width: 34em; }
.hero .actions { margin-top: 34px; }
.try-note { margin: 16px 0 0; max-width: 36em; font-size: .98rem; line-height: 1.5; color: var(--muted); }
.try-note a { color: var(--brand-d); font-weight: 600; }
.trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 1rem; font-weight: 500; color: var(--ink); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.hero .copy > * { animation: rise .8s var(--ease) both; }
.hero .copy > :nth-child(2) { animation-delay: .08s; }
.hero .copy > :nth-child(3) { animation-delay: .16s; }
.hero .copy > :nth-child(4) { animation-delay: .24s; }
.hero .copy > :nth-child(5) { animation-delay: .32s; }
.hero-art { margin: 0; animation: rise 1s var(--ease) .2s both; min-width: 0; }
.stage { position: relative; padding: 0 7% 9% 0; }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 27%; animation: phone-in .9s var(--ease) .75s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* The phone arrives once and then sits still: a slow endless drift steps a pixel at a time and looks jittery. */
@keyframes phone-in { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }

/* Device frames */
.browser { background: #fff; border: 1px solid #d5dce2; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-l); }
.browser .bar { height: 32px; background: #eceff2; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #dde3e8; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #c4ccd3; }
.phone { background: #111b24; padding: 3.2%; border-radius: 13% / 6.2%; box-shadow: var(--shadow-l); }
.phone img { border-radius: 10% / 4.7%; width: 100%; }
figure { margin: 0; }
figcaption { margin-top: 16px; font-size: .95rem; line-height: 1.45; color: var(--muted); }
.tag { display: inline-block; background: var(--tag-bg); color: var(--tag-fg); font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; margin-right: 8px; vertical-align: 1px; }

/* Value cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 32px; box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: transparent; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.card .icon svg { width: 26px; height: 26px; }
.card p { margin-top: 10px; font-size: 1.0625rem; line-height: 1.6; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.flip .copy { order: 2; }
.feature .copy > p { margin-top: 20px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; line-height: 1.5; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6b47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.aside-note { margin-top: 22px; font-size: .98rem; color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }

/* Public band */
.band { background: var(--navy); color: var(--on-navy); overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(#24394c 1px, transparent 1px), linear-gradient(90deg, #24394c 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0, transparent 75%);
}
.band .wrap { position: relative; }
.band h2, .band h3 { color: #fff; }
.band .tag { background: rgba(253, 241, 207, .14); color: #f6dc97; }
.band figcaption { color: var(--on-navy); }
.band figcaption strong { display: block; color: #fff; font-size: 1.15rem; letter-spacing: -.02em; margin: 10px 0 4px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.gallery .phone { background: #0b131a; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px #2b4257; transition: transform .35s var(--ease); }
.gallery figure:hover .phone { transform: translateY(-8px); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 6vw, 80px); }
.points > div { border-top: 1px solid #2f465a; padding-top: 22px; }
.points p { margin-top: 8px; font-size: 1.0625rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 980px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 38px 34px 34px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.plan.featured { border: 2px solid var(--brand); }
.plan .ribbon { position: absolute; top: -15px; left: 32px; background: var(--brand); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .03em; padding: 5px 13px; border-radius: 99px; }
.plan h3 { font-size: 1.5rem; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; color: var(--ink); }
.price .amt { font-size: 4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.price .per { font-size: 1.15rem; font-weight: 500; color: var(--muted); }
.onboard { margin-top: 14px; padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.onboard b { font-weight: 700; }
.plan .checks { margin: 26px 0 30px; font-size: 1.0325rem; }
.plan .btn { margin-top: auto; }
.how { max-width: 980px; margin: 28px auto 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; background: var(--tint); border-radius: var(--r); padding: 24px 28px; color: var(--ink); }
.how svg { width: 28px; height: 28px; color: var(--brand); margin-top: 2px; }
.how h3 { font-size: 1.15rem; }
.how p { margin-top: 6px; font-size: 1.0625rem; line-height: 1.55; }
.addons { max-width: 980px; margin: clamp(44px, 6vw, 72px) auto 0; }
.addons h3 { font-size: 1.5rem; }
.addons dl { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.addons dl > div { border-top: 2px solid var(--line); padding-top: 16px; }
.addons dt { font-weight: 700; color: var(--ink); }
.addons dd { margin: 6px 0 0; font-size: 1rem; line-height: 1.55; }
.fine { max-width: 980px; margin: 36px auto 0; font-size: 1rem; color: var(--muted); }

/* FAQ */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq .section-head { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; transition: box-shadow .25s, border-color .25s; }
.faq details:hover, .faq details[open] { box-shadow: var(--shadow-s); border-color: #cfd7dd; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6b47' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; font-size: 1.0625rem; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Closing */
.closing { background: linear-gradient(135deg, #1f6b47 0%, #164c34 100%); color: #dcebe2; text-align: center; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(#3b8562 1px, transparent 1px), linear-gradient(90deg, #3b8562 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 50% 50%, transparent 30%, #000 100%);
  mask-image: radial-gradient(ellipse 60% 90% at 50% 50%, transparent 30%, #000 100%);
}
.closing .wrap { position: relative; max-width: 820px; }
.closing h2 { color: #fff; }
.closing p { margin-top: 20px; font-size: 1.22rem; line-height: 1.6; }
.closing .actions { justify-content: center; margin-top: 36px; }
.closing .mail { margin-top: 26px; font-size: 1.05rem; }
.closing .mail a { color: #fff; font-weight: 700; }

/* Footer */
footer.site { background: var(--navy); color: #9fb0bf; font-size: .98rem; line-height: 1.6; padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
footer.site .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-bottom: 28px; border-bottom: 1px solid #28405a; }
footer.site .brand { color: #fff; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer.site nav a { color: #d3dde6; text-decoration: none; font-weight: 500; }
footer.site nav a:hover { color: #fff; text-decoration: underline; }
footer.site p { margin-top: 20px; max-width: 78ch; }
.demo-note { color: #e8d59c; }

/* Scroll reveal. Content is fully visible without JavaScript and under reduced motion. */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js .reveal.zoom { transform: translateY(30px) scale(.965); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  header.site nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(21, 36, 49, .3); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  header.site.open nav { visibility: visible; opacity: 1; transform: none; }
  header.site nav a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  header.site nav a:last-child { border-bottom: 0; }
  header.site nav a::after { display: none; }
  header.site .wrap { gap: 10px; }
  header.site .cta { margin-left: auto; }
  .menu-btn { display: flex; }
}
@media (max-width: 900px) {
  .hero .wrap, .feature, .faq .wrap { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .copy { order: 0; }
  .faq .section-head { position: static; }
  .cards, .points, .addons dl { grid-template-columns: minmax(0, 1fr); }
  .points { gap: 22px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .how, .addons, .fine { max-width: 560px; }
  .hero-art { max-width: 620px; }
  .gallery { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(62vw, 250px); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 20px; padding: 12px max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px)); margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))) calc(-1 * max(20px, env(safe-area-inset-right, 0px))); scroll-padding-inline: 20px; scrollbar-width: thin; scrollbar-color: #3a556c transparent; }
  .gallery figure { scroll-snap-align: start; }
  .gallery figure:hover .phone { transform: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  body { font-size: 1.0625rem; }
  .brand { font-size: 1.3rem; }
  .brand svg { width: 26px; height: 30px; }
  .btn.small { padding: .75em .95em; font-size: .95rem; }
  .hero .actions .btn { flex: 1 1 100%; }
  .plan { padding: 34px 24px 26px; }
  .price .amt { font-size: 3.4rem; }
  .how { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .closing .actions .btn { flex: 1 1 100%; }
  .section-head p, .closing p { font-size: 1.14rem; }
}
@media (max-width: 380px) {
  header.site .cta .long { display: none; }
}
@media (min-width: 381px) {
  header.site .cta .short { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal.zoom { opacity: 1; transform: none; }
}
@media print {
  header.site { position: static; }
  .js .reveal, .js .reveal.zoom { opacity: 1; transform: none; }
}
