/* tickiva.com: the app's Ink look on the web. Warm paper, graphite text,
   and one ink whose only job is "done". Colours match Shared/Ink.swift. */

:root {
  --ground: #F7F5F0;
  --paper: #FFFEFB;
  --text: #2B2A28;
  --text2: #5E5C57;
  --rule: rgba(43, 42, 40, .11);
  --ink: #121212;
  --on-ink: #FFFFFF;
  --on-ink2: rgba(255, 255, 255, .76);
  --shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0D0D0C;
    --paper: #1A1A19;
    --text: #ECEAE4;
    --text2: #A3A19B;
    --rule: rgba(255, 255, 255, .12);
    /* In dark mode the ink is light, as in the app. */
    --ink: #F2F1EC;
    --on-ink: #121211;
    --on-ink2: rgba(18, 18, 17, .7);
    --shadow: none;
  }
  .icon-light { display: none; }
}
@media (prefers-color-scheme: light) { .icon-dark { display: none; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* The wordmark: "ticki", the drawn tick, "a" (design/brand/brand.html).
   The tick is the tallest thing in the word and spaced like Archivo's v. */
.word {
  font: 900 1em/1 var(--display);
  font-stretch: 125%;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.word .tick { width: .684em; height: .851em; margin: 0 -.14em 0 .04em; overflow: visible; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
}
header.site .brand { font-size: 26px; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
header.site .brand img { width: 34px; height: 34px; border-radius: 8px; }
header.site nav { display: flex; gap: 22px; font-size: 15px; color: var(--text2); }
header.site nav a { text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--text); text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 66px); text-wrap: wrap; }
h2 { font-size: clamp(26px, 3.6vw, 34px); }
h3 { font-size: 19px; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--text2); max-width: 34em; }
.meta { font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums; }

/* Home */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 48px 0 80px; }
.hero .lede { margin-top: 22px; }
.soon {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px;
  padding: 10px 20px 10px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow);
  font-size: 15px; font-weight: 600;
}
.soon img { width: 40px; height: 40px; border-radius: 10px; }
.soon span { display: block; font-weight: 400; color: var(--text2); font-size: 13px; }

.board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board .row { grid-column: 1 / -1; }

/* A list tile: a paper face, and an inked copy cut to how far the ink has
   risen, as the app draws it. --p is the share of items ticked. */
