/* SetFinish: built on the look's kit (look.css): a printed price label in two inks, accent yellow and brown, on cream. */
:root {
  --cream: #fbf5e6;
  --ink-soft: color-mix(in srgb, var(--ink) 82%, var(--accent));
  --rhythm: clamp(3.2rem, 7vw, 6.5rem);
}
::selection { background: var(--accent); color: var(--ink); }
html { scrollbar-color: var(--ink-2) var(--bg-2); }
body { font-size: 1.0625rem; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.num, .money { font-family: var(--text); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; }

p, li { text-wrap: pretty; }

/* the top bar */
.top .brand { min-height: 44px; }
.top .brand img { border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); }
.top .links { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); }
.top .links a:not(.btn) { font-weight: 700; text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; gap: .3em; padding-inline: .2rem; }
footer.site .foot-links a, footer.site .name, .faq .more, .auth .alt a, .auth p a { min-height: 44px; display: inline-flex; align-items: center; }
.top .links a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--accent); }
.top .btn { min-height: 44px; padding: 0 1.1em; font-size: .9rem; }
.nav-band { background: var(--accent); }
.btn.ink { background: var(--ink); color: var(--accent); border-color: var(--ink); box-shadow: 4px 4px 0 var(--cream); }
.btn.ink:hover { box-shadow: 6px 6px 0 var(--cream); }
.btn.ink:active { box-shadow: 1px 1px 0 var(--cream); }
.btn.small { min-height: 40px; padding: 0 .9em; font-size: .85rem; }
.btn .i { width: 1.1em; height: 1.1em; }

/* the hero: one full-bleed field of yellow, the headline huge in brown, the picture and the product pasted over its
   lower edge */
.hero { position: relative; padding: 0; }
.hero-band { background-color: var(--accent); position: relative; padding-block: clamp(1.6rem, 4vw, 3rem) 1.5rem;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1.1px, transparent 1.3px);
  background-size: 8px 8px; border-bottom: 3px solid var(--ink); }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 5.4rem); color: var(--ink); text-shadow: 4px 4px 0 var(--cream); margin-bottom: .35em; max-width: 11ch; }
.hero .sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 34ch; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-top: 1.4rem; }
.cta-row .note { font-weight: 700; display: inline-flex; align-items: center; gap: .4em; }
.stamp { display: inline-grid; place-items: center; text-align: center; width: 112px; height: 112px; border-radius: 50%;
  border: 3px solid var(--ink); color: var(--ink); font: 400 .82rem/1.1 var(--display); text-transform: uppercase;
  letter-spacing: .05em; transform: rotate(-12deg); background: var(--cream); box-shadow: 4px 4px 0 var(--ink); padding: .6rem; }
.stamp b { display: block; font-size: 1.7rem; font-weight: 400; line-height: 1; }
.hero-stamp { margin-top: 1.6rem; }
.hero-art { position: relative; }
.hero-pic { margin: 0; background: var(--cream); padding: 10px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1.6deg); }
.hero-pic img { width: 100%; height: auto; display: block; }
.hero-screen { position: relative; margin: -5rem 0 -9rem clamp(.6rem, 3vw, 2rem); z-index: 2; max-width: 520px; }
.hero-screen .screen { max-height: 430px; }
.hero-after { padding-top: calc(var(--rhythm) + 8rem); }

