/* loyalistic.com 2026 design system (phase B, approved mockup 2026-11-09).
   One type family (Libre Franklin, self-hosted), turquoise surfaces + pink action.
   No Bootstrap. Studio pages (fi/studio/) still use the old styles.css until they move to vetoa.studio. */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/libre-franklin-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-franklin-latin-italic-400.woff") format("woff");
}

:root {
  --turq: #00c1e1;        /* brand surface (hero, nav, accents) */
  --turq-deep: #0089a3;   /* text-safe turquoise: links, eyebrows, outline buttons */
  --turq-tint: #e8f9fc;   /* soft surface */
  --pink: #ed0097;        /* brand pink (accents) */
  --pink-btn: #d1008a;    /* primary action fill: white text 5.2:1 */
  --pink-deep: #b8007a;
  --ink: #17252b;         /* headings */
  --text: #3b4a51;        /* body */
  --muted: #6b7a80;
  --line: #dde6e9;
  --gray: #f4f7f8;        /* alternating section */
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --r: 8px;
  --wrap: 72rem;
  --nav-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: #fff; font-family: var(--font); color: var(--text); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turq-deep); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -0.015em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 1.5rem + 3vw, 3.6rem); line-height: 1.07; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.12; font-weight: 750; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: .5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turq-deep); margin-bottom: .75rem; display: block; }
section { padding: 5.5rem 0; }
@media (max-width: 720px) { section { padding: 3.75rem 0; } }
.gray { background: var(--gray); }
.lead { font-size: 1.2rem; max-width: 40rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ===== Buttons: one system everywhere ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 .85rem/1.1 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; text-align: center; padding: .95rem 1.4rem; border-radius: var(--r); border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--pink-btn); color: #fff; }
.btn-primary:hover { background: var(--pink-deep); color: #fff; }
.btn-outline { border-color: var(--turq-deep); color: var(--turq-deep); background: #fff; }
.btn-outline:hover { background: var(--turq-tint); color: var(--turq-deep); }
.btn-ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-sm { padding: .6rem 1rem; font-size: .75rem; }
.btn-block { width: 100%; }

/* ===== Nav ===== */
#site-header { position: sticky; top: 0; z-index: 20; min-height: var(--nav-h); background: linear-gradient(#00acd7, #00c1e1); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nav .bar { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.nav .brand img { height: 28px; width: auto; }
.nav .links { display: flex; gap: 1.4rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav .links a { color: #fff; text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.nav .links a:hover, .nav .links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .actions { display: flex; gap: .6rem; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 2px solid rgba(255,255,255,.75); border-radius: var(--r); width: 42px; height: 38px; padding: 0; cursor: pointer; color: #fff; }
.nav-toggle svg { width: 22px; height: 22px; display: block; margin: auto; }
.nav .menu { display: none; }
@media (max-width: 900px) {
  .nav .links, .nav .actions .login { display: none; }
  .nav .actions { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 0; }
  .nav.open .menu { display: block; border-top: 1px solid rgba(255,255,255,.35); padding-top: .5rem; padding-bottom: 1rem; }
  .nav .menu a { display: block; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; padding: .7rem 0; }
}
@media (max-width: 400px) { .nav .bar { gap: .75rem; } .nav .actions .btn { padding: .55rem .7rem; } }

/* ===== Hero ===== */
.hero { background: url("../img/honeycomb_dark.png") no-repeat bottom center, linear-gradient(#55e0fb, #00c1e1); color: #fff; padding: 4.5rem 0 5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #f2fdff; margin: 1.25rem 0 2rem; }
.hero .ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .note { margin-top: 1rem; font-size: .9rem; color: #e3fbff; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 3rem 0 3.5rem; } }

/* Page head for subpages */
.page-head { background: var(--turq-tint); padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 1rem; }

/* ===== Customer logos ===== */
.logos { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.logos .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3rem; }
.logos .label { font-size: .8rem; color: var(--muted); width: 100%; text-align: center; }
.logos img { width: auto; filter: grayscale(1); opacity: .65; mix-blend-mode: multiply; }
@media (max-width: 560px) { .logos .wrap { gap: 1.25rem 2rem; } }

/* ===== Split (why now, story) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.split p + p { margin-top: 1rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }
.funnel { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.funnel li { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; font-weight: 600; color: var(--ink); }
.funnel li b { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--turq-tint); color: var(--turq-deep); display: grid; place-items: center; font-size: .9rem; }
.funnel li:last-child { border-color: var(--pink); }
.funnel li:last-child b { background: var(--pink); color: #fff; }

/* ===== Cards ===== */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; }
.card p { margin-top: .6rem; font-size: 1rem; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--turq-tint); color: var(--turq-deep); display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 22px; height: 22px; }
.card ul { margin: .9rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.card li { padding: .35rem 0 .35rem 1.4rem; position: relative; border-top: 1px solid var(--line); }
.card li::before { content: ""; position: absolute; left: .1rem; top: .85rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--turq); }
.step { font-size: .8rem; font-weight: 800; color: var(--turq-deep); letter-spacing: .1em; text-transform: uppercase; }
.card .step + h3 { margin-top: .4rem; }
.more { margin-top: 2.5rem; }

/* ===== Pricing ===== */
.pricebox { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .pricebox { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .55rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--turq-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230089a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; box-shadow: 0 10px 30px rgba(23,37,43,.08); }
.calc label.range { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.calc input[type=range] { width: 100%; accent-color: var(--turq-deep); margin: .6rem 0 0; }
.calc .row { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin: 1.1rem 0; }
.seg { display: inline-flex; border: 2px solid var(--turq-deep); border-radius: var(--r); overflow: hidden; }
.seg button { font: 700 .75rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: .6rem .9rem; border: 0; background: #fff; color: var(--turq-deep); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--turq-deep); color: #fff; }
.calc .amount { text-align: center; font-weight: 800; color: var(--ink); font-size: 3.2rem; line-height: 1; letter-spacing: -.02em; }
.calc .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.calc .sub { text-align: center; color: var(--muted); font-size: .9rem; margin: .4rem 0 1.25rem; }
.calc .wait { text-align: center; color: var(--muted); padding: 2rem 0; }
.calc .services { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; font-size: .95rem; }
.calc .services label { display: flex; gap: .5rem; align-items: baseline; padding: .2rem 0; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem; position: relative; }
.plan.featured { border: 2px solid var(--turq-deep); box-shadow: 0 10px 30px rgba(23,37,43,.08); }
.plan .badge { position: absolute; top: -.8rem; right: 1.25rem; background: var(--turq-deep); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 99px; }
.plan h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--turq-deep); }
.plan .price { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .limit { font-weight: 700; color: var(--ink); margin-top: .5rem; }
.plan .checks { margin: .5rem 0 1.25rem; }
.plan .btn { margin-top: auto; }
.tip { margin-top: 2rem; background: var(--turq-tint); border-radius: 12px; padding: 1.25rem 1.5rem; }
.notes { margin-top: 2rem; display: grid; gap: .75rem; font-size: .95rem; max-width: 48rem; }

/* ===== Final CTA ===== */
.final { background: linear-gradient(#00acd7, #00c1e1); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #f2fdff; margin: 1rem auto 2rem; max-width: 34rem; }

/* ===== Footer ===== */
#site-footer { background: var(--ink); color: #aebcc1; font-size: .9rem; padding: 3.5rem 0 2rem; }
#site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { #site-footer .cols { grid-template-columns: 1fr 1fr; } }
#site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .8rem; }
#site-footer a { color: #d6e2e6; text-decoration: none; display: block; padding: .2rem 0; }
#site-footer a:hover { color: #fff; text-decoration: underline; }
#site-footer address { font-style: normal; line-height: 1.7; }
#site-footer .legal { border-top: 1px solid #2c3d44; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; }
#site-footer .legal a { display: inline; }

/* ===== Feature table page ===== */
.jump { display: flex; gap: .5rem; flex-wrap: wrap; position: sticky; top: var(--nav-h); background: #fff; padding: .75rem 0; z-index: 5; border-bottom: 1px solid var(--line); }
.jump a { font-size: .85rem; font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: .35rem .9rem; color: var(--ink); background: #fff; }
.jump a:hover { border-color: var(--turq-deep); color: var(--turq-deep); }
.ftable { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .98rem; }
.ftable caption { text-align: left; font-weight: 750; font-size: 1.35rem; color: var(--ink); padding: 2.5rem 0 .25rem; }
.ftable caption small { display: block; font-weight: 400; font-size: .95rem; color: var(--muted); margin-top: .2rem; }
.ftable th, .ftable td { text-align: left; vertical-align: top; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); }
.ftable th { color: var(--ink); font-weight: 650; }
.ftable tbody th, .ftable thead th:first-child { width: 32%; }
.ftable thead th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--ink); }
@media (max-width: 640px) {
  .ftable thead { display: none; }
  .ftable th, .ftable td { display: block; width: auto !important; padding: .2rem 0; border: 0; }
  .ftable tr { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
}

/* ===== Prose pages (about, GDPR, return pages) ===== */
.prose { max-width: 46rem; }
.prose p, .prose ul, .prose table, .prose .table-scroll { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.prose blockquote { margin: 0; font-size: 1.25rem; color: var(--ink); font-style: italic; }
.prose cite { display: block; margin-top: .5rem; font-style: normal; font-size: .95rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: .65rem .9rem .65rem 0; border-bottom: 1px solid var(--line); }
.data thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.data .ok { color: #1f7a3a; font-weight: 600; }
.bio { display: flex; gap: 1.5rem; align-items: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bio img { width: 120px; border-radius: 50%; }
.bio b { color: var(--ink); display: block; }