.tile { position: relative; height: 172px; border-radius: 24px; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.tile .face { position: absolute; inset: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .inked { background: var(--ink); color: var(--on-ink); clip-path: inset(calc(100% - var(--p) * 100%) 0 0 0); animation: rise 1.4s cubic-bezier(.3, .7, .2, 1) .3s backwards; }
.tile .top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile .count { font: 900 25px/1 var(--display); font-stretch: 125%; font-variant-numeric: tabular-nums; }
.tile .name { font-size: 18px; font-weight: 600; line-height: 1.25; }
.tile .sub { font-size: 14px; color: var(--text2); }
.tile .inked .sub { color: var(--on-ink2); }
.tile.later .face:not(.inked) { opacity: .55; }
.tile svg.li { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.row.tile { height: 72px; border-radius: 18px; }
.row.tile .face { flex-direction: row; align-items: center; gap: 14px; padding: 0 18px; }
.row.tile .inked { clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0); animation-name: across; }
.row.tile .grow { flex: 1; }
.row.tile .name { font-size: 17px; }
.row.tile .sub { font-size: 13px; }
.row.tile .count { font: 600 15px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--text2); }
.row.tile .inked .count { color: var(--on-ink); }

.stamp {
  width: 78px; height: 78px; border-radius: 50%; border: 2px solid var(--on-ink2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-4deg);
  font: 900 11px/1.3 var(--display); font-stretch: 125%; letter-spacing: .08em; color: var(--on-ink2);
}
.stamp b { font: 600 13px/1.2 var(--body); letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* On arrival the ink rises from empty to where each list stands. */
@keyframes rise { from { clip-path: inset(100% 0 0 0); } }
@keyframes across { from { clip-path: inset(0 100% 0 0); } }
@media (prefers-reduced-motion: reduce) { .tile .inked { animation: none; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; padding: 72px 0; border-top: 1px solid var(--rule); }
.features p { margin-top: 10px; color: var(--text2); }

.price { padding: 72px 0 88px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.price ul { list-style: none; margin: 0; padding: 0; }
.price li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; }
.price li:first-child { border-top: 1px solid var(--rule); }
.price li span:last-child { color: var(--text2); text-align: right; }

/* Policy and help pages */
.doc { padding-top: 40px; padding-bottom: 88px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc .meta { margin-top: 14px; }
.doc .summary { margin-top: 32px; padding: 22px 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.doc .summary p + p { margin-top: 10px; }
.doc h2 { font-size: 22px; margin-top: 44px; letter-spacing: -.01em; line-height: 1.2; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc .contact { margin-top: 28px; font-size: 21px; font-weight: 600; }
.doc .path { font-weight: 600; }

footer.site { border-top: 1px solid var(--rule); padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--text2); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 24px 0 64px; }
  .features { grid-template-columns: 1fr 1fr; }
  .price { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  header.site .brand { font-size: 22px; }
  header.site .brand img { display: none; }
  header.site nav { gap: 16px; }
  .features { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .tile { height: 156px; }
  .tile .count { font-size: 22px; }
  .tile .name { font-size: 16px; }
  .stamp { width: 62px; height: 62px; font-size: 9px; }
  .stamp b { font-size: 11px; }
}

/* Navigation link to the checklists */
header.site nav a[href="/checklists"] { font-weight: 600; color: var(--text); }

/* The real app: a phone with the ink flood playing, and screenshots */
.app { padding: 72px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
/* A grid column can't shrink below its widest child without this; the
   screenshot strip scrolls inside its column instead. */
.app > div { min-width: 0; }
.phone {
  width: 300px; aspect-ratio: 444 / 960; border-radius: 48px; overflow: hidden; margin: 0 auto;
  background: #000; padding: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .18), 0 0 0 1px var(--rule);
}
.phone-wrap { margin: 0; }
.phone { position: relative; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; display: block; }
.app .lede { margin-top: 16px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 28px 0 8px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 168px; scroll-snap-align: start; }
.shots img { width: 168px; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px var(--rule); }
.shots figcaption { font-size: 13px; color: var(--text2); margin-top: 8px; }

/* Starting lists, linking to their pages */
.starts { padding: 72px 0; border-top: 1px solid var(--rule); }
.starts .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.start-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 20px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.start-card:hover { border-color: var(--text2); text-decoration: none; }
.start-card b { font-size: 17px; }
.start-card span { font-size: 14px; color: var(--text2); }

/* A checklist page: the list drawn as a Tickiva card */
.crumbs { font-size: 13px; color: var(--text2); }
.crumbs a { text-decoration: none; }
.list-card { margin-top: 28px; border-radius: 24px; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); padding: 20px 22px 8px; }
.list-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.list-card .title { font: 900 24px/1.1 var(--display); font-stretch: 125%; letter-spacing: -.02em; }
.list-card .meta { margin-top: 6px; }
.list-card .squares { display: flex; gap: 5px; margin-top: 12px; flex-wrap: wrap; }
.list-card .squares i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink); }
.list-card .squares i.on { background: var(--ink); }
.list-card ul { list-style: none; margin: 12px 0 0; padding: 0; }
.list-card li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 17px; }
.list-card li:first-child { border-top: 0; }
.list-card li .c { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--text); display: grid; place-items: center; }
.list-card li.on .c { background: var(--ink); border-color: var(--ink); }
.list-card li.on .c::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-ink); border-bottom: 2px solid var(--on-ink); transform: translateY(-1px) rotate(-45deg); }
.list-card li.on .t { color: var(--text2); }
.list-card li .n { margin-left: auto; font-size: 14px; color: var(--text2); }
.list-card li.sub { padding-left: 38px; }
.list-card li.head-item .t { font-weight: 700; }

