/* Leashnote site. "Clear Sky" palette from brand/palette.md. */
:root {
  --harbor: #1D3B57;
  --tide: #3B7FC4;
  --lagoon: #5A9BD8;
  --seafoam: #BFE0F7;
  --mist: #F0F7FD;
  --card: #FFFFFF;
  --fog: #DCEBF7;
  --slate: #5A7389;
  --ember: #D9735B;
  --honey: #C48F2C;
  --leaf: #4F9A6A;
  --on-tide: #FFFFFF;
  --shadow: 0 1px 2px rgba(29, 59, 87, .06), 0 8px 24px rgba(29, 59, 87, .08);
  --radius: 20px;
  --tile: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --harbor: #E6F1FA;
    --tide: #8CC4F2;
    --lagoon: #6AA8E0;
    --seafoam: #A8D8F5;
    --mist: #0F1E2E;
    --card: #172B40;
    --fog: #26425E;
    --slate: #95AEC4;
    --ember: #E88C74;
    --honey: #E6B566;
    --leaf: #7CC497;
    --on-tide: #0F1E2E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--harbor);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, .brand {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 16px; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
h4 { font-size: 17px; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--tide); text-underline-offset: 3px; }
strong { font-weight: 650; }
kbd { font: inherit; font-weight: 600; }
.muted { color: var(--slate); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
[id] { scroll-margin-top: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--tide); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; color: var(--harbor); text-decoration: none; }
.brand img { width: 30px; height: 35px; }
.nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--slate); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--tide); }
.nav .button { padding: 8px 14px; border-radius: 10px; color: var(--on-tide); font-size: 14px; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--fog); color: var(--tide); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.eyebrow svg { width: 16px; height: 16px; }
.lead { font-size: 20px; color: var(--slate); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; background: var(--tide); color: var(--on-tide); font-weight: 600; text-decoration: none; }
.button.soft { background: var(--fog); color: var(--tide); }
.button svg { width: 20px; height: 20px; }
.fine { font-size: 14px; color: var(--slate); margin-top: 14px; }

/* Phone mockup */
.phone {
  justify-self: center;
  width: 300px; max-width: 100%;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #8CC4F2, #5A9BD8 55%, #3B7FC4);
  box-shadow: var(--shadow);
}
.screen { border-radius: 34px; background: var(--mist); padding: 22px 14px 18px; min-height: 560px; }
.screen .title { font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-weight: 700; font-size: 24px; margin: 6px 4px 2px; }
.screen .sub { font-size: 13px; color: var(--slate); margin: 0 4px 14px; }
.never { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--ember) 14%, var(--card)); color: var(--harbor); border-radius: 14px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.never b { color: var(--ember); }
.task { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; box-shadow: 0 1px 2px rgba(29, 59, 87, .05); }
.task .time { margin-left: auto; color: var(--slate); font-size: 12px; font-variant-numeric: tabular-nums; }
.task.done span:not(.time):not(.tile) { color: var(--slate); text-decoration: line-through; }
.task .next { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--on-tide); background: var(--tide); padding: 2px 8px; border-radius: 999px; }
.check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--fog); flex: none; }
.done .check { background: var(--lagoon); border-color: var(--lagoon); }
.phone .button { width: 100%; justify-content: center; margin-top: 10px; font-size: 15px; }

/* Icon tiles */
.tile { width: 44px; height: 44px; border-radius: var(--tile); background: var(--fog); color: var(--lagoon); display: grid; place-items: center; flex: none; }
.tile svg { width: 24px; height: 24px; }
.tile.small { width: 30px; height: 30px; border-radius: 9px; }
.tile.small svg { width: 18px; height: 18px; }
.tile.ember { color: var(--ember); background: color-mix(in srgb, var(--ember) 16%, var(--card)); }
.tile.honey { color: var(--honey); background: color-mix(in srgb, var(--honey) 16%, var(--card)); }

