/* House of Cards — grading site. White ground, pastel bands, logo orange for actions. */
:root{
  --bg:#ffffff; --ink:#1b1630; --ink-2:#3d3854; --muted:#686281; --line:#ebe6f5; --line-2:#d6cfea;
  --surface:#f7f5fc; --lavender:#f1edff; --peach:#fff3e3; --sky:#e9f3ff; --peach-line:#ffdcae;
  --orange:#ff9d00; --orange-ink:#b35f00; --on-orange:#1a1200;
  --f-display:"Graduate",Georgia,serif; --f-body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif; --f-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:17px;line-height:1.55}
img{max-width:100%;height:auto;display:block}
a{color:var(--orange-ink)} a:hover{color:#8a4700}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.wrap{max-width:1240px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
@media (min-width:700px){.wrap{padding-left:32px;padding-right:32px}}
h1,h2,h3{font-family:var(--f-display);font-weight:400;text-transform:uppercase;margin:0;text-wrap:balance;line-height:1.05}
h1{font-size:clamp(40px,6vw,68px)} h2{font-size:clamp(28px,3.5vw,40px)} h3{font-size:22px}
p{margin:0}
.eyebrow{font-family:var(--f-mono);font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.lead{font-size:20px;color:var(--ink-2);max-width:34em}
.muted{color:var(--muted)} .small{font-size:14px}
.accent{color:var(--orange-ink)}

/* header */
.site-head{border-bottom:1px solid var(--line);background:var(--bg);position:sticky;top:0;z-index:10}
.site-head .wrap{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
.site-head .logo img{height:56px;width:auto}
.nav{display:flex;gap:28px;margin-left:auto;font-weight:500}
.nav a{color:var(--ink);text-decoration:none}
.nav a[aria-current="page"]{color:var(--orange-ink)}
.head-cta{display:flex;gap:10px;margin-left:auto}
@media (max-width:860px){.nav{display:none}}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 22px;border-radius:999px;font-weight:700;text-decoration:none;border:1px solid transparent;font:inherit;font-weight:700;cursor:pointer}
.btn-primary{background:var(--orange);color:var(--on-orange)} .btn-primary:hover{background:#ffad2e;color:var(--on-orange)}
.btn-ghost{border-color:var(--line-2);color:var(--ink);font-weight:600} .btn-ghost:hover{background:var(--surface);color:var(--ink)}
.btn-lg{padding:15px 26px}

/* sections */
.section{padding-block:88px}
.band-lavender{background:var(--lavender)} .band-peach{background:var(--peach)}
.stack{display:flex;flex-direction:column;gap:16px}
.hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:center;padding-block:80px 64px}
.hero .actions{display:flex;gap:12px;flex-wrap:wrap}
.slab{max-width:440px;margin:0 auto;background:var(--peach);border:1px solid var(--peach-line);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px;transform:rotate(-2deg)}
.slab-label{background:#fff;border:1px solid var(--peach-line);border-radius:6px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--on-orange)}
.slab-label b{font-size:12px;line-height:1.3;text-transform:uppercase}
.slab-grade{text-align:right;font-family:var(--f-display);line-height:1;font-size:30px}
.slab-grade small{display:block;font-family:var(--f-mono);font-size:10px;letter-spacing:.1em;color:#8a5a00}
.slab img{border-radius:6px}
.slab figcaption{font-size:13px;color:var(--muted);text-align:center}
.facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.fact{border-top:2px solid var(--orange);padding-top:14px}
.fact b{display:block;font-family:var(--f-display);font-weight:400;font-size:26px}
.fact span{color:var(--muted)}
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:10px}
.step .n{font-family:var(--f-display);font-size:34px;color:var(--orange-ink)}
.step b{font-size:18px} .step span{color:var(--muted);font-size:15px}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center}
.pregrade{background:var(--sky);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:18px}
.pregrade-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.big-grades{display:flex;gap:18px;font-family:var(--f-display)}
.big-grades div{text-align:center} .big-grades b{display:block;font-weight:400;font-size:40px;line-height:1;color:var(--orange-ink)}
.big-grades span{font-family:var(--f-body);font-size:12px;color:var(--muted)}
.subgrades{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.sg{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 4px;text-align:center}
.sg b{display:block;font-family:var(--f-display);font-weight:400;font-size:24px}
.sg span{font-size:12px;color:var(--muted)}
.tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tier{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;display:flex;flex-direction:column;gap:10px}
.tier.featured{border:2px solid var(--orange)}
.tier .price{font-family:var(--f-display);font-size:42px}
.tier .row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pill{font-size:12px;font-weight:700;color:var(--on-orange);background:var(--orange);padding:3px 10px;border-radius:999px}
.faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 32px}
.faq div{border-top:1px solid var(--line);padding-top:18px}
.faq p{margin-top:6px;color:var(--muted)}
.inc{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.inc div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:6px}
.inc .v{font-family:var(--f-display);font-size:28px;color:var(--orange-ink)}
.table-box{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px}
table.prices{width:100%;border-collapse:collapse;min-width:720px}
table.prices th{text-align:left;font-weight:600;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:14px 16px;border-bottom:1px solid var(--line)}
table.prices td{padding:18px 16px;border-bottom:1px solid var(--line)}
table.prices tr:last-child td{border-bottom:0}
table.prices .num{text-align:right;font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.cols3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
table.example{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
table.example td{padding:8px 0;border-bottom:1px solid var(--line)}
table.example td:last-child{text-align:right;font-family:var(--f-mono)}
table.example tr.total td{font-weight:700;border-bottom:0}
.site-foot{border-top:1px solid var(--line)}
.site-foot .wrap{padding-block:40px;display:flex;gap:24px;flex-wrap:wrap;align-items:center;justify-content:space-between;color:var(--muted);font-size:14px}
.site-foot img{height:48px;width:auto}
.notice{background:var(--peach);border:1px solid var(--peach-line);border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:12px;max-width:640px}

@media (max-width:900px){
  .hero,.two{grid-template-columns:minmax(0,1fr);gap:40px}
  .facts,.steps,.tiers,.faq,.inc,.cols3{grid-template-columns:minmax(0,1fr)}
  .section{padding-block:64px}
  .slab{transform:none}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ---------- app pages (login, account, admin) ---------- */
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;font-weight:600;z-index:50}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field>span{font-size:14px;color:var(--ink-2)}
.field input,.field select,.field textarea{font:inherit;color:var(--ink);background:#fff;border:1px solid var(--line-2);border-radius:10px;padding:11px 13px;min-height:46px;width:100%}
.field textarea{min-height:80px;resize:vertical}
.field input:disabled,.field select:disabled{background:var(--surface);color:var(--muted)}
.check{flex-direction:row;align-items:center;gap:10px;min-height:46px}
.check input{width:20px;height:20px;min-height:0;accent-color:var(--orange)}
.card-box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:16px}
.card-box.soft{background:var(--surface)}
.card-box.cart{border:2px solid var(--orange)}
.app-cols{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.app-main{flex:999 1 620px;min-width:0;display:flex;flex-direction:column;gap:20px}
.app-side{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:20px}
.big-status{font-family:var(--f-display);font-size:clamp(26px,3vw,34px);line-height:1.1;text-transform:uppercase}
.progress{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.progress li{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted)}
.progress .bar{height:6px;border-radius:3px;background:var(--line)}
.progress li.done .bar,.progress li.now .bar{background:var(--orange)}
.progress li.now .bar{box-shadow:0 0 0 3px rgba(255,157,0,.25)}
.progress li.done b,.progress li.now b{color:var(--ink)}
.progress li.now b{color:var(--orange-ink)}
.progress .d{font-family:var(--f-mono);font-size:11px}
@media (max-width:760px){
  .progress{grid-template-columns:minmax(0,1fr);gap:0}
  .progress li{display:grid;grid-template-columns:18px 1fr auto;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
  .progress li:first-child{border-top:0}
  .progress .bar{width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid var(--line-2)}
  .progress li.done .bar{background:var(--orange);border-color:var(--orange)}
  .progress li.now .bar{background:#fff;border-color:var(--orange)}
}
.item{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px}
@media (max-width:860px){.item{grid-template-columns:minmax(0,1fr)}}
.photo-well{background:var(--surface);border-radius:12px;padding:12px;display:grid;place-items:center;min-height:180px}
.photo-well img{border-radius:6px;max-height:560px;width:auto}
.photo-ph{color:var(--muted);font-size:14px}
.seg{display:flex;gap:8px}
.seg button{font:inherit;font-size:14px;border-radius:999px;padding:8px 14px;border:1px solid var(--line-2);background:#fff;color:var(--ink);cursor:pointer;min-height:40px}
.seg button[aria-pressed="true"]{background:var(--orange);border-color:var(--orange);color:var(--on-orange);font-weight:700}
.est{display:flex;gap:28px;align-items:end}
.est b{display:block;font-family:var(--f-display);font-weight:400;font-size:44px;line-height:1;color:var(--orange-ink)}
.est small{font-family:var(--f-mono);font-size:11px;letter-spacing:.1em;color:var(--muted)}
.choose{border-top:1px solid var(--line);padding-top:20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;align-items:end}
.choose .full{grid-column:1/-1}
.sumrow{display:flex;justify-content:space-between;gap:12px;font-variant-numeric:tabular-nums}
.sumrow span:last-child{font-family:var(--f-mono)}
.warn{color:#9a4d00;font-size:14px}
.chip{display:inline-block;padding:5px 12px;border:1px solid var(--line-2);border-radius:999px;font-size:14px}
.chip.ok{border-color:#1f7a45;color:#1f7a45}
.timeline{list-style:none;margin:0;padding:0}
.timeline li{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.timeline li:first-child{border-top:0}
/* admin */
.tabs{display:flex;gap:6px;flex-wrap:wrap}
.tabs button{font:inherit;font-weight:600;border:1px solid var(--line-2);background:#fff;border-radius:999px;padding:9px 16px;cursor:pointer;color:var(--ink)}
.tabs button[aria-current="page"]{background:var(--orange);border-color:var(--orange);color:var(--on-orange)}
.rows{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.rowi{display:grid;grid-template-columns:64px minmax(0,2.2fr) minmax(0,1.2fr) 90px minmax(0,1.3fr) 120px;gap:14px;align-items:center;padding:10px 14px;border:0;border-top:1px solid var(--line);background:#fff;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
.rowi:first-child{border-top:0}
.rowi:hover{background:var(--surface)}
.rowi.head{cursor:default;background:var(--surface);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.rowi .t{font-weight:600;min-width:0}
.rowi .t small{display:block;font-weight:400;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thumb{width:64px;height:46px;object-fit:cover;border-radius:4px;background:var(--surface);border:1px solid var(--line)}
@media (max-width:760px){.rowi{grid-template-columns:64px minmax(0,1fr) auto}.rowi .hide-sm,.rowi.head{display:none}}
.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.bar-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.bar-row .grow{flex:1}
.empty{border:1px dashed var(--line-2);border-radius:14px;padding:40px 16px;text-align:center;color:var(--muted)}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.sheet{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:900px){.sheet{grid-template-columns:minmax(0,1fr)}}
.upload{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line-2);border-radius:999px;padding:8px 14px;font-weight:600;font-size:14px;cursor:pointer;background:#fff}
.upload input{position:absolute;width:1px;height:1px;opacity:0}
dialog{border:1px solid var(--line);border-radius:16px;max-width:min(560px,calc(100vw - 32px));width:100%;padding:24px}
dialog::backdrop{background:rgb(27 22 48 / .35)}

/* ---------- photo marks ---------- */
.mark-stage{position:relative;display:inline-block;max-width:100%;line-height:0;touch-action:none}
.mark-stage img{max-height:520px;width:auto;max-width:100%;border-radius:6px;user-select:none;-webkit-user-drag:none}
.mark-stage svg.marks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.mark-stage.drawing{cursor:crosshair}
.marks-key{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14px}
.marks-key li{display:flex;gap:10px;align-items:flex-start}
.mk-n{flex:none;width:22px;height:22px;border-radius:50%;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}
.toolrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.toolrow .lbl{font-size:13px;color:var(--muted);margin-right:2px}
.tbtn{font:inherit;font-size:14px;border:1px solid var(--line-2);background:#fff;color:var(--ink);border-radius:999px;padding:7px 13px;cursor:pointer;min-height:38px;display:inline-flex;align-items:center;gap:6px}
.tbtn[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.tbtn .dot{width:10px;height:10px;border-radius:50%}
.mark-list{display:flex;flex-direction:column;gap:8px}
.mark-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px 10px;align-items:center}
.mark-row input{grid-column:2/-1;grid-row:2}
.mark-row .linkbtn{grid-column:3;grid-row:1}
.mark-row select,.mark-row input{font:inherit;font-size:14px;border:1px solid var(--line-2);border-radius:8px;padding:7px 9px;min-height:38px;width:100%;background:#fff;color:var(--ink)}
.linkbtn{font:inherit;font-size:14px;background:none;border:0;color:var(--orange-ink);cursor:pointer;padding:6px;text-decoration:underline}

/* ---------- admin layout ---------- */
.subtabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow-x:auto}
.subtabs button{font:inherit;font-weight:600;font-size:15px;background:none;border:0;border-bottom:3px solid transparent;padding:10px 14px;color:var(--muted);cursor:pointer;white-space:nowrap}
.subtabs button[aria-current="true"]{color:var(--ink);border-bottom-color:var(--orange)}
.savebar{position:sticky;bottom:0;z-index:5;background:rgba(255,255,255,.96);border-top:1px solid var(--line);padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px));margin-top:20px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.filters input,.filters select{font:inherit;border:1px solid var(--line-2);border-radius:999px;padding:9px 14px;min-height:42px;background:#fff;color:var(--ink)}
.filters input{flex:1 1 220px}
.pool{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.pool label{display:grid;grid-template-columns:24px 56px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 14px;border-top:1px solid var(--line);cursor:pointer}
.pool label:first-child{border-top:0}
.pool label:hover{background:var(--surface)}
.pool input{width:20px;height:20px;accent-color:var(--orange)}
.pool .thumb{width:56px;height:40px}
.kv{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.kv div{display:flex;flex-direction:column;gap:2px}
.kv span{font-size:13px;color:var(--muted)}
.gradepick{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.gradepick .field select{font-family:var(--f-display);font-size:20px;text-align:center}
.steps-mini{display:flex;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--muted)}
.steps-mini b{color:var(--ink)}

/* ---------- customer card grid ---------- */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.tile{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;text-align:left;font:inherit;color:inherit;cursor:pointer}
.tile:hover{border-color:var(--line-2);box-shadow:0 4px 14px rgb(27 22 48 / .06)}
.tile[aria-pressed="true"]{border:2px solid var(--orange);padding:9px}
.tile .tw{aspect-ratio:7/5;background:var(--surface);border-radius:8px;display:grid;place-items:center;overflow:hidden}
.tile .tw img{width:100%;height:100%;object-fit:contain}
.tile b{font-size:15px;line-height:1.25}
.tile .meta{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.tile .g{font-family:var(--f-display);font-size:18px;color:var(--orange-ink)}
.group-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin:8px 0 12px}
.mark-row.sel{background:var(--surface);border-radius:10px;outline:2px solid var(--ink);outline-offset:2px}
.btn:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.3)}
/* stage flow (admin) */
.flow{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.flow li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:center;padding:5px 0;font-size:14px;color:var(--muted);position:relative}
.flow .fdot{width:18px;height:18px;border-radius:50%;border:2px solid var(--line-2);background:#fff;display:grid;place-items:center;font-size:11px;font-weight:800;color:var(--on-orange)}
.flow li.done .fdot{background:var(--orange);border-color:var(--orange)}
.flow li.done{color:var(--ink-2)}
.flow li.now{color:var(--ink);font-weight:700}
.flow li.now .fdot{border-color:var(--orange);box-shadow:0 0 0 4px rgba(255,157,0,.22)}
.flow .fd{font-size:12px;color:var(--muted);font-weight:400}
.small-date{max-width:180px}
.small-date input{min-height:38px;padding:7px 10px;font-size:14px}
.override{border-top:1px solid var(--line);padding-top:10px}
.override summary{cursor:pointer;font-size:14px;color:var(--muted);font-weight:600}
.override[open]{display:flex;flex-direction:column;gap:10px}

/* Legal pages */
.legal{max-width:760px;padding-block:64px 96px}
.legal h1{font-size:40px;margin:8px 0 12px}
.legal h2{font-size:22px;margin:36px 0 8px}
.legal p,.legal li{color:var(--ink-2);line-height:1.65}
.legal ul{padding-left:20px;display:flex;flex-direction:column;gap:6px}

.pregrade-fee{margin:0;padding-top:14px;border-top:1px solid rgba(0,0,0,.08);font-size:14px;color:var(--ink-2)}
.tier .breakdown{display:flex;flex-direction:column;gap:6px;margin:6px 0 4px}
.tier .breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;color:var(--ink-2);font-family:var(--f-mono);font-size:15px}
.tier .breakdown>div span:first-child{font-family:var(--f-body)}
.tier .breakdown .total{border-top:1px solid var(--line);padding-top:10px;margin-top:4px;color:var(--ink)}
.tier .breakdown .total span:first-child{font-weight:700}
.tier .breakdown .total .price{font-size:34px}
.table-cap{font-size:20px;margin-top:8px}

/* Staff "view as customer" preview */
.preview-bar{position:sticky;top:8px;z-index:20;display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 18px;justify-content:space-between;background:var(--lavender);border:2px dashed #ff9d00;border-radius:14px;padding:12px 16px;margin-bottom:24px;box-shadow:0 6px 20px rgb(27 22 48 / .08)}
.preview-bar select{min-width:230px}