/* "Copy this list" under a checklist page's list (copy-list.js). */
.copy-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 16px; }
.copy-row[hidden] { display: none; }
.copy-row .copy-status { margin: 0; font-size: 14px; }
button.copy-list { font: 600 16px/1 var(--body); color: var(--on-ink); background: var(--ink); border: 0; border-radius: 999px; padding: 0 22px; min-height: 46px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
button.copy-list::before { content: ""; width: 14px; height: 16px; border: 1.8px solid currentColor; border-radius: 3px; box-shadow: -4px -4px 0 -1.8px var(--ink), -4px -4px 0 0 currentColor; margin: 3px 0 0 4px; }
button.copy-list.copied::before { width: 12px; height: 6px; border-width: 0 0 2px 2px; border-radius: 0; box-shadow: none; transform: translateY(-2px) rotate(-45deg); margin: 0 2px 0 2px; }
button.copy-list:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.doc ol.steps li + li { margin-top: 10px; }
.cta { margin-top: 44px; padding: 24px; border-radius: 20px; background: var(--ink); color: var(--on-ink); display: flex; gap: 16px; align-items: center; }
.cta img { width: 56px; height: 56px; border-radius: 13px; flex: 0 0 auto; }
.cta p { margin: 0; color: var(--on-ink2); }
.cta strong { color: var(--on-ink); display: block; font-size: 18px; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; gap: 36px; }
  .phone { width: 260px; }
}

/* The flood clip: a tap mark on the last item, and a caption that follows
   the clip (site/assets/flood.js plays the flood itself slowly). */
.phone .tap {
  position: absolute; left: calc(10px + (100% - 20px) * .075); top: calc(10px + (100% - 20px) * .573);
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(120, 120, 120, .35); border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .25s, transform .35s;
}
.phone .tap.on { opacity: 1; transform: scale(1); }
.flood-caption { margin-top: 18px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text2); min-height: 1.4em; }

/* How lists work: the four kinds, each with a small drawn list beside it. */
.lists-doc { max-width: 1040px; }
.lists-doc .narrow-col { max-width: 680px; }
.lists-doc .kinds { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kind { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.kind > h2 { font-size: clamp(26px, 3.6vw, 34px); margin-top: 0; }
.kind-body { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px 48px; align-items: start; margin-top: 24px; }
.kind-body > div > p:first-child { margin-top: 0; }
.kind figure, .pair figure { margin: 0; }
.kind figcaption, .pair figcaption { margin-top: 12px; font-size: 14px; color: var(--text2); }
.kind .see { color: var(--text2); }
.list-card.mini { margin-top: 0; padding: 18px 20px 6px; }
.list-card.mini .title { font-size: 20px; }
.list-card.mini li { font-size: 16px; padding: 10px 0; gap: 12px; }
.list-card.mini li .c { flex-basis: 22px; height: 22px; }
.list-card.mini li.sub { padding-left: 34px; }
.list-card.mini li.head-item .c { border-style: dashed; }
.list-card .t small { display: block; font-size: 13px; color: var(--text2); line-height: 1.3; }
.list-card .panel-head { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; font-weight: 600; color: var(--text2); }
.list-card .panel-head + ul { margin-top: 4px; }
.list-card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.list-card .chips span { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--ground); }
.list-card .done-line { display: flex; justify-content: space-between; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; font-weight: 600; color: var(--text2); }
.list-card .done-line + ul { margin-top: 4px; }
table.pick { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
table.pick th { text-align: left; font-size: 13px; font-weight: 600; color: var(--text2); padding: 0 12px 8px 0; }
table.pick td { padding: 12px 12px 12px 0; border-top: 1px solid var(--rule); vertical-align: top; }
table.pick td:last-child { color: var(--text2); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; margin-top: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 36px; }
.feature-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--rule); }
.feature-card b { font-size: 17px; }
.feature-card span { font-size: 14px; color: var(--text2); }
.lists-doc .narrow-col > h2 { margin-top: 64px; }
@media (max-width: 760px) {
  .kind-body, .pair { grid-template-columns: minmax(0, 1fr); }
  .kind { margin-top: 48px; padding-top: 36px; }
}
header.site nav a { white-space: nowrap; }
@media (max-width: 560px) {
  header.site nav a[href="/privacy"] { display: none; }
  header.site nav { gap: 14px; font-size: 14px; }
  .feature-grid { gap: 8px; }
  .feature-card { padding: 14px 16px; gap: 4px; }
}
@media (max-width: 360px) {
  header.site nav a[href="/support"] { display: none; }
}
.doc h3 { margin-top: 28px; }
.doc h2 + h3 { margin-top: 18px; }