/* Sections */
.also { margin-top: 28px; columns: 2; column-gap: 32px; max-width: 900px; }
.also li { break-inside: avoid; }
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .tile { margin-bottom: 14px; }
.card p { color: var(--slate); margin: 0; font-size: 16px; }
.card p + p { margin-top: 10px; }
.card.note { background: color-mix(in srgb, var(--honey) 10%, var(--card)); }
.card.note p, .card.alert p { color: var(--harbor); }
.card.alert { background: color-mix(in srgb, var(--ember) 10%, var(--card)); }
.card.soft { background: var(--fog); box-shadow: none; }
.card.soft p { color: var(--harbor); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tide); color: var(--on-tide); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--slate); margin: 0; font-size: 16px; }
.band { background: var(--card); }
.band .card { box-shadow: none; background: var(--mist); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.plain-list li .tile { margin-top: 1px; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.price .card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price .amount { font-size: 28px; color: var(--tide); white-space: nowrap; }
.price ul { margin: 12px 0 0; padding-left: 20px; color: var(--slate); font-size: 16px; }
.price li { margin: 4px 0; }
.link-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.link-cards a { text-decoration: none; color: inherit; display: block; }
.link-cards .card { height: 100%; transition: transform .15s ease; }
.link-cards a:hover .card { transform: translateY(-2px); }
.link-cards h3 { color: var(--tide); }

/* Document pages (guide, support, privacy, terms) */
.page { padding: 16px 0 80px; }
.page-head { padding: 24px 0 8px; max-width: 760px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.page-head .lead { font-size: 19px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 48px; align-items: start; }
.toc { position: sticky; top: 20px; font-size: 14px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--fog); }
.toc li a { display: block; padding: 5px 0 5px 12px; color: var(--slate); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--tide); border-left-color: var(--tide); }
.doc-body h2 { font-size: clamp(24px, 3.5vw, 30px); margin: 48px 0 14px; padding-top: 8px; }
.doc-body h2:first-child { margin-top: 8px; }
.doc-body h3 { font-size: 20px; margin: 30px 0 8px; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 14px; }
.doc-body li { margin: 6px 0; }
.doc-body li p { margin-bottom: 6px; }
.doc-body .card { margin: 20px 0; }
.doc-body img { max-width: 100%; border-radius: 14px; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 16px 0 22px; font-size: 16px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--fog); vertical-align: top; }
.doc-body th { font-weight: 650; color: var(--slate); font-size: 14px; }
.doc-body td:first-child { font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--fog); color: var(--tide); vertical-align: middle; margin-left: 6px; }
.tag.free { background: color-mix(in srgb, var(--leaf) 16%, var(--card)); color: var(--leaf); }
.yes { color: var(--leaf); font-weight: 700; }
.no { color: var(--slate); }
details { background: var(--card); border-radius: 16px; padding: 16px 20px; margin: 10px 0; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p:last-child { margin-bottom: 0; }
.contact { display: flex; gap: 16px; align-items: center; }
.contact img { border-radius: 13px; }
.dateline { color: var(--slate); font-size: 15px; margin: 0 0 20px; }
.summary-box { background: var(--card); border-left: 4px solid var(--tide); border-radius: 12px; padding: 16px 20px; margin: 20px 0 28px; box-shadow: var(--shadow); }
.summary-box p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--slate); font-size: 14px; border-top: 1px solid var(--fog); margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--slate); }

@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: 8px; }
  .toc ol { border: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc li a { border: 0; background: var(--card); border-radius: 999px; padding: 6px 12px; margin: 0; box-shadow: var(--shadow); }
  .link-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .split, .price, .grid.two { grid-template-columns: 1fr; }
  .also { columns: 1; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 16px; }
}
@media (max-width: 560px) {
  .grid, .steps, .link-cards { grid-template-columns: 1fr; }
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .wrap { padding: 0 16px; }
  section { padding: 44px 0; }
  .doc-body table { font-size: 15px; }
  .doc-body th, .doc-body td { padding: 8px 6px; }
}
@media print {
  .site-header, .site-footer, .toc, .cta { display: none; }
  body { background: #fff; color: #000; }
  .doc { grid-template-columns: 1fr; }
}
