/* Tidewall website. System fonts only: the site makes no third-party requests. */
:root {
  --ink: #0B1622; --ink-2: #13263A; --ink-3: #1F3A52;
  --paper: #F4F6F5; --surface: #FFFFFF; --line: #E3E7E4; --line-2: #CED6D2;
  --text: #0B1622; --text-2: #33424E; --muted: #5D6B76; --muted-dark: #A9C3C0;
  --tide: #0F7C78; --tide-hover: #0B6A66; --tide-soft: #E3F3F1; --tide-ink: #0B5E5B; --foam: #5ED6C6;
  --amber-soft: #FFF3DE; --amber-ink: #6B4100; --red-soft: #FDECEA; --red-ink: #8A1C14; --red: #B42318;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: var(--tide); }
a:hover { color: var(--tide-hover); }
:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 13px 20px; font: 600 16px var(--font); text-decoration: none; cursor: pointer; min-height: 48px; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--foam); color: var(--ink); }
.btn.primary:hover { background: #7FE2D5; color: var(--ink); }
.btn.tide { background: var(--tide); color: #fff; }
.btn.tide:hover { background: var(--tide-hover); color: #fff; }
.btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #3A5168; }
.btn.outline:hover { box-shadow: inset 0 0 0 1.5px var(--foam); color: #fff; }
.btn.light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; transform: none; }
.btn small { font-weight: 500; opacity: .8; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(11, 22, 34, .92); backdrop-filter: blur(10px); border-bottom: 1px solid #1A2C3D; }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted-dark); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }
.top .btn { min-height: 40px; padding: 9px 16px; font-size: 14.5px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--foam); }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 750; margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--foam); }
.hero .lead { margin-top: 20px; font-size: 19.5px; color: #C9D9D7; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14.5px; color: var(--muted-dark); }
.reassure span { display: inline-flex; align-items: center; gap: 7px; }
.reassure svg { flex: none; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 52px 64px; } }

/* product card (shared look with the extension) */
.card { background: #fff; color: var(--text); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.card header { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: #0F1D2C; color: #fff; }
.card header b { font-size: 16px; display: block; }
.card header small { color: var(--muted-dark); font-size: 13px; }
.card .loc { margin-left: auto; font-size: 12px; color: var(--muted-dark); white-space: nowrap; }
.card .rows { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.find { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; background: #F5F7F6; }
.chip { font: 12.5px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--amber-soft); color: var(--amber-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
.chip.bad { background: var(--red-soft); color: var(--red-ink); }
.find .w { display: flex; flex-direction: column; min-width: 0; }
.find b { font-size: 14px; font-weight: 600; }
.find small { font-size: 12px; color: var(--muted); }
.pill { margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--tide-soft); color: var(--tide-ink); }
.pill.bad { background: var(--red-soft); color: var(--red-ink); }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.card .sees { padding: 4px 18px 16px; }
.lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sees p { margin-top: 6px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.tok { font: 12.5px var(--mono); background: var(--tide-soft); color: var(--tide-ink); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.tok.bad { background: var(--red-soft); color: var(--red-ink); }
mark { background: var(--amber-soft); color: var(--amber-ink); border-radius: 4px; padding: 0 2px; }
.card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--line); background: #FBFCFB; }
.card footer .btn { min-height: 40px; padding: 9px 15px; font-size: 14px; }
.card footer .meta { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -60px -40px; background: radial-gradient(closest-side, rgba(94, 214, 198, .18), transparent); z-index: 0; }
.hero-visual .card { position: relative; z-index: 1; animation: rise .6s ease-out both; }
.hero-visual .composer { position: relative; z-index: 1; margin-top: 14px; background: #0F1D2C; border-radius: 14px; padding: 13px 16px; color: #C9D9D7; font-size: 14.5px; box-shadow: 0 0 0 1.5px var(--foam); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* works on */
.works { background: #0E1B29; color: var(--muted-dark); }
.works .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-block: 20px; font-size: 15px; }
.works b { color: #fff; font-weight: 600; margin-right: 4px; }

/* sections */
section.block { padding-block: 96px; }
section.block.alt { background: var(--surface); }
section.block.dark { background: var(--ink); color: #fff; }
.head { max-width: 760px; margin-bottom: 44px; }
.head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 750; }
.head p { margin-top: 14px; font-size: 19px; color: var(--muted); }
.dark .head p { color: var(--muted-dark); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border-radius: 18px; padding: 26px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.alt .tile { background: var(--paper); box-shadow: none; }
.tile h3 { font-size: 21px; font-weight: 700; }
.tile p { color: var(--text-2); font-size: 16px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tide-soft); color: var(--tide-ink); }
.ico.warn { background: var(--amber-soft); color: var(--amber-ink); }
.ico.bad { background: var(--red-soft); color: var(--red-ink); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: 18px; background: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.step::before { counter-increment: s; content: counter(s); font: 700 15px var(--mono); color: var(--ink); background: var(--foam); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted-dark); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel .row .btn { margin-left: auto; min-height: 36px; padding: 6px 12px; font-size: 14px; }
.panel textarea { width: 100%; min-height: 220px; resize: vertical; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; font: 15.5px/1.6 var(--font); color: var(--text); }
.panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.panel .empty { color: var(--muted); font-size: 15px; }
.panel .preview { font-size: 15.5px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.local { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tide-ink); background: var(--tide-soft); padding: 5px 10px; border-radius: 999px; }

/* privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .privacy { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 17px; }
.checks li svg { flex: none; margin-top: 3px; }
.dark .checks li { color: #DDEBE9; }

/* teams */
.code { background: #0F1D2C; color: #CFE7E3; border-radius: 16px; padding: 22px; font: 13.5px/1.7 var(--mono); overflow-x: auto; white-space: pre; }
.code .k { color: var(--foam); } .code .s { color: #FFD49A; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.plan.featured { box-shadow: 0 0 0 2px var(--tide), 0 20px 50px rgba(15, 124, 120, .12); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tide-ink); background: var(--tide-soft); padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.price { font-family: var(--display); font-size: 44px; font-weight: 750; letter-spacing: -.02em; }
.price small { font: 500 15px var(--font); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15.5px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--tide-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%230B5E5B' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { margin-top: auto; justify-content: center; }
.offer { margin-top: 22px; padding: 16px 20px; border-radius: 14px; background: var(--amber-soft); color: var(--amber-ink); font-size: 16px; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 17.5px; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--tide); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--text-2); }

/* final cta + footer */
.final { background: var(--ink); color: #fff; text-align: center; }
.final .wrap { padding-block: 88px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 750; }
.final p { color: var(--muted-dark); font-size: 19px; }
.foot { background: #08111A; color: var(--muted-dark); font-size: 14.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-block: 28px; }
.foot a { color: var(--muted-dark); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }

/* long-form pages */
.doc { background: var(--surface); }
.doc .wrap { max-width: 820px; padding-block: 64px 96px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 48px); font-weight: 750; }
.doc h2 { font-size: 24px; margin-top: 36px; margin-bottom: 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc .updated { color: var(--muted); margin-top: 10px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tablewrap { overflow-x: auto; }

/* anchors land below the sticky header */
section[id], div[id] { scroll-margin-top: 80px; }