/* the product's own screen */
.screen { max-height: 600px; overflow: hidden; }
.screen .bar { background: var(--ink); color: var(--cream); border-bottom: 0; font-family: var(--text); font-weight: 700; justify-content: space-between; }
.screen .bar .sample { background: var(--accent); color: var(--ink); padding: .2em .55em; border-radius: 4px; font-size: .75rem; }
.screen .body { padding: 1.1rem 1.2rem 1.4rem; }
.finish-line { font-weight: 700; font-size: 1.02rem; margin: 0 0 .2rem; }
.big-cost { font: 400 clamp(2.4rem, 5vw, 3.2rem)/1 var(--display); margin: .2rem 0 .1rem; }
.cost-note { color: var(--ink-2); font-size: .9rem; margin: 0 0 .9rem; }
.meter { height: 14px; border: 2px solid var(--ink); border-radius: 4px; background: var(--cream); overflow: hidden; margin: .4rem 0 .3rem; }
.meter > span { display: block; height: 100%; background: var(--accent);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 30%, transparent) 1px, transparent 1.2px); background-size: 5px 5px; }
.meter-row { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; }
.rows { list-style: none; margin: .9rem 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .65rem 0; border-top: 2px dotted color-mix(in srgb, var(--ink) 35%, transparent); }
.rows .box { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 4px; background: var(--cream); display: grid; place-items: center; }
.rows .box.on { background: var(--accent); }
.rows .nm { font-weight: 700; line-height: 1.25; }
.rows .meta { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.rows .pr { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rows .pr small { display: block; font-weight: 600; font-size: .75rem; color: var(--good); }
.tagline { display: inline-flex; align-items: center; gap: .3em; font-size: .75rem; font-weight: 700; padding: .1em .45em; border-radius: 4px; background: var(--accent); color: var(--ink); }

/* parts of the front page */
.part-head { max-width: 760px; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.part-head p { font-size: 1.12rem; }
.steps { display: grid; gap: clamp(1.2rem, 3vw, 2rem); grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
.step { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--card-shadow); }
.step-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.step h3 { font-size: 1.4rem; margin: 0; }
.step p { margin: 0; }
.i-box { border: 2px solid var(--ink); background: var(--accent); color: var(--ink); }

.what { background: var(--ink); color: var(--cream); }
.what h2 { color: var(--accent); text-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 25%, transparent); }
.what p, .what li { color: var(--cream); }
.what-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
.rules { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .9rem; }
.rules li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.rules .i { color: var(--accent); width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
.receipt { background: var(--cream); color: var(--ink); border: 3px solid var(--accent); border-radius: 4px; padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: 8px 8px 0 var(--accent); transform: rotate(-1.2deg); max-width: 470px; justify-self: center; width: 100%; }
.receipt h3 { font-size: 1.35rem; margin: 0 0 .1rem; }
.receipt .sub2 { color: var(--ink-2); margin: 0 0 .8rem; font-size: .92rem; }
.receipt table td { border-bottom: 2px dotted color-mix(in srgb, var(--ink) 30%, transparent); padding: .55rem .2rem; }
.receipt table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.receipt tfoot td { border-bottom: 0; font-weight: 700; padding-top: .8rem; }
.receipt .low { display: inline-block; margin-top: .2rem; }

.price-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
.label { background: var(--accent); border: 3px solid var(--ink); border-radius: 8px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 8px 8px 0 var(--ink);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1.1px, transparent 1.3px); background-size: 8px 8px; }
.label h2 { margin-bottom: .2em; }
.amount { font: 400 clamp(4rem, 10vw, 6rem)/.9 var(--display); margin: .2rem 0 .3rem; text-shadow: 4px 4px 0 var(--cream); }
.amount small { font-size: .3em; text-shadow: none; }
.label ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; font-weight: 600; }
.label li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.label .free-line { font-weight: 700; margin: .9rem 0 0; }
.faq h3 { font-size: 1.2rem; margin: 0 0 .35rem; }
.faq .q { padding: 1rem 0; border-top: 2px solid var(--ink); }
.faq .q p { margin: 0; }
.faq .more { display: inline-flex; align-items: center; gap: .4em; margin-top: 1.2rem; font-weight: 700; }

.band { background: var(--accent); border-block: 3px solid var(--ink); text-align: center;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1.1px, transparent 1.3px); background-size: 8px 8px; padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.band p.line { font: 400 clamp(1.7rem, 4vw, 2.8rem)/1.05 var(--display); margin: 0 auto 1.3rem; max-width: 22ch; text-wrap: balance; }

footer.site { border-top: 0; background: var(--ink); color: var(--cream); padding-block: 2.4rem 2.8rem; }
footer.site a { color: var(--cream); text-decoration-color: var(--accent); }
footer.site .foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
footer.site .name { font: 400 1.5rem/1 var(--display); color: var(--accent); display: flex; align-items: center; gap: .5rem; text-decoration: none; }
footer.site .name img { width: 34px; height: 34px; border-radius: 8px; }
footer.site .foot-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
footer.site .syng-legal-links a { color: var(--cream); }
footer.site .fine { margin-top: 1.2rem; color: color-mix(in srgb, var(--cream) 75%, var(--ink)); font-size: .88rem; max-width: none; }

/* the questions page */
.page-head { background: var(--accent); border-bottom: 3px solid var(--ink); padding-block: 2.4rem 2.6rem;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1.1px, transparent 1.3px); background-size: 8px 8px; }
.page-head h1 { text-shadow: 4px 4px 0 var(--cream); margin: 0; }
.page-head p { font-size: 1.15rem; margin: .7rem 0 0; font-weight: 500; }
.qa-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.qa h2 { font-size: 1.6rem; }

