/* DataBates. databates.us. Tokens, components and page styles in one file. */

@font-face { font-family: "Tinos"; src: url("../fonts/Tinos-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("../fonts/Tinos-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #faf8f3; --paper-raised: #ffffff; --paper-sunk: #f0ece3;
  --rule: #ddd6c8; --rule-strong: #8a8172;
  --ink: #1b1622; --ink-muted: #5c5566;
  --royal: #4a2482; --royal-deep: #24103f; --royal-press: #3a1a69; --royal-tint: #ede8f5;
  --on-royal: #ffffff; --on-royal-muted: #cbbfe0; --gilt: #b8975a;
  --danger: #9b1c1c; --danger-tint: #fbecea;
  --shadow-frame: 0 24px 60px rgba(27, 22, 34, 0.14);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px; --s32: 128px;
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 12px;
  --page-max: 1120px; --measure: 640px;
  --serif: "Times New Roman", Times, Tinos, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--royal); }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display, .title, .heading, .subheading, .lead, .quote { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); }
.display { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: pretty; }
.title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.heading { font-size: clamp(26px, 3vw, 32px); line-height: 1.19; letter-spacing: -0.01em; text-wrap: balance; }
.subheading { font-size: 24px; line-height: 30px; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink-muted); }
.quote { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-style: italic; letter-spacing: -0.01em; text-wrap: balance; }
.eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); }
.body { margin: 0; font-size: 17px; line-height: 28px; }
.small { margin: 0; font-size: 15px; line-height: 24px; }
.caption { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
p { margin: 0; }
p + p { margin-top: var(--s4); }

/* Layout */
.wrap { max-width: var(--page-max); margin: 0 auto; padding-left: var(--s8); padding-right: var(--s8); }
.section { padding: var(--s24) 0; }
.section--sunk { background: var(--paper-sunk); }
.section-head { max-width: var(--measure); }
.section-head .eyebrow { margin-bottom: var(--s4); }
.section-head .lead { margin-top: var(--s4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s12); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s12); }
@media (max-width: 760px) {
  .wrap { padding-left: var(--s6); padding-right: var(--s6); }
  .section { padding: var(--s16) 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: var(--s8); }
}

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s6); font-family: var(--sans); font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; border: 1px solid transparent; border-radius: var(--radius-sm); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn--primary { background: var(--royal); color: var(--on-royal); }
.btn--primary:hover, .btn--primary:active { background: var(--royal-press); }
.btn--secondary { background: transparent; color: var(--royal); border-color: var(--royal); }
.btn--secondary:hover { background: var(--royal-tint); }
.btn--on-royal { background: var(--on-royal); color: var(--royal-deep); }
.btn--on-royal:hover { background: var(--royal-tint); }
.btn--small { min-height: 40px; padding: 0 var(--s4); }
.btn[disabled] { background: var(--paper-sunk); color: var(--ink-muted); border-color: var(--rule); cursor: not-allowed; }
.link { font-family: var(--sans); font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; color: var(--royal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 2px; }
.link--arrow::after { content: "\2192"; display: inline-block; margin-left: var(--s2); }
.band .link, .footer a { color: var(--on-royal); }
.band .btn:focus-visible, .band .link:focus-visible, .footer a:focus-visible { outline-color: var(--on-royal); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s6) var(--s8); margin-top: var(--s12); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, 0.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s8); padding-top: var(--s4); padding-bottom: var(--s4); }
.wordmark-img { display: block; height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s8); margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 15px; line-height: 24px; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--royal); }
.header__actions { display: flex; align-items: center; gap: var(--s4); }
.menu-btn { display: none; }
.drawer { display: none; }
@media (max-width: 860px) {
  .header .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .drawer { display: none; border-bottom: 1px solid var(--rule); background: var(--paper); }
  .drawer[data-open="true"] { display: block; }
  .drawer ul { list-style: none; margin: 0; padding: var(--s2) 0 var(--s4); }
  .drawer a { display: block; padding: var(--s3) 0; font-family: var(--serif); font-size: 22px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
  .drawer li:last-child a { border-bottom: 0; }
}
@media (max-width: 520px) { .header__actions .btn--primary { display: none; } }

/* Hero */
.hero { padding-top: var(--s32); padding-bottom: var(--s16); }
.hero .display { max-width: 760px; margin-top: var(--s6); }
.hero .lead { max-width: var(--measure); margin-top: var(--s6); }
@media (max-width: 760px) { .hero { padding-top: var(--s16); padding-bottom: var(--s12); } }

/* Product frame */
.demo { padding-bottom: var(--s24); }
.frame { overflow: hidden; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-frame); }
.frame__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s6); border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.frame__bar b { font-weight: 500; color: var(--ink); }
.frame__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.frame__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.frame__stat { padding: var(--s4) var(--s6); border-right: 1px solid var(--rule); }
.frame__stat:last-child { border-right: 0; }
.frame__stat .n { font-family: var(--serif); font-size: 30px; line-height: 34px; color: var(--ink); }
.frame__stat .l { font-size: 12px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 640px) { .frame__stats { grid-template-columns: repeat(2, 1fr); } .frame__stat:nth-child(2) { border-right: 0; } .frame__stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
.tbl { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.tbl th { padding: var(--s3) var(--s6); text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); background: var(--paper-sunk); white-space: nowrap; }
.tbl td { padding: var(--s3) var(--s6); border-top: 1px solid var(--rule); white-space: nowrap; }
.chip { display: inline-block; padding: 2px var(--s3); border-radius: var(--radius-sm); font-size: 13px; line-height: 18px; font-weight: 500; background: var(--paper-sunk); color: var(--ink); white-space: nowrap; }
.chip--royal { background: var(--royal-tint); color: var(--royal); }
.chip--solid { background: var(--royal); color: var(--on-royal); }
.demo .caption { margin-top: var(--s6); text-align: center; }
@media (max-width: 760px) { .demo { padding-bottom: var(--s16); } }

/* Pillars and numbered blocks */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s12); margin: var(--s12) 0 0; padding: 0; list-style: none; }
.pillars--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s16); }
.pillar { border-top: 1px solid var(--ink); padding-top: var(--s6); }
.pillar__num { font-family: var(--serif); font-size: 20px; line-height: 24px; color: var(--royal); }
.pillar__title { margin: var(--s4) 0 var(--s2); font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 30px; color: var(--ink); }
.pillar__text { margin: 0; font-size: 17px; line-height: 28px; color: var(--ink-muted); max-width: 440px; }
.pillar__start { margin-top: var(--s4); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pillar__start a { color: var(--royal); }
@media (max-width: 760px) { .pillars, .pillars--2 { grid-template-columns: 1fr; gap: var(--s8); } }

/* Product rows */
.group { margin-top: var(--s16); }
.group:first-of-type { margin-top: var(--s12); }
.group__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s2) var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--ink); }
.group__head .small { color: var(--ink-muted); }
.rows { margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s4) var(--s8); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.row__name { font-family: var(--serif); font-size: 21px; line-height: 28px; color: var(--ink); }
.row__name small { font-family: var(--sans); font-size: 13px; color: var(--ink-muted); margin-left: var(--s2); }
.row__text { margin: 0; color: var(--ink-muted); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: var(--s1); } }

