/* obrapista.shop: the front page and /questions/. A lit plan on a dark site: survey lines, dimension marks, claves in mono. */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0d0c0b;
  --bg2: #141210;
  --panel: #1b1815;
  --line: #2e2924;
  --ink: #f1ebe4;
  --mut: #a89e94;
  --acc: #b5541c;
  --acc-lt: #ec8a50;
  --ok: #8fc79a;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); }
a { color: var(--acc-lt); }
a:hover { color: #ffb184; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p, li { margin: 0; text-wrap: pretty; }
h1, h2, h3, summary { text-wrap: balance; }
code, .mono { font-family: var(--mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--acc-lt); outline-offset: 3px; }

/* button: a plain plate of the accent, square like a site sign */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--acc); color: #fff; text-decoration: none; font-weight: 600; font-size: 1.0625rem; border: 1px solid #d0662a; border-radius: 3px; }
.btn::after { content: '→'; font-weight: 500; }
.btn:hover { background: #c65f23; color: #fff; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; white-space: nowrap; }
.btn.sm::after { content: none; }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; margin-right: auto; min-height: 44px; }
.brand img { border-radius: 6px; }
.login { color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 6px; }
.login:hover { color: var(--acc-lt); }

/* header: a drafting sheet, grid lines fading out */
.hero { position: relative; padding: 36px 0 0; overflow: hidden;
  background:
    linear-gradient(var(--bg) 0, transparent 30%, transparent 70%, var(--bg) 100%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(181,84,28,.09) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(181,84,28,.09) 47px 48px); }
.hero h1 { font-size: clamp(2.4rem, 9.6vw, 4.75rem); line-height: 1.02; font-weight: 600; letter-spacing: -.025em; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--acc-lt); }
.hero-grid { display: grid; gap: 26px; margin-top: 20px; }
.sub { color: #d6cec5; font-size: 1.0625rem; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.note { color: var(--mut); font-size: .9375rem; }
.cota { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--mut); font: 400 .8125rem/1 var(--mono); }
.cota::before, .cota::after { content: ''; flex: 1; height: 7px; border: 1px solid var(--acc); border-width: 0 1px; background: linear-gradient(var(--acc), var(--acc)) center / 100% 1px no-repeat; max-width: 80px; }

