/* Rollquote. Look C, "Ledger": warm white, ink, one signal orange, a grotesk with a serif italic for the numbers that matter. */

@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: #fffefb;
  --tint: #efede6;
  --ink: #111110;
  --ink-2: #6b6a64;
  --line: #dcdad2;
  --orange: #ff5a1f;
  --orange-ink: #c53d0c; /* orange dark enough for small text on white */
  --orange-soft: #ffe6db;
  --danger: #b3261e;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --r: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand i { font-family: var(--serif); font-weight: 400; color: var(--orange); }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 24px); font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.nav .pro-pill { border: 0; color: var(--ink-2); white-space: nowrap; }
.nav .pro-pill b { color: var(--ink); font-weight: 500; background: var(--orange-soft); padding: 2px 8px; border-radius: 3px; margin-right: 4px; }

/* Home: the sentence */
#home .wrap { padding-top: clamp(24px, 5vw, 72px); padding-bottom: 24px; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.sentence { margin-top: 16px; font-weight: 700; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.14; letter-spacing: -0.03em; max-width: 21ch; }
.sentence input { font: inherit; color: var(--orange); background: transparent; border: 0; border-bottom: 3px solid var(--orange); padding: 0 2px; letter-spacing: inherit; field-sizing: content; min-width: 1ch; max-width: 6.5ch; width: 3ch; -moz-appearance: textfield; border-radius: 0; }
@supports (field-sizing: content) { .sentence input { width: auto; } }
.sentence input::-webkit-inner-spin-button, .sentence input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sentence input:focus { outline: none; background: var(--orange-soft); }
.sentence .cur { color: var(--orange); }
.sentence .nw { white-space: nowrap; }
.sentence .total { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.25em; letter-spacing: -0.01em; white-space: nowrap; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); margin-top: clamp(32px, 5vw, 64px); padding-top: 24px; border-top: 2px solid var(--ink); }
.lede { color: var(--ink-2); max-width: 48ch; }
.lede strong { color: var(--ink); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.cur-pick { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.cur-pick select { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 6px 8px; }

.lines { list-style: none; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lines li > span:last-child { text-align: right; white-space: nowrap; }
.lines li.inc > span:last-child { color: var(--ink-2); font-family: var(--serif); font-style: italic; font-size: 17px; }
.lines li.disc { color: var(--ink-2); }
.lines li.sum { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-weight: 700; align-items: baseline; }
.lines li.sum > span:last-child { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 34px; line-height: 1; }
.lines li.dep { color: var(--orange-ink); border-bottom: 0; }

/* Buttons */
.btn { font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.small { padding: 7px 14px; font-size: 14px; border-width: 1.5px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.link { background: none; border: 0; padding: 4px 0; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link:hover { color: var(--ink); }
.link.danger:hover { color: var(--danger); }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid transparent; background: none; cursor: pointer; color: var(--ink-2); font-size: 15px; line-height: 1; }
.icon-btn:hover { border-color: var(--line); color: var(--ink); background: var(--surface); }
.icon-btn.del:hover { color: var(--danger); }

/* Home: jobs, how, pro */
.recent { margin-top: clamp(48px, 7vw, 96px); }
.recent h2, .pro h2, .page-title { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; font-weight: 700; }
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.job-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.job-card:hover { background: var(--surface); }
.job-card b { font-size: 17px; letter-spacing: -0.01em; }
.job-card .amt { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1; }
.job-card small { color: var(--ink-2); grid-column: 1 / -1; }
.how { margin-top: clamp(48px, 7vw, 96px); }
.how ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); counter-reset: s; }
.how li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; }
.how li::before { content: "0" counter(s); font-family: var(--serif); font-style: italic; color: var(--orange-ink); font-size: 22px; line-height: 1; }
.how b { font-size: 18px; }
.how span { color: var(--ink-2); }
.pro { margin: clamp(48px, 7vw, 96px) 0 24px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; scroll-margin-top: 80px; }
.pro .eyebrow { color: #b6b4ad; }
.pro h2 { margin-top: 8px; }
.pro p { color: #cfcdc6; max-width: 46ch; margin-top: 10px; }
.signup label[for] { font-size: 13px; color: #b6b4ad; display: block; margin-bottom: 6px; }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-row input { flex: 1 1 220px; min-width: 0; border: 1.5px solid #4a4944; background: #1d1d1b; color: var(--bg); padding: 11px 14px; border-radius: 999px; }
.signup-row input::placeholder { color: #8a8880; }
.signup .btn { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.signup .btn:hover { background: var(--bg); border-color: var(--bg); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: #cfcdc6; line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 2px; accent-color: var(--orange); width: 16px; height: 16px; flex: none; }
.signup-msg { min-height: 1.5em; margin-top: 10px; font-size: 14px; color: var(--bg); }
.signup-msg.err { color: #ffb59a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Footer */
.foot { border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; }

/* Pages drawn by the script */
#view .wrap { padding-top: clamp(20px, 4vw, 48px); padding-bottom: 56px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.muted { color: var(--ink-2); }
.empty { padding: 40px 0; color: var(--ink-2); border-top: 1px solid var(--line); }

/* Job editor */
.job-top { display: grid; gap: 14px; }
.crumbs { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .spacer { flex: 1; }
.title-input { font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.03em; border: 0; border-bottom: 2px solid transparent; background: transparent; width: 100%; padding: 2px 0; line-height: 1.15; }
.title-input:hover { border-color: var(--line); }
.title-input:focus { outline: none; border-color: var(--orange); }
.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tabs { display: flex; gap: 4px; margin-top: 24px; border-bottom: 2px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.tabs a { text-decoration: none; padding: 10px 16px 9px; border-radius: 8px 8px 0 0; color: var(--ink-2); font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); background: var(--tint); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.tabs a .n { font-size: 12px; font-weight: 500; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--ink-2); }
.tabs a[aria-current="page"] .n { background: #2c2c2a; color: var(--bg); }
.editor { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 28px; align-items: start; }
.editor.one { grid-template-columns: minmax(0, 1fr); }
.summary { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(17, 17, 16, .25); }
.summary h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.summary .btn { width: 100%; justify-content: center; margin-top: 18px; }
.summary .hint { font-size: 13px; color: var(--ink-2); margin-top: 10px; text-align: center; }

fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); padding: 0; margin-bottom: 10px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > span { font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea, .row-input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 9px 11px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.field input:hover, .field select:hover, .field textarea:hover, .row-input:hover { border-color: #c4c1b6; }
.field input:focus, .field select:focus, .field textarea:focus, .row-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field input:disabled { background: var(--tint); color: var(--ink-2); }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Time rows: "Shoot  [3] days at [$850]  = $2,550" */
.time-row { display: grid; grid-template-columns: 1.1fr 92px 24px 140px 1fr; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.time-row:first-of-type { border-top: 1px solid var(--line); }
.time-row label { font-weight: 500; }
.time-row label small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12px; }
.time-row .at { color: var(--ink-2); text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; }
.time-row .eq { text-align: right; color: var(--ink-2); white-space: nowrap; }
.money-in { position: relative; }
.money-in .sym { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; font-size: 14px; }
.money-in input { padding-left: calc(14px + var(--sym-w, 1ch)); }
.disc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.disc-row input { width: 64px; }
.disc-row .nw { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }

/* Repeating rows (travel, kit, included, contacts, schedule) */
.rows { display: grid; gap: 8px; }
.r { display: grid; gap: 8px; align-items: center; }
.r.money { grid-template-columns: 1fr 140px 32px; }
.r.text { grid-template-columns: 1fr 32px; }
.r.contact { grid-template-columns: 1fr 1.3fr 1.2fr 32px; }
.r.slot { grid-template-columns: 110px 1fr 32px; }
.add { margin-top: 10px; }

/* Shot list */
.shots { display: grid; gap: 10px; }
.shot { display: grid; grid-template-columns: 28px 1.1fr 2fr 110px 120px 84px 1.3fr 36px 96px; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shot-head { padding: 0 0 6px; border-bottom: 2px solid var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); align-items: end; }
.shot .num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); padding-top: 6px; }
.shot textarea.row-input { resize: vertical; min-height: 40px; height: 40px; line-height: 1.35; }
.shot .got { display: grid; place-items: center; padding-top: 8px; }
.shot .got input { width: 20px; height: 20px; accent-color: var(--orange); }
.shot .tools { display: flex; gap: 0; justify-content: flex-end; }
.shot.done .row-input { color: var(--ink-2); }

/* Locked Pro bits */
.locked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed #c4c1b6; border-radius: var(--r); color: var(--ink-2); font-size: 14px; background: var(--tint); }
.locked b { color: var(--ink); font-weight: 500; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; background: var(--orange-soft); color: var(--orange-ink); padding: 2px 7px; border-radius: 3px; font-weight: 500; white-space: nowrap; }

.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--orange-soft); border-radius: var(--r); padding: 12px 16px; margin-top: 16px; font-size: 14px; }
.banner button { flex: none; }

/* Settings */
.settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.settings section { min-width: 0; }
.settings h2 { font-size: 20px; margin-bottom: 14px; letter-spacing: -0.01em; }
.settings .stack { display: grid; gap: 12px; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Dialog and toast */
dialog { margin: auto; border: 0; border-radius: 14px; padding: 24px; max-width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.3); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(17, 17, 16, .45); }
dialog h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
dialog p { color: var(--ink-2); }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 20; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Phone bar: total and PDF button stay in reach */
.phone-bar { display: none; }

@media (max-width: 1100px) {
  .client-grid { grid-template-columns: 1fr 1fr; }
  .shot { grid-template-columns: 28px 1fr 1fr 36px; grid-template-areas: "n scene scene tools" "n desc desc desc" "n size move lens" "n notes notes got"; }
  .shot > .num { grid-area: n; } .shot > .c-scene { grid-area: scene; } .shot > .c-desc { grid-area: desc; } .shot > .c-size { grid-area: size; }
  .shot > .c-move { grid-area: move; } .shot > .c-lens { grid-area: lens; } .shot > .c-notes { grid-area: notes; } .shot > .got { grid-area: got; } .shot > .tools { grid-area: tools; }
  .shot .tools { flex-direction: row; }
  .shot-head { display: none; }
  .shot { grid-template-columns: 28px 1fr 1fr minmax(96px, 1fr); grid-template-areas: "n scene scene tools" "n desc desc desc" "n size move lens" "n notes notes got"; }
}
@media (max-width: 860px) {
  .split, .pro, .settings { grid-template-columns: 1fr; }
  .how ol { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .summary { position: static; }
  .summary .btn { display: none; }
  .phone-bar { display: flex; position: sticky; bottom: 0; z-index: 4; background: var(--ink); color: var(--bg); padding: 10px var(--gutter); gap: 12px; align-items: center; justify-content: space-between; margin: 24px calc(-1 * var(--gutter)) -56px; }
  .phone-bar b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1; }
  .phone-bar small { display: block; color: #b6b4ad; font-size: 12px; }
  .phone-bar .btn { background: var(--orange); border-color: var(--orange); color: var(--ink); padding: 10px 18px; }
  .time-row { grid-template-columns: 1fr 72px 18px 112px; }
  .time-row .eq { grid-column: 1 / -1; text-align: left; font-size: 13px; margin-top: -4px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nav .pro-pill { display: none; }
  .client-grid, .grid3, .grid2 { grid-template-columns: 1fr; }
  .r.money { grid-template-columns: 1fr 104px 32px; }
  .r.contact { grid-template-columns: 1fr 1fr 32px; }
  .r.contact > :nth-child(3) { grid-column: 1 / 3; }
  .r.contact > :nth-child(4) { grid-row: 1; grid-column: 3; }
  .r.slot { grid-template-columns: 92px 1fr 32px; }
  .shot { grid-template-columns: 24px 1fr 1fr auto; grid-template-areas: "n scene scene tools" "n desc desc desc" "n size move move" "n lens notes got"; }
  .shot .icon-btn { width: 28px; }
  .btn { padding: 11px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot, .tabs, .summary, .phone-bar { display: none; } }