/* Memberships */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin-top: var(--s12); }
.tier { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: var(--s8) var(--s6); }
.tier__name { font-family: var(--serif); font-size: 28px; line-height: 32px; margin: 0 0 var(--s2); }
.tier__cover { margin: var(--s2) 0 0; color: var(--ink-muted); }
.tier__meta { margin: var(--s6) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 24px; }
.tier__meta b { font-weight: 500; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

/* Band */
.band { background: var(--royal-deep); color: var(--on-royal); padding: var(--s24) 0; }
.band__rule { width: var(--s12); height: 1px; margin: 0 0 var(--s6); border: 0; background: var(--gilt); }
.band .eyebrow { color: var(--gilt); }
.band .quote, .band .title, .band .heading { color: var(--on-royal); }
.band__text { margin: 0; font-size: 17px; line-height: 28px; color: var(--on-royal-muted); max-width: var(--measure); }
.band .stack { display: grid; gap: var(--s6); max-width: 760px; }
@media (max-width: 760px) { .band { padding: var(--s16) 0; } }

/* FAQ */
.faq { margin: var(--s12) 0 0; padding: 0; list-style: none; max-width: 820px; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__q { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s6); width: 100%; margin: 0; padding: var(--s6) 0; background: none; border: 0; text-align: left; font-family: var(--serif); font-size: 22px; line-height: 28px; color: var(--ink); cursor: pointer; }
.faq__q::after { content: "+"; font-family: var(--sans); font-size: 22px; color: var(--royal); flex: none; }
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__a { padding: 0 0 var(--s6); color: var(--ink-muted); max-width: 720px; }
.faq summary { list-style: none; }
.faq summary::-webkit-details-marker { display: none; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s16); align-items: start; }
.founder img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.founder__name { margin: var(--s6) 0 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 32px; }
.founder__body { margin-top: var(--s6); }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; gap: var(--s8); } .founder img { max-width: 420px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s12); align-items: start; }
.contact dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s8); }
.contact dt { font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--s1); }
.contact dd { margin: 0; font-size: 17px; line-height: 28px; }
.contact dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.contact dd a:hover { color: var(--royal); border-color: var(--royal); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact dl { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--royal-deep); color: var(--on-royal-muted); padding: var(--s12) 0 var(--s8); font-size: 13px; line-height: 18px; }
.footer__rule { height: 3px; margin: 0 0 var(--s8); border: 0; border-top: 1px solid var(--gilt); border-bottom: 1px solid var(--gilt); background: transparent; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s8); align-items: flex-start; }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 24px; color: var(--on-royal-muted); margin-top: var(--s3); }
.footer__cols { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); margin: 0; padding: 0; list-style: none; }
.footer a { color: var(--on-royal); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid rgba(203, 191, 224, 0.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s8); }
.footer__bottom p { margin: 0; }