/* the product: a lit screen, cut off where it goes on */
.screen { position: relative; margin: 0; max-height: 470px; overflow: hidden; background: #f6f1eb; color: #1d1a17; border-radius: 10px 10px 0 0; box-shadow: 0 0 0 1px #3a332c, 0 30px 70px -20px rgba(0,0,0,.7); }
.screen::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(rgba(13,12,11,0), var(--bg) 92%); pointer-events: none; }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e9e1d8; border-bottom: 1px solid #d9cfc4; font-size: .8125rem; color: #5b5149; }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbbfb2; }
.screen-bar span { margin-left: 8px; font-weight: 500; }
.screen-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 16px 10px; }
.screen-head b { width: 100%; font-size: 1.0625rem; margin-bottom: 2px; }
.chip { font-size: .75rem; padding: 3px 9px; border: 1px solid #d3c7ba; border-radius: 3px; color: #4d433b; background: #fff; }
.chip.on { background: #fbe9dd; border-color: #e3b394; color: #7a3410; }
.rows { list-style: none; margin: 0; padding: 0 16px 16px; display: grid; gap: 10px; }
.row { color: #1d1a17; display: grid; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid #e3d9ce; border-left: 3px solid var(--acc); border-radius: 4px; }
.row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.co { font-weight: 600; font-size: 1rem; }
.pj { font-size: .9375rem; color: #3b342e; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8125rem; color: #6a5f55; }
.meta code { font-size: .78rem; color: #7a3410; background: #fbefe6; padding: 0 5px; border-radius: 2px; }
.meta a { color: #9a4314; }
.st { flex: none; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.st.filed { background: #fff1d6; color: #7a4a00; }
.st.resolved { background: #dff0e2; color: #1e5b2b; }

/* sections */
.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: 10px; font: 500 .875rem/1 var(--mono); color: var(--acc-lt); margin-bottom: 14px; }
.label::before { content: ''; width: 9px; height: 9px; border: 1.5px solid var(--acc); transform: rotate(45deg); }
.sec h2 { font-size: clamp(1.75rem, 5.4vw, 2.625rem); line-height: 1.1; max-width: 22ch; }
.lead { color: var(--mut); margin-top: 12px; max-width: 40em; }

/* how: three stakes along a survey line */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 26px; counter-reset: s; }
.steps li { position: relative; padding: 18px 0 0; border-top: 1px solid var(--acc); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: -9px; left: 0; padding-right: 10px; background: var(--bg); font: 500 .8125rem/1 var(--mono); color: var(--acc-lt); }
.steps h3 { font-size: 1.3125rem; line-height: 1.25; }
.steps p { color: var(--mut); margin-top: 8px; }

/* what: the timeline from filing to works, as a dimension line */
#what { background: var(--bg2); }
.track { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.track li { position: relative; padding: 0 0 26px 30px; border-left: 1px solid var(--line); }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 13px; height: 13px; border: 2px solid var(--acc); background: var(--bg2); transform: rotate(45deg); }
.track li.here { border-left-color: var(--acc); }
.track li.late::before { border-color: #6b625a; }
.track .when { font: 400 .8125rem/1.3 var(--mono); color: var(--mut); }
.track h3 { font-size: 1.25rem; margin-top: 4px; }
.track p { color: var(--mut); margin-top: 6px; font-size: .9875rem; }
.tag { display: inline-block; margin-top: 10px; font: 500 .8125rem/1 var(--mono); padding: 6px 9px; border: 1px solid var(--acc); color: var(--acc-lt); }
.late .tag { border-color: #4a433c; color: var(--mut); }
.fine { color: var(--mut); font-size: .875rem; margin-top: 26px; max-width: 46em; }

/* price and its questions */
.price-grid { display: grid; gap: 40px; margin-top: 30px; }
.plan { border: 1px solid var(--line); border-top: 3px solid var(--acc); background: var(--panel); padding: 26px 22px; }
.amt { font-size: 3.5rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.amt small { font-size: 1rem; font-weight: 400; color: var(--mut); letter-spacing: 0; }
.tax { color: var(--mut); font-size: .875rem; margin-top: 6px; }
.plan ul { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 8px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 9px; height: 1px; background: var(--acc-lt); box-shadow: 0 -3px 0 var(--acc-lt), 0 3px 0 var(--acc-lt); }
.faq h3 { font-size: 1.125rem; margin-bottom: 10px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; color: var(--acc-lt); font: 400 1.25rem/1 var(--mono); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--mut); padding: 0 0 14px; }
.more { display: inline-block; margin-top: 16px; font-weight: 500; padding: 8px 0; }

/* band */
.band { padding: 60px 0; border-top: 1px solid var(--acc); background: var(--bg2); }
.band .wrap { display: grid; gap: 22px; justify-items: start; }
.band h2 { font-size: clamp(1.75rem, 5.6vw, 3rem); line-height: 1.08; max-width: 20ch; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--mut); font-size: .875rem; }
.foot .wrap { display: grid; gap: 10px; }
.foot a { color: #d6cec5; }
.syng-legal-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.syng-legal-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* /questions/ */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em; }
.qa { display: grid; gap: 0; margin-top: 26px; max-width: 760px; }
.qa > div { padding: 18px 0; border-top: 1px solid var(--line); }
.qa h2 { font-size: 1.125rem; line-height: 1.35; max-width: none; }
.qa p { color: var(--mut); margin-top: 6px; max-width: 36em; }
.lead, .sources p, .sources li { max-width: 36em; }
.sheet { margin-top: 26px; background: #f6f1eb; border-radius: 8px; padding-top: 14px; max-width: 860px; }
.src-line { color: var(--mut); font-size: .875rem; margin-top: 14px; max-width: 46em; }
.who { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who li { border: 1px solid var(--line); padding: 8px 12px; font-size: .9375rem; }
.sources ul { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 10px; max-width: 760px; }
.sources p { color: var(--mut); margin-top: 14px; max-width: 760px; }
.demo { margin-top: 26px; display: grid; gap: 18px; max-width: 860px; }
.demo form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.demo label { display: grid; gap: 6px; font-size: .875rem; color: var(--mut); flex: 1 1 200px; }
.demo select { min-height: 48px; padding: 0 12px; background: var(--panel); color: var(--ink); border: 1px solid #4a423b; border-radius: 3px; font: inherit; font-size: 1rem; }
.demo button.btn { cursor: pointer; font-family: inherit; }
.demo-out { background: #f6f1eb; color: #1d1a17; border-radius: 8px; padding-top: 14px; min-height: 60px; }
.demo-out .empty { padding: 4px 16px 16px; color: #5b5149; }
.demo-out .screen-foot { padding: 0 16px 16px; font-size: .875rem; color: #5b5149; }
.demo-out .screen-foot a { color: #9a4314; }

@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; margin-top: 26px; }
  .screen { max-height: 470px; }
  .sec { padding: 88px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .track { grid-template-columns: repeat(3, 1fr); }
  .track li { padding: 30px 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .track li.here { border-top-color: var(--acc); }
  .track li::before { left: 0; top: -8px; }
  .price-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .band .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 420px) {
  .brand { font-size: .9375rem; }
  .brand img { width: 28px; height: 28px; }
  .nav .wrap { gap: 8px; }
  .login { padding: 12px 4px; }
  .btn.sm { padding: 0 12px; }
}
@media (max-width: 374px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
