﻿/* Fresh Mint Fintech: white and mint, soft rounded cards, green accent, amber for things to check */
:root { color-scheme: light; --bg: #ffffff; --card: #f1faf6; --text: #0f2a20; --muted: #5d7a6c; --line: #d4ece1; --accent: #0b7a54; --accent-text: #ffffff; --accent-dark: #075a3e; --warn: #fdf0d5; --bad: #c62828; --amber: #f5a524; --shadow: 0 4px 14px rgba(11, 122, 84, .10);
  --mono: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(1200px 500px at 50% -10%, rgba(11, 122, 84, .07), transparent 60%), var(--bg); color: var(--text); font: 15px/1.5 var(--mono); }
main { max-width: 1400px; margin: 0 auto; padding: 24px 16px 48px; }

/* the three simple steps, and the upload area: side by side on a computer, stacked on a phone */
.steps { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 14px 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: .85rem; }
.setup { display: grid; gap: 16px; }
.setup .side label { display: block; margin: 0 0 6px; color: var(--muted); }
.setup .side select { width: 100%; }
.setup .side > div { margin-top: 14px; }
.setup .wide { margin: 0; }
.dropzone { min-width: 0; }
.setup .wide:empty { display: none; }
/* "My own columns": a roomy box to type in, and a wider left side on a computer */
.resume { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px solid var(--accent); border-radius: 6px; padding: 12px 16px; margin: 16px 0; background: var(--card); box-shadow: var(--shadow); }
.resume span { flex: 1 1 260px; }
label.nodraft { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; cursor: pointer; }
/* the list of chosen files, each with a remove button, and the "Read" button */
.picked { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.picked li { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px 6px 12px; }
.picked .pn { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.picked .ps { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.splitrow { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px dashed #9fd3bd; border-radius: 12px; color: var(--muted); font-size: .9rem; cursor: pointer; }
.splitrow input { margin-top: 3px; accent-color: var(--accent); }
.readrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
button:disabled { opacity: .55; cursor: wait; }
.tryline { margin: 0 0 8px; }
.tplchip { display: inline-flex; align-items: stretch; }
.tplchip .chip:first-child { border-radius: 999px 0 0 999px; border-color: var(--accent); color: var(--accent); }
.tplchip .tplx { border-radius: 0 999px 999px 0; border-left: 0; border-color: var(--accent); color: var(--muted); padding: 5px 9px; }
button.small { padding: 7px 12px; font-size: .85rem; margin-top: 4px; }
#reportName { width: 100%; padding: 10px 12px; margin: 6px 0 0; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
#reportName:focus { outline: none; border-color: var(--accent); }
label.rname { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--muted); font-size: .85rem; }
label.rname input { flex: 0 1 380px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; }
label.rname input:focus { outline: none; border-color: var(--accent); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
button.chip { background: #fff; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 600; box-shadow: none; }
button.chip:hover { background: #e3f5ec; filter: none; }
button.chip:active { transform: none; box-shadow: none; }
#customFields { min-height: 170px; padding: 12px 14px; font-size: 1.05rem; line-height: 1.6; border: 1px solid var(--accent); border-radius: 12px; resize: vertical; }
#customFields:focus { outline: none; box-shadow: 0 0 0 3px rgba(11, 122, 84, .18); }
#customFields::placeholder { color: #8aa598; }
@media (min-width: 900px) { .setup.is-custom { grid-template-columns: minmax(420px, 560px) 1fr; } }
@media (min-width: 900px) {
  body { font-size: 16px; }
  .setup { grid-template-columns: minmax(280px, 360px) 1fr; align-items: stretch; gap: 20px; }
  .setup .wide { grid-column: 1 / -1; }
  .dropzone { display: flex; flex-direction: column; gap: 12px; }
  .dropzone .drop { flex: 1; }
  .drop { display: flex; flex-direction: column; justify-content: center; min-height: 190px; font-size: 1.05rem; }
}

/* 3D text: stacked shadows build a solid extrusion behind the letters */
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 6px; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.group h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 12px; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.group h2 small { margin-left: 12px; font-size: .8rem; font-weight: 400; color: var(--muted); text-shadow: none; white-space: nowrap; }
.stat b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.done b { display: block; font-size: 1.15rem; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.lead, .note { color: var(--muted); }

/* cards and tiles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 16px 0; box-shadow: var(--shadow); }
.drop { display: block; background: #fff; border: 2px dashed #9fd3bd; border-radius: 14px; padding: 28px 12px; text-align: center; cursor: pointer; }
.drop span { display: block; color: var(--muted); font-size: .9rem; }
.drop.over, .drop:hover { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11, 122, 84, .12); }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
input[type=file]:focus + * , .drop:focus-within { outline: 2px solid var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
input[type=password], select, textarea { padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; }
input[type=password] { flex: 1 1 160px; }
select, textarea { width: 100%; }
select { flex: 1 1 200px; width: auto; }
textarea { margin: 6px 0 12px; resize: vertical; }
.hint { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.note { font-size: .85rem; margin-top: 24px; }
#status { min-height: 1.5em; margin: 12px 0 0; }
#status.error { color: var(--bad); }

/* raised 3D buttons that press down when clicked */
button { background: var(--accent); color: var(--accent-text); border: 0; border-radius: 6px; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(11, 122, 84, .28); transition: transform .08s, box-shadow .08s, filter .15s; }
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(11, 122, 84, .3); }
/* login: the top bar, the sign-up / log-in card, and what a person who is not logged in does not see */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.who a { font-weight: 700; }
/* the purple "Upgrade" and "See the plans" buttons: the same size and shape as the small Log out button */
.btnup { display: inline-block; background: #7c3aed; color: #fff; border: 1px solid #7c3aed; border-radius: 6px; padding: 7px 12px; font: inherit; font-size: .85rem; font-weight: 700; line-height: 1.5; text-decoration: none; box-shadow: 0 2px 6px rgba(124, 58, 237, .28); cursor: pointer; }
.btnup:hover { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.btnup:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.warnings li:has(> .btnup) { list-style: none; margin-top: 6px; }
.authcard { max-width: 460px; margin: 24px auto; }
.authcard h2 { margin: 0 0 6px; }
.authcard label { display: block; margin: 14px 0 6px; font-weight: 600; }
.authcard input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
.authcard input:focus { outline: none; border-color: var(--accent); }
.hint.err { color: var(--bad); min-height: 1.2em; }
#authMsg:not(.err):not(:empty) { color: #0f7a4f; background: #e8f6ee; border: 1px solid #b9e2cb; border-radius: 8px; padding: 10px 12px; font-size: .95rem; font-weight: 600; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 14px; padding: 11px 14px; border: 1px solid #dadce0; border-radius: 10px; background: #fff; color: #3c4043; font-weight: 600; text-decoration: none; }
.gbtn:hover { background: #f8f9fa; border-color: #c6c9cc; }
.or { text-align: center; color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.pwrap { position: relative; }
.pwrap input { padding-right: 48px; }
.pwrap .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; box-shadow: none; color: var(--muted); border-radius: 8px; }
.pwrap .eye:hover { color: var(--accent); background: var(--card); filter: none; }
.pwrap .eye:focus-visible { outline: 2px solid var(--accent); }
.authcard label.optin { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .88rem; margin: 6px 0 4px; cursor: pointer; }
.authcard label.optin input { width: auto; margin-top: 3px; accent-color: var(--accent); }
body.guest .steps, body.guest #setup, body.guest #resume, body.guest #results, body.guest #cost, body.guest .note.tool { display: none; }
/* the tick beside a detail that has its own note ("I checked this one"), and one note per line */
.cellrow { display: flex; align-items: center; gap: 6px; }
.cellrow > :first-child { flex: 1 1 auto; min-width: 0; }
.fieldok { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.fieldok input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.fieldok.todo { background: var(--warn); box-shadow: 0 0 0 2px var(--amber); }
td.check { white-space: pre-line; }
/* the guided tour: the page dims, one section is lit, and a card with an arrow explains it */
.tour { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.tour-spot { position: fixed; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(15, 42, 32, .62), 0 0 0 3px #fff, 0 0 0 6px var(--accent), 0 0 22px 6px rgba(11, 122, 84, .55); }
.tour-card { position: fixed; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 50px rgba(15, 42, 32, .4); padding: 16px 18px 12px; pointer-events: auto; }
.tour-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tour-card p { margin: 0; }
.tour-step { margin: 0 0 4px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tour-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.tour-skip { margin-top: 8px; text-align: right; }
.tour-arrow { position: absolute; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }
.tour-arrow.up { top: -9px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.tour-arrow.down { bottom: -9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* the review pop-up: gold stars, one box for what they like and one for what they do not */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(15, 42, 32, .55); }
.sheet { position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(15, 42, 32, .35); padding: 24px 22px; }
.sheet h2 { margin: 0 28px 6px 0; font-size: 1.3rem; }
.sheet label { display: block; margin: 14px 0 6px; font-weight: 600; }
.sheet textarea { width: 100%; min-height: 150px; line-height: 1.5; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--text); background: #fff; resize: vertical; }
.sheet textarea:focus { outline: none; border-color: var(--accent); }
.hint.nomt { margin-top: 0; }
.mx { position: absolute; top: 10px; right: 12px; background: none; border: 0; box-shadow: none; color: var(--muted); font-size: 1.6rem; line-height: 1; padding: 4px 8px; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 16px 0 2px; }
.stars button { background: none; border: 0; box-shadow: none; padding: 0 2px; font-size: 2.7rem; line-height: 1; color: #d6d6d6; transition: transform .12s, color .12s; }
.stars button.on { color: #f5b301; text-shadow: 0 1px 0 #c98f00; }
.stars button:hover { transform: scale(1.14); }
.starword { text-align: center; color: var(--muted); margin: 0 0 4px; min-height: 1.5em; }
.linkbtn { background: none; border: 0; box-shadow: none; color: var(--muted); padding: 0; font-weight: 400; font-size: .85rem; text-decoration: underline; }
button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }
button.x { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 2px 9px; font-size: 1.1rem; line-height: 1.2; box-shadow: none; font-weight: 400; }
button.x:hover { color: var(--bad); border-color: var(--bad); filter: none; }
button.x:active { transform: none; }

/* results */
.group { position: relative; margin: 24px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: .8rem; }
.warnings { list-style: none; padding: 0; margin: 0 0 12px; }
.warnings li { background: var(--warn); border-left: 3px solid var(--amber); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.group .hint { margin: 0 0 12px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; background: var(--card); color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.flag td { background: var(--warn); }
td input[type=text], td input[type=number], td input[type=date] { width: 100%; min-width: 96px; padding: 5px 6px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--text); font: inherit; }
td input[type=number] { text-align: right; min-width: 84px; }
td input[type=date] { min-width: 132px; }
td.desc input { min-width: 240px; }
td input:hover { border-color: var(--line); }
td input:focus { border-color: var(--accent); background: var(--bg); outline: none; }
td input.edited { background: rgba(11, 122, 84, .12); }
td.check { min-width: 180px; font-size: .82rem; color: #8a5a00; }
td.file { font-size: .8rem; color: var(--muted); }
td input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
details { margin-top: 12px; }
summary { cursor: pointer; margin-bottom: 8px; }

/* the reward when everything is checked */
.confetti { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 5; }
.done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--accent); border-radius: 16px; padding: 12px 16px; margin: 0 0 12px; box-shadow: 0 0 0 4px rgba(11, 122, 84, .10), var(--shadow); animation: donePop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.done svg { width: 46px; height: 46px; flex: none; }
.done .ring, .done .tick { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140; stroke-dashoffset: 140; animation: doneDraw .6s .1s ease-out forwards; }
.done .tick { stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation-delay: .55s; animation-duration: .4s; }
.done div { flex: 1 1 200px; }
.done select.acct { flex: 0 0 auto; width: auto; padding: 10px 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); background: var(--bg); border-radius: 10px; }
.todl { border: 1px dashed #9fd3bd; border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.done .btns { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.done span { color: var(--muted); font-size: .9rem; }
.done.still, .done.still .ring, .done.still .tick { animation: none; stroke-dashoffset: 0; }
@keyframes doneDraw { to { stroke-dashoffset: 0; } }
@keyframes donePop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .done, .done .ring, .done .tick { animation: none; stroke-dashoffset: 0; } button { transition: none; } }

/* neat centred table: every column is centred, and long text wraps so the row grows taller instead of spilling into the next column */
th, td { text-align: center; vertical-align: middle; }
.num { text-align: center; }
td input[type=text], td input[type=date], td textarea { width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--text); font: inherit; text-align: center; }
td textarea { display: block; resize: none; overflow: hidden; line-height: 1.4; min-height: 34px; margin: 0; word-break: break-word; }
td input[type=text]:hover, td input[type=date]:hover, td textarea:hover { border-color: var(--line); }
td input[type=text]:focus, td input[type=date]:focus, td textarea:focus { border-color: var(--accent); background: var(--bg); outline: none; }
td input.edited, td textarea.edited { background: rgba(11, 122, 84, .12); }
td.c-num input { font-variant-numeric: tabular-nums; font-weight: 600; }
.c-date { min-width: 145px; } .c-time { min-width: 100px; } .c-desc { min-width: 250px; } .c-num { min-width: 120px; } .c-text { min-width: 140px; } .c-check { min-width: 170px; }
td.file, td.check { word-break: break-word; }

/* the document type menu: each choice has its own colour, bank statement pops in bright emerald */
#docType { font-weight: 700; color: var(--text); }
#docType option { background: #fff; color: var(--text); font-weight: 700; }
#docType option[value=invoice], #docType[data-v=invoice] { color: #1f6feb; }
#docType option[value=receipt], #docType[data-v=receipt] { color: #b86e00; }
#docType option[value=bank_statement], #docType[data-v=bank_statement] { color: #0b7a54; }
#docType option[value=cv], #docType[data-v=cv] { color: #6d4fd6; }
#docType option[value=photo], #docType[data-v=photo] { color: #0e8a96; }
#docType[data-v=photo] { border-color: #0e8a96; }
#docType option[value=custom], #docType[data-v=custom] { color: #c2185b; }
#docType[data-v=invoice] { border-color: #1f6feb; } #docType[data-v=receipt] { border-color: #b86e00; } #docType[data-v=cv] { border-color: #6d4fd6; } #docType[data-v=custom] { border-color: #c2185b; }
#docType[data-v=bank_statement] { border-color: #0b7a54; }