/* Inner pages */
.page { padding: var(--s16) 0 var(--s24); }
.page .section-head { margin-bottom: var(--s12); }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 30px; margin: var(--s12) 0 var(--s3); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 var(--s4); color: var(--ink); }
.prose ul { margin: 0 0 var(--s4); padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); }
.prose .muted { color: var(--ink-muted); }
.blocks { margin: 0; padding: 0; list-style: none; max-width: 820px; }
.block { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s4); padding: var(--s8) 0; border-top: 1px solid var(--rule); }
.block__num { font-family: var(--serif); font-size: 22px; line-height: 30px; color: var(--royal); }
.block__title { margin: 0 0 var(--s2); font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 30px; }
.block ul { margin: 0; padding-left: 1.2em; color: var(--ink-muted); }
.block p { color: var(--ink-muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; gap: 0; } }
.notice { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--rule); font-size: 13px; line-height: 18px; color: var(--ink-muted); max-width: 720px; }

/* Form */
.form { max-width: 720px; display: grid; gap: var(--s8); }
.field { display: grid; gap: var(--s2); }
.field__label { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; }
.field__opt { font-weight: 400; color: var(--ink-muted); }
.field__hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.input { width: 100%; height: 48px; padding: 0 var(--s4); font-family: var(--sans); font-size: 17px; line-height: 28px; color: var(--ink); background: var(--paper-raised); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); appearance: none; -webkit-appearance: none; }
textarea.input { height: auto; min-height: 140px; padding: var(--s3) var(--s4); resize: vertical; }
select.input { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235c5566' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right var(--s4) center; padding-right: var(--s8); }
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: 2px solid var(--royal); outline-offset: 1px; border-color: var(--royal); }
.field--error .input { border-color: var(--danger); }
.field__error { font-size: 13px; line-height: 18px; color: var(--danger); }
.checks { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.check { display: flex; align-items: flex-start; gap: var(--s3); font-size: 17px; line-height: 28px; }
.check input { width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--royal); flex: none; }
.check small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.message { padding: var(--s4) var(--s6); border-radius: var(--radius-md); font-size: 15px; line-height: 24px; }
.message--confirm { background: var(--royal-tint); color: var(--ink); }
.message--error { background: var(--danger-tint); color: var(--danger); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.done { max-width: 640px; }
.done .title { margin-top: var(--s4); }
.done .lead { margin-top: var(--s6); }
