/* Lyonesse site: tokens, type, the lantern-window motif, header and footer. Shared by every page. */
@font-face { font-family: "Switzer"; src: url("assets/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("assets/fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("assets/fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #f5f8fa;
  --surface: #e6edf2;
  --surface-2: #cfdde8;
  --ink: #0f2c44;
  --muted: #3b5a72;
  --accent: #0f2c44;
  --accent-strong: #08192a;
  --accent-ink: #f5f8fa;
  --field: #0f2c44;
  --field-ink: #f5f8fa;
  --wave: #8fd6ea;
  --wave-strong: #6cc3db;
  --wave-ink: #0f2c44;
  --rec: #e5483d;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 3.75rem);
  --step-display: clamp(3rem, 0.9rem + 5.8vw, 5.5rem);

  --margin: clamp(16px, 2.8vw, 40px);
  --col-gap: 24px;
  --gap: 8px;
  --section: clamp(96px, 12vw, 200px);
  --arch: 999px 999px 0 0;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  /* names older inline styles on posts still use */
  --primary-blue: var(--ink); --text-dark: var(--ink); --text-gray: var(--ink); --border-light: var(--surface-2); --accent-blue: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--wave); outline-offset: 3px; }
.rec :focus-visible, .band :focus-visible, .cta :focus-visible, .qs details[open] :focus-visible { outline-color: var(--wave); }
.facts :focus-visible, .who :focus-visible, .compare :focus-visible, .pricing :focus-visible, .foot :focus-visible, .nav :focus-visible, .hero :focus-visible, .meet :focus-visible { outline-color: var(--ink); }
::selection { background: var(--wave); color: var(--ink); }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* The motif's button: the lantern window, round on top, square at the sill */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 14px 26px 12px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 26px 26px 0 0;
  font: inherit; font-size: var(--step-body); font-weight: 500; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.button:active { transform: scale(0.97); }
.button.small { min-height: 44px; padding: 10px 20px 9px; font-size: var(--step-small); border-radius: 22px 22px 0 0; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color 180ms ease; }
.u { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
  .u:hover { text-decoration-color: transparent; }
}

/* the bullet, the motif at text size */
.arch-list { list-style: none; margin: 0; padding: 0; }
.arch-list li { position: relative; padding-left: 1.6em; }
.arch-list li + li { margin-top: 14px; }
.arch-list li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 0.62em; height: 0.92em; border-radius: var(--arch); background: currentColor;
}

/* the mask for every photograph */
.arch { border-radius: var(--arch); overflow: hidden; background: var(--surface-2); }
.arch img, .arch video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- nav ---------- */
.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--margin) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--step-body); letter-spacing: -0.03em; text-decoration: none; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: var(--step-small); }
.nav li a:not(.button) { text-decoration: none; display: inline-block; padding: 12px 0; }


/* the plus that turns into a minus */
summary i { position: relative; width: 16px; height: 16px; flex: none; }
summary i::before, summary i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform 240ms var(--ease-out); }
summary i::after { transform: rotate(90deg); }
details[open] > summary i::after { transform: rotate(0deg); }


