/* simplerbooks.co.uk. The colours and type are the app's own (src/SimplerBooks.Web/wwwroot/app.css) */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --brand: #1b6e53;
  --brand-hover: #165c45;
  --brand-soft: #e5f3ed;
  --brand-softer: #f2f8f5;
  --brand-bright: #8fe3bd;
  --ink: #16202a;
  --text: #2c3642;
  --muted: #5d6877;
  --border: #e2e7ec;
  --surface: #fff;
  --surface-2: #f8fafb;
  --bg: #f3f5f8;
  --deep: #0f2c25;
  --deep-2: #0b221c;
  --radius: 12px;
  --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, .10), 0 2px 4px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 40, .35), 0 10px 20px -10px rgba(16, 24, 40, .15);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4cc392;
    --brand-hover: #6ddcae;
    --brand-soft: #143328;
    --brand-softer: #10251e;
    --ink: #eef4f1;
    --text: #cfdbd5;
    --muted: #93a49c;
    --border: #22352e;
    --surface: #12201b;
    --surface-2: #0f1c17;
    --bg: #0b1512;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-hover);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .button-primary {
    color: #0b1512;
  }
}

.button-quiet {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--muted);
}

.button-light {
  background: #fff;
  color: var(--deep);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.button-outline-light:hover {
  border-color: #fff;
}

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.top nav {
  display: flex;
  gap: 1.5rem;
  margin-left: 1rem;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
}

.top nav a:hover {
  color: var(--ink);
}

.top-actions {
  display: flex;
  gap: .5rem;
  margin-left: auto;
}

.top-actions .button {
  padding: .5rem .9rem;
}

@media (max-width: 820px) {
  .top nav {
    display: none;
  }
}

@media (max-width: 420px) {
  .top-actions .button-quiet {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(700px 360px at 0% 10%, color-mix(in srgb, var(--brand-bright) 18%, transparent), transparent 70%);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-lead {
  margin: 1.25rem 0 2rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-note {
  margin-top: .9rem;
  font-size: .875rem;
  color: var(--muted);
}

.hero-shot {
  position: relative;
  margin-top: 56px;
  padding-bottom: 72px;
}

.browser {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.browser-bar b {
  margin-left: 14px;
  padding: 2px 12px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
}

.phone {
  position: absolute;
  right: -8px;
  bottom: 24px;
  width: min(230px, 24%);
  border-radius: 28px;
  padding: 8px;
  background: #0b221c;
  box-shadow: var(--shadow-lg);
}

.phone img {
  border-radius: 21px;
}

@media (max-width: 720px) {
  .phone {
    display: none;
  }
}

/* Promises under the hero */
.promises {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.promises ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0 auto;
  padding: 28px 0;
}

.promises li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .9375rem;
  color: var(--muted);
}

.promises strong {
  display: block;
  color: var(--ink);
}

@media (max-width: 900px) {
  .promises ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .promises ul {
    grid-template-columns: 1fr;
  }
}

.icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}

.icon svg {
  width: 20px;
  height: 20px;
}

/* Sections */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.section-head p {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.kicker {
  display: block;
  margin-bottom: .75rem;
  color: var(--brand);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Feature rows: a screenshot beside its words */
.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}

.feature + .feature {
  margin-top: 96px;
}

.feature:nth-of-type(even) .feature-copy {
  order: 2;
}

.feature h3 {
  font-size: 1.75rem;
}

.feature p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.ticks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14.5 7' fill='none' stroke='%231b6e53' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature:nth-of-type(even) .feature-copy {
    order: 0;
  }
}

/* Everything else, as cards */
.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.card h3 {
  margin: 1rem 0 .4rem;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Switching from QuickBooks */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.steps h3 {
  font-size: 1.0625rem;
  margin-bottom: .4rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Pricing and the call to action */
.cta {
  border-radius: 20px;
  padding: 56px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(143, 227, 189, .18), transparent 70%), linear-gradient(160deg, var(--deep), var(--deep-2));
  color: rgba(255, 255, 255, .78);
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.cta p {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
}

.cta .ticks li::before {
  background-color: rgba(143, 227, 189, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14.5 7' fill='none' stroke='%238fe3bd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: stretch;
}

.cta-actions .button {
  justify-content: center;
}

.cta-actions small {
  text-align: center;
  color: rgba(255, 255, 255, .6);
}

.cta-actions small a {
  color: #fff;
}

@media (max-width: 820px) {
  .cta {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
}

/* Questions */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.25rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: .75rem 0 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: .875rem;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer nav a {
  color: var(--muted);
  text-decoration: none;
}

footer nav a:hover {
  color: var(--ink);
}

footer p {
  margin: .5rem 0 0;
}

/* Text pages: privacy and not found */
.prose {
  max-width: 720px;
  padding: 64px 0 96px;
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.prose h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 .5rem;
}

.prose .updated {
  color: var(--muted);
  margin: .75rem 0 2rem;
}

.prose li + li {
  margin-top: .35rem;
}
