/* Student website */
:root {
  --brand: #0f766e;
  --brand-2: #14b8a6;
  --brand-ink: #ffffff;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #182033;
  --muted: #5b6477;
  --border: #e1e5ee;
  --danger: #c62828;
  --ok: #15803d;
  --warn: #b45309;
  --colour: #7c3aed;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* e.g. the menu before login; display:flex rules would override it */
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Nirmala UI", sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--brand); }
button, input, textarea { font: inherit; color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-size: 16px; }
.top nav { display: flex; gap: 4px; align-items: center; }
.top nav a, .top nav button { text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-size: 15px; }
.top nav a.active { background: var(--bg); font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 10px; padding: 11px 18px; font-weight: 650; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.big { font-size: 17px; padding: 14px 24px; }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.btn.link { border: 0; background: none; color: var(--danger); padding: 4px 6px; min-height: 0; }
.btn:disabled { opacity: .55; cursor: default; }

/* landing */
.hero { background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%); color: #fff; padding: 48px 0 56px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
.hero p { font-size: 18px; max-width: 620px; margin: 0 0 24px; opacity: .95; }
.hero .btn.primary { background: #fff; color: var(--brand); border-color: #fff; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 4px 12px; border-radius: 999px; font-size: 14px; }
section.block { padding: 40px 0 8px; }
section.block h2 { font-size: 26px; margin: 0 0 18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.step b { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 4px; }
.step b em { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.price-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table.prices { border-collapse: collapse; width: 100%; min-width: 520px; }
.prices th, .prices td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.prices thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfd; }
.prices tbody th { text-align: left; white-space: nowrap; }
.prices td { font-size: 20px; font-weight: 750; }
.prices td.c { color: var(--colour); }
.fine { color: var(--muted); font-size: 14px; margin: 10px 2px 0; }
.wa-box { display: flex; gap: 16px; align-items: center; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 16px 18px; margin: 28px 0 8px; }
.wa-box b { display: block; }
footer.foot { color: var(--muted); font-size: 14px; padding: 36px 0 40px; text-align: center; }
.logo-img { height: 34px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.site-foot { background: #0f1b2d; color: #c5cede; margin-top: 40px; font-size: 14px; }
.site-foot a { color: #e6ebf3; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; padding-top: 28px; padding-bottom: 18px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 520px; }
.foot-brand b { color: #fff; font-size: 16px; }
.foot-logo { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; flex: none; }
.foot-address { margin-top: 4px; line-height: 1.5; }
.foot-contact { margin-top: 6px; }
.foot-contact .sep { margin: 0 8px; opacity: .5; }
.foot-gst { margin-top: 4px; opacity: .8; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-copy { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; padding-bottom: 18px; font-size: 13px; opacity: .75; }
.app-page .site-foot { margin-bottom: 76px; } /* room for the fixed order total bar */
.staff-link { display: block; text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
/* policy pages */
.legal { max-width: 820px; margin: 0 auto; padding: 28px 16px 10px; }
.legal h1 { font-size: 28px; margin: 0 0 4px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.legal h2 { font-size: 19px; margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal .tabs-legal { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.legal .tabs-legal a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); background: var(--surface); font-size: 14px; }
.legal .tabs-legal a.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* app */
main.app { padding: 20px 0 120px; }
.view[hidden] { display: none !important; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.auth { max-width: 420px; margin: 24px auto; }
.auth h1 { font-size: 24px; margin: 0 0 6px; }
.auth p { color: var(--muted); margin: 0 0 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.field input, .field textarea { font-size: 17px; color: var(--text); padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; width: 100%; }
.phone { display: flex; align-items: stretch; }
.phone span { padding: 12px 12px; border: 1px solid var(--border); border-right: 0; border-radius: 10px 0 0 10px; background: #f3f4f8; color: var(--text); font-size: 17px; }
.phone input { border-radius: 0 10px 10px 0; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.drop { display: block; border: 2px dashed #b8c2d6; border-radius: var(--radius); background: var(--surface); padding: 28px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: #f0fdfa; }
.drop b { display: block; font-size: 18px; margin-bottom: 4px; }
.drop span { color: var(--muted); font-size: 14px; }
.items { display: grid; gap: 14px; margin-top: 16px; }
.item .head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.item .name { font-weight: 700; word-break: break-word; flex: 1; }
.item .name small { display: block; font-weight: 500; color: var(--muted); }
.progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress div { height: 100%; background: var(--brand); width: 0; transition: width .2s; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 18px; }
.opt label.t { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 9px 14px; cursor: pointer; font-size: 15px; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--brand); color: #fff; font-weight: 650; }
.seg button.on.c { background: var(--colour); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 42px; height: 40px; border: 0; background: #f3f4f8; font-size: 20px; cursor: pointer; }
.stepper input { width: 60px; height: 40px; border: 0; text-align: center; font-size: 17px; font-weight: 650; }
.sub { margin-top: 8px; }
.sub input { width: 100%; font-size: 15px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; }
.price-line { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-line .amt { font-size: 22px; font-weight: 800; }
.price-line .calc { color: var(--muted); font-size: 14px; }
.price-line .bad { color: var(--danger); font-size: 14px; }
.note-box { margin-top: 16px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(16,24,40,.08); z-index: 30; }
.bar .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.bar .total { margin-right: auto; }
.bar .total b { display: block; font-size: 24px; line-height: 1.1; }
.bar .total span { color: var(--muted); font-size: 13px; }
.done { text-align: center; max-width: 520px; margin: 24px auto; }
.done .big-tick { font-size: 54px; }
.done h1 { margin: 6px 0; }
.pay-box { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 14px; margin: 18px 0; font-size: 17px; }
.orders { display: grid; gap: 12px; }
.order { display: grid; gap: 4px; }
.order .row1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.order .row1 b { word-break: break-word; }
.order .meta { color: var(--muted); font-size: 14px; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; white-space: nowrap; }
.chip.DONE { background: #dcfce7; color: var(--ok); }
.chip.PRINTING { background: #ccfbf1; color: #0f766e; }
.chip.CANCELLED, .chip.EXPIRED { background: #f1f5f9; color: #64748b; }
.chip.REJECTED { background: #fee2e2; color: var(--danger); }
.empty-state { color: var(--muted); text-align: center; padding: 30px 10px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.toast.error { background: var(--danger); }
.top nav a, .top nav button { white-space: nowrap; }
@media (max-width: 560px) {
  .hero { padding: 34px 0 40px; }
  .top .wrap { gap: 6px; }
  .top nav a, .top nav button { padding: 7px 7px; font-size: 14px; }
  .top nav a.hide-sm { display: none; }
  .wa-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .logo span { display: none; } /* icon only, so the menu fits on one line */
}