/* ---------- footer: the mark, built large ---------- */
.foot { background: var(--surface); padding-top: 80px; padding-bottom: 40px; }
.mark { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 48px); height: clamp(200px, 30vw, 330px); }
.mark svg { height: 100%; width: auto; flex: none; }
.mark .word { font-size: clamp(64px, 15.5vw, 236px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.74; white-space: nowrap; }
.foot .cols { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--col-gap); font-size: var(--step-small); }
.foot h2 { font-size: var(--step-small); letter-spacing: 0; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { text-decoration: none; display: inline-block; padding: 3px 0; }
.foot .credits { margin-top: 48px; font-size: var(--step-small); color: var(--muted); max-width: 72ch; }
.foot .credits a { color: inherit; }
.foot .last { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; font-size: var(--step-small); }


/* Japanese and Korean set without the tight Latin tracking */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { letter-spacing: -0.01em; line-height: 1.2; }
:lang(ja) body { letter-spacing: 0; line-break: strict; }
:lang(ko) body { letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 1080px) {
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  :root { --col-gap: 12px; }
  .nav ul li.opt { display: none; }
  .mark { height: 170px; }
  .mark .word { font-size: min(4.5rem, calc((100vw - 120px) / 4)); }
  .foot .cols .wide, .foot .cols .langs { grid-column: 1 / 3; }
}

/* ===================== subpages: blog, posts, legal ===================== */
.sub main, .sub .blog-article { display: block; }
.sub .container { padding-inline: var(--margin); }
.sub .fade-in { opacity: 1; transform: none; }
.read { width: min(100%, calc(46rem + 2 * var(--margin))); margin-inline: auto; }

/* buttons that the posts already use, in the motif */
.sub .button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px 12px; border-radius: 26px 26px 0 0; font-weight: 500; line-height: 1.1; text-decoration: none; transition: transform 140ms var(--ease-out), background-color 180ms ease; }
.sub .button:active { transform: scale(0.97); }
.sub .button { max-width: 100%; text-align: center; }
.sub .button-primary { background: var(--accent); color: var(--accent-ink); }
.sub .button-secondary { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sub .button-primary:hover { background: var(--accent-strong); } .sub .button-secondary:hover { background: #b5c9d8; } }

/* ---------- blog index ---------- */
.blog-header { padding: clamp(72px, 10vw, 140px) 0 0; }
.blog-header .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.blog-header h1 { grid-column: 1 / 8; font-size: var(--step-display); }
.blog-header p { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; max-width: 26ch; }
.blog-section { padding: clamp(64px, 8vw, 120px) 0 var(--section); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px var(--col-gap); }
.blog-card { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; position: relative; }
.blog-card::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 12px; border-radius: 9px 9px 0 0; background: var(--ink); }
.blog-card h2, .blog-card h3 { order: -1; margin-top: 10px; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.15; }
.blog-card p { color: var(--ink); }
.blog-category, .blog-meta { font-size: var(--step-small); color: var(--muted); }
.blog-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.blog-card .read-more { margin-top: 6px !important; font-weight: 600; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) { .blog-card:hover h2, .blog-card:hover h3 { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.15em; } }

/* ---------- a post ---------- */
.article-header { padding: clamp(64px, 9vw, 128px) 0 0; }
.article-header .container { display: flex; flex-direction: column; width: min(100%, calc(46rem + 2 * var(--margin))); margin-inline: auto; }
.article-header h1 { order: -1; font-size: var(--step-head); }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 22px; font-size: var(--step-small); color: var(--muted); }
.article-category { font-weight: 600; color: var(--ink); }
.article-subtitle { margin-top: 22px; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; max-width: 40ch; }
.article-hero-image { margin-top: 48px; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 50% 50% 0 0 / 70% 70% 0 0; background: var(--surface-2); }
.blog-article > .container { width: min(100%, calc(46rem + 2 * var(--margin))); margin-inline: auto; padding-bottom: var(--section); }
.article-content { padding-top: 56px; }
.article-content > * + * { margin-top: 20px; }
.article-content h2 { margin-top: 64px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem); letter-spacing: -0.035em; line-height: 1.08; }
.article-content h3 { margin-top: 40px; font-size: var(--step-lead); letter-spacing: -0.025em; line-height: 1.15; }
.article-content h2 + *, .article-content h3 + * { margin-top: 16px; }
.article-content p, .article-content li { max-width: 68ch; }
.article-content ul, .article-content ol { padding-left: 1.3em; }
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul > li { position: relative; padding-left: 1.6em; }
.article-content ul > li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 0.62em; height: 0.92em; border-radius: var(--arch); background: currentColor; }
.article-content li + li { margin-top: 10px; }
.article-content a:not(.button) { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
.article-content strong { font-weight: 600; }
.article-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface); padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.article-content pre { background: var(--surface); padding: 20px; overflow-x: auto; }
.article-content img, .article-image { display: block; width: 100%; height: auto; margin-block: 36px; }
.quick-answer { background: var(--wave); color: var(--wave-ink); padding: 26px 28px; font-size: var(--step-body); }
.article-content .quick-answer { max-width: none; }
.article-tip, .verdict-box, .highlight-box { background: var(--surface); padding: 26px 28px; }
.article-tip > * + *, .verdict-box > * + *, .highlight-box > * + * { margin-top: 12px; }
.verdict-box h3, .article-tip h3 { margin-top: 0; }
.verdict-box .button { margin-top: 18px; }
.article-quote, .article-content blockquote { margin: 40px 0; padding-left: 28px; position: relative; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.article-quote::before, .article-content blockquote::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 12px; height: 18px; border-radius: 6px 6px 0 0; background: var(--ink); }
.comparison-table-wrapper { margin-block: 32px; overflow-x: auto; }
.article-content table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--step-small); }
.article-content th, .article-content td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--surface-2); }
.article-content th { font-weight: 600; }
.article-content th:first-child, .article-content td:first-child { padding-left: 0; }
.article-content .highlight-col { background: var(--field); color: var(--field-ink); border-bottom-color: #23465f; padding-left: 12px; }
.article-content thead .highlight-col { border-radius: 16px 16px 0 0; }
.simple-table td:first-child { font-weight: 600; width: 34%; }
.check { color: inherit; font-weight: 600; }
.cross { color: var(--muted); }
.highlight-col .check { color: var(--wave); }
.table-note { font-size: var(--step-small); color: var(--muted); }
.article-content .bench-chart { margin: 28px 0 36px; }
.article-content .bench-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: var(--step-small); }
.article-content .bench-label { flex: 0 0 200px; text-align: right; }
.article-content .bench-track { flex: 1; background: var(--surface); overflow: hidden; }
.article-content .bench-bar { display: block; height: 22px; background: var(--surface-2); min-width: 2px; border-radius: 0; }
.article-content .bench-bar.win { background: var(--ink); }
.article-content .bench-val { flex: 0 0 84px; font-variant-numeric: tabular-nums; }
.article-workflow { margin-block: 36px; }
.workflow-step { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; }
.step-number { flex: none; display: grid; place-items: center; width: 40px; height: 44px; border-radius: 20px 20px 0 0; background: var(--ink); color: var(--field-ink); font-weight: 600; }
.article-cta, .cta-inline { background: var(--field); color: var(--field-ink); padding: 36px 32px; margin-block: 48px; }
.article-cta h3 { margin: 0 0 12px; font-size: var(--step-lead); }
.article-cta p { margin-bottom: 22px; }
.article-cta .button-primary, .cta-inline .button-primary { background: var(--bg); color: var(--ink); }
.cta-subtext, .article-credit { font-size: var(--step-small); color: var(--muted); }
.article-cta .cta-subtext { color: var(--field-ink); }
.article-footer { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--step-small); color: var(--muted); }
.related-articles { background: var(--surface); padding: var(--section) 0; }
.related-articles h2 { font-size: var(--step-head); margin-bottom: 56px; }
.related-articles .blog-card::before { background: var(--ink); }
.cta-section { background: var(--field); color: var(--field-ink); padding: var(--section) 0; }
.cta-content { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.cta-section h2 { grid-column: 1 / 8; font-size: var(--step-display); }
.cta-section p { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.35; max-width: 22ch; }
.cta-buttons { grid-column: 8 / 13; margin-top: 28px; }
.cta-buttons .button svg { width: 20px; height: 20px; margin-right: 8px; }
.cta-section .button-primary { background: var(--bg); color: var(--ink); }
.new { font-weight: 600; }

/* ---------- legal ---------- */
.legal-page { padding: clamp(56px, 8vw, 112px) 0 var(--section); }
.legal-page .container { width: min(100%, calc(46rem + 2 * var(--margin))); margin-inline: auto; }
.legal-content { display: flex; flex-direction: column; }
.legal-content > * { align-self: stretch; }
.back-link { order: 99; align-self: flex-start !important; margin-top: 56px; align-items: center; gap: 6px; min-height: 44px; font-size: var(--step-small); text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }
.legal-page h1 { margin-top: 0; font-size: var(--step-head); }
.legal-updated { margin-top: 18px; color: var(--muted); font-size: var(--step-small); }
.legal-page .highlight-box { margin-top: 32px; }
.legal-content > * + * { margin-top: 18px; }
.legal-content > .back-link + h1 { margin-top: 0; }
.legal-content h2 { margin-top: 56px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.legal-content h3 { margin-top: 32px; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.legal-content ul { padding-left: 1.3em; }
.legal-content li + li { margin-top: 8px; }
.legal-content a { text-decoration: underline; text-underline-offset: 0.18em; }
.legal-content strong { font-weight: 600; }

/* ---------- subpage footer extras ---------- */
.foot .about p { max-width: 30ch; }
@media (min-width: 1081px) { .foot .cols > div:last-child:not(:first-child) { text-align: right; } }
.foot .last .button { margin-left: auto; }

@media (max-width: 1080px) {
  .cta-section h2, .cta-section p, .cta-buttons { grid-column: 1 / 13; }
  .cta-section p { margin-top: 20px; }
  .blog-header h1, .blog-header p { grid-column: 1 / 13; }
  .blog-header p { margin-top: 24px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .blog-header h1 { font-size: min(3rem, calc((100vw - 32px) / 7.6)); }
  .article-hero-image { margin-top: 36px; border-radius: 50% 50% 0 0 / 60% 60% 0 0; }
  .article-content .bench-row .bench-label { flex-basis: 110px; font-size: inherit; }
  .quick-answer, .article-tip, .verdict-box, .highlight-box { padding: 20px; }
  .article-cta, .cta-inline { padding: 28px 22px; }
}
