/* solelog.com. One memorable thing: the ledger line from the logo's S, drawn once across the hero. */
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/fonts/lexend-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/fonts/lexend-600.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

:root {
  --paper: #F3F6F4;
  --ink: #0B1B2B;
  --ink-soft: #22344A;
  --green: #0F7B5F;
  --mint: #4ADE9B;
  --slate: #4F5B69;
  --line: #D7E0DC;
  --white: #FFFFFF;
  --display: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --body: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; max-width: 62ch; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

main > section, .top, .foot { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: var(--radius); background: var(--green); color: var(--white); font: 700 1.1rem/1 var(--body); text-decoration: none; transition: background-color .15s ease; }
.btn:hover { background: #0B654E; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #7CE9B8; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: -0.02em; }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 1rem; }
.top nav a:not(.btn) { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: text left, phone right, the ledger line running behind both */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 8px 0 96px; isolation: isolate; }
.ledger { position: absolute; inset: 0 -16px 0 -16px; width: calc(100% + 32px); height: 100%; z-index: -1; overflow: visible; }
.ledger path { fill: none; stroke: var(--mint); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.8s cubic-bezier(.6, 0, .2, 1) .2s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-text { display: grid; gap: 26px; }
.lead { font-size: 1.25rem; color: var(--ink-soft); }
.cta-row { display: grid; gap: 10px; justify-items: start; }
.note { color: var(--slate); font-size: 1rem; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-grid; min-width: 150px; padding: 9px 16px; border-radius: 12px; background: var(--ink); color: var(--white); line-height: 1.2; opacity: .55; cursor: not-allowed; }
.store-name { font: 700 1.05rem/1.2 var(--display); }
.store-soon { font-size: .85rem; color: #C9D3DF; }
.hero-phone { justify-self: center; }

.phone { width: min(300px, 72vw); padding: 9px; border-radius: 52px; background: var(--ink); box-shadow: 0 40px 70px -40px rgba(11, 27, 43, .55), inset 0 0 0 2px #2A3B4F; }
/* The app's own background, so the bars above and below the screenshot read as part of the screen. */
.screen { display: flex; flex-direction: column; overflow: hidden; border-radius: 43px; background: #F4F5F7; color: var(--ink); }
.status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 4px 16px 0 22px; font: 700 13px/1 -apple-system, 'Segoe UI', system-ui, sans-serif; }
.status svg { width: 46px; height: auto; }
.status svg { fill: currentColor; }
.island { position: absolute; left: 50%; top: 9px; width: 29%; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.screen img, .screen video { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; }
.homebar { display: grid; place-items: center; height: 22px; }
.homebar::after { content: ''; width: 36%; height: 5px; border-radius: 999px; background: var(--ink); }
/* On a computer the whole phone fits in the first screen: its height is ~2.16 × its width plus the bars. */
.hero .phone { width: clamp(280px, calc((100svh - 120px) / 2.3), 340px); }

/* How it works: a real sequence, so numbered */
.how { padding: 72px 0; display: grid; gap: 40px; border-top: 2px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { display: grid; gap: 12px; align-content: start; }
.step-n { font: 800 3.4rem/1 var(--display); color: var(--green); }
.steps p { color: var(--ink-soft); }

/* Features: screenshot and words, alternating */
.features { display: grid; gap: 24px; padding-bottom: 40px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 40px 0; }
.feature.flip .feature-shot { order: 2; }
.feature-shot { justify-self: center; }
.feature-shot .phone { width: min(280px, 70vw); }
.feature-text { display: grid; gap: 18px; }
.feature-text p { color: var(--ink-soft); font-size: 1.15rem; }
.pill { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--ink); font: 700 .9rem/1.2 var(--body); letter-spacing: 0; }

/* Making Tax Digital: the line again, as a timeline */
.mtd { padding: 80px 0; display: grid; gap: 22px; border-top: 2px solid var(--line); }
.mtd-text { color: var(--ink-soft); }
.timeline { position: relative; list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.timeline::before { content: ''; position: absolute; left: 11px; right: 0; top: 11px; height: 8px; border-radius: 999px; background: var(--mint); }
.timeline li { position: relative; display: grid; gap: 4px; padding-top: 44px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px var(--paper); }
.timeline strong { font: 800 1.6rem/1.1 var(--display); }
.timeline span { color: var(--ink-soft); }
.mtd-note { font-weight: 700; }

/* Pricing: the one dark block on the page */
.pricing { padding: 80px 0; display: grid; gap: 36px; border-top: 2px solid var(--line); }
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.plan { display: grid; gap: 18px; align-content: start; padding: 32px; border-radius: 24px; background: var(--white); }
.plan h3 { font-size: 1.5rem; }
.price strong { font: 800 2.6rem/1 var(--display); letter-spacing: -0.02em; }
.price span { color: var(--slate); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 30px; }
.plan li::before { content: ''; position: absolute; left: 0; top: .72em; width: 18px; height: 6px; border-radius: 999px; background: var(--green); }
.plan .btn { justify-self: start; margin-top: 8px; }
.plan-pro { background: var(--ink); color: var(--white); }
.plan-pro .price span, .plan-plus { color: #C9D3DF; }
.plan-pro li::before { background: var(--mint); }
.plan-pro :focus-visible { outline-color: var(--mint); }

/* Trust */
.trust { padding: 72px 0; display: grid; gap: 32px; border-top: 2px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.trust li { display: grid; gap: 10px; }
.trust p { color: var(--ink-soft); }

/* FAQ */
.faq { padding: 72px 0; display: grid; gap: 8px; border-top: 2px solid var(--line); }
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 700 1.2rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); }

/* Last call */
.final { margin: 40px auto 0; padding: 72px 40px; display: grid; justify-items: start; gap: 26px; border-radius: 28px; background: var(--ink); color: var(--white); }
.final h2 { max-width: 18ch; }
.final :focus-visible { outline-color: var(--mint); }

.foot { display: grid; gap: 14px; padding: 48px 0 56px; color: var(--slate); font-size: 1rem; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 1.2rem/1 var(--display); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 72px; gap: 40px; }
  .hero .phone { width: min(330px, 76vw); }
  .ledger { display: none; }
  .hero-phone { position: relative; }
  .hero-phone::before { content: ''; position: absolute; left: -40px; right: -40px; top: 42%; height: 22px; border-radius: 999px; background: var(--mint); z-index: -1; }
  .phone { padding: 8px; border-radius: 46px; }
  .screen { border-radius: 38px; }
  .steps, .trust ul, .plans { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
  .feature.flip .feature-shot { order: 0; }
  .hide-sm { display: none; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { left: 11px; right: auto; top: 11px; bottom: 11px; width: 8px; height: auto; }
  .timeline li { padding: 0 0 0 52px; }
  .final { padding: 48px 24px; }
}

@media (max-width: 360px) {
  .top nav { gap: 14px; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ledger path { animation: none; }
}

/* Blog: one comfortable reading column */
.post-wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 40px; display: grid; gap: 40px; }
.post-wrap > section, .post-wrap > aside { width: auto; }
.crumbs { margin: 0 0 12px; font-weight: 700; }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post h1, .blog-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.06; }
.post-meta { margin-top: 14px; color: var(--slate); font-size: .95rem; }
.post-lead { margin-top: 18px; font-size: 1.2rem; color: var(--ink-soft); }
.post-body { margin-top: 32px; }
.post-body > * + * { margin-top: 18px; }
.post-body h2 { margin-top: 44px; font-size: 1.7rem; }
.post-body h3 { margin-top: 30px; }
.post-body p, .post-body li { max-width: 68ch; }
.post-body ul, .post-body ol { padding-left: 1.3em; display: grid; gap: 8px; }
.post-body a { color: var(--green); text-underline-offset: 3px; }
.post-body strong { font-weight: 600; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); vertical-align: top; }
.post-body th { font-family: var(--display); font-weight: 700; }
.post-body em { font-style: italic; }
.post-disclaimer { margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--line); color: var(--slate); font-size: .95rem; }
.post-cta { display: grid; gap: 16px; justify-items: start; padding: 36px 32px; border-radius: 24px; background: var(--ink); color: var(--white); }
.post-cta h2 { font-size: 1.7rem; }
.post-cta p { color: #C9D3DF; }
.post-cta :focus-visible { outline-color: var(--mint); }
.related ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.related a { color: var(--green); font-weight: 600; }
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; }
.blog-list li { padding: 28px 0; border-top: 2px solid var(--line); display: grid; gap: 10px; }
.blog-list a { text-decoration: none; }
.blog-list a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.blog-list h2 { font-size: 1.6rem; }
.blog-list p { color: var(--ink-soft); }
.blog-list .post-meta { margin: 0; }