/* forms and the signed-in pages */
.auth { padding-block: 2.5rem 4rem; }
.auth .card { padding: clamp(1.4rem, 4vw, 2rem); }
.auth h1 { font-size: clamp(2rem, 6vw, 2.8rem); text-shadow: 3px 3px 0 var(--accent); }
.auth .alt { margin-top: 1.2rem; }
.msg { padding: .8rem 1rem; border-radius: 6px; border: 2px solid var(--ink); background: var(--cream); font-weight: 600; margin: 0 0 1rem; }
.msg.bad { border-color: var(--bad); color: var(--bad); }
.msg.good { border-color: var(--good); color: var(--good); }
.check-row { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.check-row { position: relative; min-height: 44px; cursor: pointer; }
.check-row input { position: absolute; left: -11px; top: 0; width: 44px; height: 44px; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.check-row .cbox { flex: none; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 4px; background: var(--cream); display: grid; place-items: center; }
.check-row input:checked + .cbox { background: var(--ink); box-shadow: inset 0 0 0 3px var(--accent); }
.check-row input:focus-visible + .cbox { outline: 3px solid var(--accent); outline-offset: 2px; }
button.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; font-weight: 700; cursor: pointer; min-height: 44px; }

.app-top { background: var(--accent); border-bottom: 3px solid var(--ink); }
.app-main { padding-block: 1.6rem 4rem; min-height: 100vh; }
.acct { min-height: 80vh; align-content: start; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; min-height: 44px; }
.tab { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 1em; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface); color: var(--ink);
  font-weight: 700; text-decoration: none; cursor: pointer; }
.tab[aria-current="page"] { background: var(--ink); color: var(--accent); }
.tab .i { width: 1em; height: 1em; }
.dash { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; }
.sum-card .big-cost { font-size: clamp(2.3rem, 6vw, 3rem); overflow-wrap: anywhere; }
.priciest { list-style: none; padding: 0; margin: .6rem 0 0; }
.priciest li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 2px dotted color-mix(in srgb, var(--ink) 30%, transparent); }
.priciest li span:last-child { font-weight: 700; white-space: nowrap; }
.tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: 0 0 1rem; }
.tools .field { margin: 0; }
.tools input, .tools select { min-height: 44px; }
.range-tool { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; align-items: end; }
.range-tool .btn { grid-column: 1 / -1; }
.cl { width: 100%; }
.cl td { padding: .5rem .5rem; vertical-align: middle; }
.cl .no { width: 3.4em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cl .cn { font-weight: 700; }
.cl .cn small { display: block; font-weight: 400; color: var(--ink-2); }
.vars { display: flex; flex-wrap: wrap; gap: .4rem; }
.var { display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: .2em .6em; border: 2px solid var(--ink); border-radius: 6px; background: var(--cream); cursor: pointer; font-size: .88rem; font-weight: 600; user-select: none; }
.var input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--ink); }
.var.on { background: var(--accent); }
.var .p { font-variant-numeric: tabular-nums; }
.var .low { color: var(--good); font-weight: 700; }
.tgt { min-height: 40px; padding: 0 .5em; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; gap: .3em; font-weight: 600; font-size: .85rem; }
.tgt.set { background: var(--ink); color: var(--accent); }
.set-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); max-height: 60vh; overflow: auto; }
.set-list button { width: 100%; text-align: left; min-height: 56px; padding: .6rem .9rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface); cursor: pointer; }
.set-list button:hover, .set-list button:focus-visible { background: var(--accent); }
.set-list b { display: block; }
.set-list small { color: var(--ink-2); }
.locked { background: var(--bg-2); border: 2px dashed var(--ink); border-radius: 8px; padding: 1.2rem; }
.empty { text-align: center; padding: 2rem 1rem; }
.history { display: flex; align-items: end; gap: 2px; height: 70px; margin: .6rem 0; }
.history span { flex: 1; background: var(--accent); border: 1px solid var(--ink); min-height: 2px; }
.share-box { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-box input { flex: 1 1 220px; }
.acct { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.acct .card h2 { font-size: 1.5rem; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--ink); color: var(--accent); padding: .7rem 1.1rem; border-radius: 6px; font-weight: 700; z-index: 60; box-shadow: 4px 4px 0 var(--accent); }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .range-tool { grid-template-columns: repeat(4, auto); }
  .range-tool .btn { grid-column: auto; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .acct { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: start; }
  .hero-band { padding-bottom: 3rem; min-height: 560px; }
  .hero-art { margin-top: .4rem; }
  .hero-pic { max-width: 500px; margin-left: auto; }
  .hero-screen { margin: -8.5rem 0 -11rem auto; max-width: 470px; }
  .hero-screen .screen { max-height: 470px; }
  .hero-after { margin-top: 0; padding-top: calc(var(--rhythm) + 4rem); }
  .what-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: .9fr 1.1fr; }
  .dash { grid-template-columns: 340px 1fr; }
}
@media (max-width: 520px) {
  .top .links .login { font-size: .95rem; }
  .top .btn { padding: 0 .8em; }
  .stamp { width: 96px; height: 96px; font-size: .72rem; }
  .stamp b { font-size: 1.4rem; }
  .hero-stamp { display: none; }
  .cl .no { width: 2.6em; }
  .cl td { padding: .45rem .3rem; }
}
