/* textmytask.com learning pages. Painted Steel: steel ink on bone paper, enamel orange for the one thing to notice.
   Layout: a narrow reading column (about 68 characters) inside a wider frame; the guide adds a chapter rail on wide screens. */
:root {
  --paper: #F1EFEA;
  --card: #FFFFFF;
  --ink: #20242A;
  --muted: #6B665E;
  --line: #DCD7CE;
  --accent: #E0521F;
  --accent-ink: #B63F14;
  --soft: #F6D9CC;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 68ch;
  --radius: 14px;
  color-scheme: light;
}

@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap; src: url("fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }

/* Preview banner (preview builds only) */
.preview-bar { background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 0; }
.preview-bar .wrap { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }

/* Header */
.site-head { background: var(--ink); color: var(--paper); }
.site-head .wrap { display: flex; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.brand img, .brand .mark { width: 40px; height: 40px; border-radius: 9px; display: block; }
.brand .mark { background: var(--accent); display: grid; place-items: center; }
.brand .name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; flex: 1; }
.site-nav a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: #fff; }
/* Header matches the live textmytask.com masthead: 4px enamel rule, 40px icon, 24px wordmark, mono App Store pill. */
.topbar { height: 4px; background: var(--accent); }
.cta { display: inline-flex; align-items: center; color: var(--accent); text-decoration: none; white-space: nowrap;
  font-family: "Spline Sans Mono", ui-monospace, monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em;
  border: 1px solid #3a424b; border-radius: 3px; padding: 6px 11px; }
.cta:hover { color: #fff; border-color: var(--accent); }

/* Search */
.search { position: relative; }
.search input { width: 100%; font: 500 16px var(--text); padding: 11px 14px 11px 40px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-results { list-style: none; margin: 8px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; }
.search-results:empty { display: none; }
.search-results li a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.search-results li:first-child a { border-top: 0; }
.search-results li a:hover, .search-results li a:focus { background: var(--soft); }
.search-results .r-t { font-weight: 700; display: block; }
.search-results .r-s { font-size: 14px; color: var(--muted); display: block; }
.search-results .none { padding: 10px 14px; color: var(--muted); font-size: 15px; }

/* Page hero and body */
.page { padding: 40px 0 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.prose { max-width: var(--measure); }
.prose h1, .prose h2, .prose h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .4px; line-height: 1.02; text-wrap: balance; }
.prose h1 { font-weight: 800; font-size: clamp(42px, 7vw, 68px); margin: 0 0 18px; }
.prose h2 { font-weight: 800; font-size: 32px; margin: 48px 0 12px; padding-top: 16px; border-top: 2px solid var(--line); }
.prose h3 { font-weight: 800; font-size: 23px; margin: 30px 0 8px; }
.prose h1 + p { font-size: 20px; color: var(--muted); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose ol { padding-left: 1.4em; }
.prose ol li::marker { font-family: var(--display); font-weight: 800; color: var(--accent); }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 36px 0; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; background: var(--card); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 16px; background: var(--paper); }
.prose tr:last-child td { border-bottom: 0; }

/* Figures */
.fig { margin: 24px 0 28px; }
.fig figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.fig.illo { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.illo-svg { display: block; width: 100%; height: auto; }
.illo-svg .d { font-family: var(--display); text-transform: uppercase; }
.illo-svg .b { font-family: var(--text); }
.fig.wide { max-width: none; }
.shot-img { display: block; width: min(280px, 100%); height: auto; border-radius: 28px; border: 6px solid var(--ink); }
.shot-ph { width: min(220px, 100%); aspect-ratio: 9 / 19.5; border-radius: 30px; border: 6px solid var(--ink); background:
  repeating-linear-gradient(135deg, var(--paper) 0 12px, #E8E4DC 12px 24px);
  display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); }
.shot-ph b { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); text-transform: uppercase; letter-spacing: .5px; }
.shot-ph code { font-size: 13px; }

/* Verify markers (preview only) */
.verify { display: block; margin: 12px 0 18px; padding: 10px 14px; border: 2px dashed var(--accent); border-radius: 10px;
  background: #FFF6F1; color: var(--accent-ink); font-size: 14.5px; }
.verify::before { content: "Check before launch: "; font-weight: 700; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 24px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
a.card { text-decoration: none; color: var(--ink); transition: border-color .15s; }
a.card:hover { border-color: var(--accent); }
.card .eyebrow { font-family: var(--display); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: 15px; }
.card .t { font-family: var(--display); font-weight: 800; font-size: 25px; text-transform: uppercase; line-height: 1.05; }

/* Guide index groups */
.group-title { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin: 34px 0 0; }
.cards.guide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 12px; }
.cards.guide .num { font-family: var(--display); font-weight: 800; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }

/* Pricing */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin: 26px 0 30px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.price.core { border: 2px solid var(--accent); }
.price .tier { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
.price .tag { font-size: 14px; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .8px; }
.price .amt { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.price .amt small { font-family: var(--text); font-size: 16px; font-weight: 600; color: var(--muted); }
.price .alt { color: var(--muted); font-size: 15px; margin-top: -4px; }
.price ul { margin: 6px 0 0; padding-left: 1.1em; }
.price li { margin: 4px 0; }

/* FAQ */
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.faq-cats a { background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.faq-cats a:hover { border-color: var(--accent); }
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; }
details.qa summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 700; font-size: 17.5px; position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--accent); }
details.qa[open] summary::after { content: "\2212"; }
details.qa .a { padding: 0 18px 6px; }

/* Guide layout */
.guide-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.rail { position: sticky; top: 20px; font-size: 15px; max-height: calc(100vh - 40px); overflow: auto; padding-bottom: 20px; }
.rail .rg { font-family: var(--display); font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-size: 14px; margin: 18px 0 6px; }
.rail .rg:first-child { margin-top: 0; }
.rail a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.rail a:hover { background: var(--card); }
.rail a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; max-width: var(--measure); }
.pager a { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.pager b { font-family: var(--display); font-weight: 800; font-size: 21px; text-transform: uppercase; }
.pager .next { text-align: right; grid-column: 2; }
.helpful { margin-top: 30px; max-width: var(--measure); background: var(--ink); color: var(--paper); border-radius: 18px; padding: 20px 22px; }
.helpful a { color: #FFB491; }

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; gap: 0; }
  .rail { position: static; max-height: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 26px; }
  .rail details summary { font-weight: 700; cursor: pointer; }
}
@media (min-width: 901px) { .rail details > summary { display: none; } }

/* Footer */
/* Footer matches the live /support footer: one centered mono line, grey links. */
.site-foot { background: var(--ink); border-top: 1px solid #2c333b; padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px));
  text-align: center; font-family: "Spline Sans Mono", ui-monospace, monospace; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .1em; color: #7a818a; line-height: 2.2; }
.site-foot nav { display: inline; }
.site-foot a { color: #7a818a; text-decoration: none; border-bottom: 1px solid #3a424b; padding-bottom: 1px; }
.site-foot a:hover { color: #f0eee9; }

/* Cover page (preview only) */
.cover-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 22px 0; }
.cover-status div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.cover-status b { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.cover-status span { color: var(--muted); font-size: 14.5px; }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .prose h2 { font-size: 28px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .site-nav a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .rail, .pager, .preview-bar, .search { display: none; } }

/* On this page + back to contents */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px 10px; margin: 22px 0 8px; scroll-margin-top: 16px; }
.toc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.toc-head span { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); font-size: 16px; }
.toc-all { font-size: 15px; font-weight: 600; }
.toc ol { margin: 8px 0 6px; padding-left: 1.4em; columns: 2 240px; column-gap: 28px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 48px 0 12px; padding-top: 16px; border-top: 2px solid var(--line); }
.sec-head h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; scroll-margin-top: 16px; }
.to-contents { font-size: 14px; font-weight: 600; white-space: nowrap; }
