/* Invoice Cycle Tracker — "Pearaamat" (ledger book): ruled sage paper, aubergine ink, plum, marigold stamps. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/sora-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/sora-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #eef1e6;
  --card: #fbfcf7;
  --sunk: #e1e6d6;
  --ruling: #dce2cf;
  --line: #cdd4bf;
  --ink: #2a1d2e;
  --soft: #5c5361;
  --plum: #6b2d5c;
  --plum-dark: #4f1f44;
  --plum-tint: #eedce8;
  --marigold: #e3a33a;
  --stamp: #9a640c;
  --late: #b42318;
  --ok: #2e6e45;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --text: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1120px;
  --ruled: repeating-linear-gradient(180deg, transparent 0 31px, var(--ruling) 31px 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--plum);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--plum-dark);
}

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 780px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.kicker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 14px;
}

.plum {
  color: var(--plum);
}

.muted {
  color: var(--soft);
  font-size: 0.95rem;
}

/* The accountant's double rule under a total. */
.double-rule {
  height: 12px;
  width: min(240px, 60%);
  border-top: 4px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  margin: 22px 0 26px;
  position: relative;
}

.double-rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 44px;
  height: 10px;
  background: var(--plum);
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.nav {
  list-style: none;
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--plum);
}

/* Hero */
.hero {
  background-image: var(--ruled);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
  padding-top: 64px;
}

.hero-text {
  padding-bottom: 64px;
  border-left: 3px solid rgba(107, 45, 92, 0.55);
  padding-left: 28px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  hyphens: manual;
}

.hero h1 span {
  display: block;
}

.lead {
  font-size: 1.18rem;
  color: var(--ink);
  max-width: 40em;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 28px 0 30px;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link.light {
  color: #f1d9a8;
}

.stamps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.stamps li {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  outline: 1px solid var(--stamp);
  outline-offset: -6px;
  padding: 7px 13px;
  border-radius: 5px;
}

.stamps li:nth-child(odd) {
  transform: rotate(-2deg);
}

.stamps li:nth-child(even) {
  transform: rotate(1.5deg);
}

.hero-shot {
  position: relative;
  justify-self: center;
  width: min(380px, 100%);
}

.stamp-mark {
  position: absolute;
  top: -18px;
  right: -10px;
  z-index: 2;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp);
  background: rgba(238, 241, 230, 0.92);
  border: 2.5px solid var(--stamp);
  padding: 6px 12px;
  border-radius: 6px;
  transform: rotate(-8deg);
}

/* Screenshots: flat cards with a thin ink border, cut at the bottom in the hero. */
.shot {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  width: min(360px, 100%);
}

.shot-hero {
  width: 100%;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  margin-bottom: -4px;
}

/* Cycle of an invoice as a ledger line */
.cycle {
  padding: 72px 0 40px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 4px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.ledger li {
  padding: 20px 18px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ledger li:last-child {
  border-right: 0;
}

.ledger-no {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--plum);
  font-size: 0.9rem;
}

.ledger-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.ledger-text {
  color: var(--soft);
  font-size: 0.98rem;
}

/* Tools */
.tools {
  padding: 48px 0 24px;
}

.tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 56px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.tool:last-child {
  border-bottom: 0;
}

.tool-flip .tool-text {
  order: 2;
}

.tool-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.tool-no {
  display: inline-block;
  min-width: 2.4em;
  padding: 2px 8px;
  border: 1.5px solid var(--plum);
  border-radius: 4px;
  text-align: center;
}

.tool h3 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  margin-bottom: 14px;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 14px;
  height: 7px;
  border-left: 2.5px solid var(--plum);
  border-bottom: 2.5px solid var(--plum);
  transform: rotate(-45deg);
}

/* More: a ledger summary table */
.more {
  padding: 48px 0 72px;
}

.summary {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 4px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background-image: var(--ruled);
}

.summary div {
  padding: 18px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
  gap: 16px;
}

.summary div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.summary div:nth-child(even) {
  padding-left: 20px;
}

.summary div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.summary dt {
  font-weight: 700;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.summary dd {
  margin: 0;
  color: var(--soft);
}

/* Privacy band */
.privacy-band {
  background: var(--ink);
  color: #f3eef4;
  padding: 64px 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.privacy-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.privacy-band p {
  color: #d9cfdc;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.facts li {
  border: 1.5px solid rgba(227, 163, 58, 0.7);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: #f6e2bb;
}

/* FAQ */
.faq {
  padding: 72px 0;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 14px 32px 14px 0;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--plum);
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--soft);
  margin-bottom: 16px;
}

/* Closing */
.closing {
  background-image: var(--ruled);
  border-top: 4px solid var(--ink);
  padding: 56px 0;
}

.closing-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  flex-wrap: wrap;
}

.closing h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.closing p {
  margin: 0;
  color: var(--soft);
}

.closing-cta {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.closing-mail {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* Google Play label: an outlined ledger tab; disabled until the store link exists. */
.play {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 22px;
  border-radius: 8px;
  background: var(--plum);
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.play:hover {
  background: var(--plum-dark);
  color: #fff;
}

.play-small {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.play-big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}

.play-soon {
  background: transparent;
  color: var(--plum);
  border: 2px dashed var(--plum);
  cursor: default;
}

.play-soon:hover {
  background: transparent;
  color: var(--plum);
}

/* Inner pages */
.page {
  padding: 56px 0 80px;
  background-image: var(--ruled);
}

.page h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}

.page .section-title {
  margin-top: 48px;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

.legal ul {
  padding-left: 1.3em;
  margin: 0 0 1rem;
}

.legal li {
  margin-bottom: 6px;
}

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 4px solid var(--ink);
}

.steps li {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0 10px;
  border-bottom: 1px solid var(--line);
}

.steps-no {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--plum);
  font-size: 1.05rem;
  padding-top: 2px;
}

.steps h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.steps p {
  color: var(--soft);
}

.page-cta {
  margin-top: 28px;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
  background: var(--paper);
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-brand img {
  border-radius: 9px;
}

.foot-name {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
}

.foot-small {
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
}

.foot-links a {
  display: inline-block;
  padding: 8px 0;
  overflow-wrap: anywhere;
}

.foot-rule {
  margin-top: 22px;
  height: 7px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  max-width: calc(var(--wrap) - 48px);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 40px;
  }

  .hero-text {
    padding-bottom: 32px;
  }

  .hero-shot {
    width: min(340px, 92%);
  }

  .ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger li:nth-child(2) {
    border-right: 0;
  }

  .ledger li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .tool {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .tool-flip .tool-text {
    order: 0;
  }

  .tool .shot {
    justify-self: center;
    width: min(340px, 92%);
  }

  .summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary div,
  .summary div:nth-child(odd),
  .summary div:nth-child(even) {
    padding-left: 0;
    border-right: 0;
  }

  .summary div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero-text {
    padding-left: 16px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8.4vw, 2.2rem);
  }

  .lead {
    font-size: 1.06rem;
  }

  .ledger {
    grid-template-columns: minmax(0, 1fr);
  }

  .ledger li,
  .ledger li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger li:last-child {
    border-bottom: 0;
  }

  .summary div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .stamp-mark {
    right: 0;
  }

  .steps li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
