/*
  ExpenSort site. Concept: the Greek triplicate invoice book (white original, yellow and pink
  carbon copies) and stamp-ink blue. One family: Commissioner (Greek, by Kostas Bartsokas).
*/
:root {
  --paper: #f6f7f4;         /* page */
  --sheet: #ffffff;         /* original */
  --yellow: #f4e9a8;        /* first copy: the accountant's */
  --pink: #f3d6d8;          /* second copy: the business's */
  --ink: #1d2a44;           /* text */
  --ink-soft: #4d5872;
  --stamp: #2b48c9;         /* stamp ink: actions, focus */
  --stamp-deep: #1f379e;
  --rule: #d6dae2;
  --radius-sheet: 3px;
  --radius-control: 6px;
  --measure: 66ch;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--stamp); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { top: 12px; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; max-width: 14ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 52ch; margin-top: 20px; }
.section-lead { color: var(--ink-soft); margin-top: 8px; max-width: var(--measure); }
.fine { font-size: 0.9rem; color: var(--ink-soft); }

/* buttons ---------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius-control);
  background: var(--stamp); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--stamp);
}
.btn:hover { background: var(--stamp-deep); border-color: var(--stamp-deep); }
.btn-quiet { background: transparent; color: var(--stamp); }
.btn-quiet:hover { background: rgba(43, 72, 201, 0.08); border-color: var(--stamp); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.95rem; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--yellow); border-color: var(--yellow); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.85; }

/* header ----------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(246, 247, 244, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; }
.m-white { fill: #fff; stroke: var(--ink); stroke-width: 1.4; }
.m-yellow { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; }
.m-pink { fill: var(--pink); stroke: var(--ink); stroke-width: 1.2; }
.m-lines { stroke: var(--stamp); stroke-width: 1.6; stroke-linecap: round; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.top nav a:hover { color: var(--stamp); }

/* hero: headline, then the real program lying on the carbon copies of the invoice book ------ */
.hero { padding-block: 72px 88px; }
.hero h1 { max-width: 20ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 16px; }
.shot-hero { margin-top: 56px; margin-bottom: 0; }
.stack { position: relative; margin-right: 22px; margin-bottom: 22px; }
.sheet { border-radius: var(--radius-sheet); }
.sheet-pink, .sheet-yellow { position: absolute; inset: 0; border: 1px solid rgba(29, 42, 68, 0.18); }
.sheet-pink { background: var(--pink); transform: translate(22px, 22px) rotate(0.8deg); }
.sheet-yellow { background: var(--yellow); transform: translate(11px, 11px) rotate(0.35deg); }
.shot {
  position: relative; display: block; width: 100%; height: auto; border-radius: var(--radius-sheet);
  border: 1px solid rgba(29, 42, 68, 0.35);
  box-shadow: 0 1px 0 rgba(29, 42, 68, 0.06), 0 24px 48px -28px rgba(29, 42, 68, 0.55);
}
.shot-link { position: relative; display: block; cursor: zoom-in; border-radius: var(--radius-sheet); }
figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 14px; max-width: 70ch; }
.shot-hero figcaption { margin-top: 18px; }

/* lines without a description: the note the accountant must see ---------------------------- */
.notice { padding-block: 0 88px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.notice-text { border-left: 4px solid var(--stamp); padding-left: 24px; }
.notice-text p { margin-top: 14px; max-width: 58ch; }
.notice-text p:first-of-type { margin-top: 16px; }
.notice-shots { display: grid; gap: 28px; }
.notice-shots figure { margin: 0; }

/* two copies: accountant (yellow) and business (pink) ---------------------------------------- */
.copies { padding-block: 24px 88px; }
.copies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.copy { padding: 32px 32px 28px; border-radius: var(--radius-sheet); border: 1px solid rgba(29, 42, 68, 0.16); }
.copy-yellow { background: var(--yellow); }
.copy-pink { background: var(--pink); }
.copy-lead { margin-top: 12px; font-size: 1.05rem; max-width: 54ch; }
.copy ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.copy li { position: relative; padding-left: 24px; max-width: 58ch; }
.copy li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 6px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg);
}

/* steps (a real sequence) ------------------------------------------------------------------- */
.how { padding-block: 24px 88px; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-size: 2.4rem; font-weight: 800; color: var(--stamp); line-height: 1; margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--ink-soft); max-width: 36ch; }

/* facts ----------------------------------------------------------------------------------- */
.facts { padding-block: 0 88px; }
.facts-list { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.facts-list div { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; }
.facts-list dt { font-weight: 700; }
.facts-list dd { margin: 0; color: var(--ink-soft); }

/* pricing --------------------------------------------------------------------------------- */
.pricing { padding-block: 0 88px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; max-width: 860px; }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: var(--radius-sheet); padding: 26px 28px; }
.plan + .plan { border-top-color: var(--stamp); }
.plan-limit { color: var(--ink-soft); margin-top: 4px; }
.price { font-size: 1.5rem; font-weight: 800; margin: 18px 0 10px; letter-spacing: -0.01em; }
.price small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; margin-top: 2px; }
.pricing > .fine { margin-top: 20px; max-width: var(--measure); }

/* faq ------------------------------------------------------------------------------------- */
.faq { padding-block: 0 96px; max-width: 820px; }
.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--stamp); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); max-width: var(--measure); }

/* download -------------------------------------------------------------------------------- */
.download { background: var(--ink); color: #fff; padding-block: 56px; }
.download-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.download p { color: #c9d0e0; margin-top: 8px; }
.download-actions { display: grid; gap: 4px; justify-items: start; }
.download-actions .fine { color: #c9d0e0; }

/* footer ---------------------------------------------------------------------------------- */
.bottom { padding-block: 28px 36px; }
.bottom-row { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; font-size: 0.95rem; }
.bottom-row .fine { flex-basis: 100%; }

/* small screens ---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { padding-block: 44px 64px; }
  .shot-hero { margin-top: 40px; }
  .notice { gap: 28px; }
  .copies-grid, .plans, .steps, .facts-list, .notice { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .top-row { justify-content: space-between; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .copy { padding: 24px 20px; }
  .facts-list div { grid-template-columns: 1fr; gap: 4px; }
  .btn-small { display: none; }
}
