/*
 * The public site: the home page, Features, About, privacy and terms, as a
 * visitor sees them before signing in. Kept apart from app.css so the two
 * can change without tripping over each other. Always light, like the
 * pictures of the app on it. The rules are written up in docs/design-system.md.
 */

/* Inter Tight, the free stand-in for Stripe's Söhne, as small variable files:
   the basic letters, the peso sign on its own (1 KB), and the accented letters,
   which only load on a page that uses them. */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/web/InterTight-latin.f5af7a761c2b.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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: "Inter Tight";
  src: url("../fonts/web/InterTight-peso.1cfaf57744ed.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+20B1;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/web/InterTight-latin-ext.496654ac82a3.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20B0, U+20B2-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  /* Stripe-style: white page, navy ink, one indigo, cool blue-grey tints. */
  --canvas: #ffffff;
  --card: #ffffff;
  --bg: var(--canvas);
  --tint: #f8fafd;
  --frost: #e5edf5;
  --ink: #061b31;
  --text: #425466;
  --muted: #5d6c85;
  --smoke: #8a9cc4;
  --faint: #9aa6b8;
  --line: #e5edf5;
  --primary: #533afd;
  --primary-dark: #4330d6;
  --primary-soft: #eeecff;
  --lilac: #d6d9fc;
  --good: #0a7a4b;
  --good-soft: #e4f5ec;
  --late: #b42318;
  --late-soft: #fef3f2;
  --night: #061b31;
  /* The colour ribbon: only behind pictures of the product, never under words. */
  --wash: linear-gradient(110deg, #9fc3ff 0%, #a98bff 20%, #ff7ad1 45%, #ff8a3d 70%, #ffb24a 85%, #ff6aa8 100%);
  --wash-text: linear-gradient(90deg, #533afd 0%, #b14bd6 55%, #ff6a3d 100%);
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 60px -30px rgba(6, 27, 49, .28);
  --shadow-sm: none;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Inter Tight", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  font-feature-settings: "ss01", "tnum";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 700px) { body { font-size: 18px; } }

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.08; }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.012em; margin-bottom: .35em; }
p { margin: 0 0 1em; }
figure { margin: 0; }
strong { font-weight: 500; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.center .lead { margin-left: auto; margin-right: auto; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.kicker {
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .9rem;
}
/* The highlighter: only on words about money or the free offer. */
.mark { background: var(--wash-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* -- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.25rem; border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:focus-visible, .link-quiet:focus-visible, summary:focus-visible, .sound-toggle:focus-visible, .chips a:focus-visible {
  outline: 3px solid rgba(83, 58, 253, .4); outline-offset: 2px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--card); color: var(--primary); border-color: var(--lilac); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--primary-soft); }
.btn-small { min-height: 38px; padding: .45rem 1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.cta-row.is-center { justify-content: center; }

/* -- Top bar ---------------------------------------------------------- */

.site-bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-bar.is-scrolled { border-bottom-color: var(--line); }
.site-bar-row { display: flex; align-items: center; gap: 2rem; height: 72px; }
.site-brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.site-links { display: flex; gap: 1.6rem; }
.site-links a, .link-quiet { color: var(--muted); text-decoration: none; font-size: .98rem; font-weight: 500; }
.site-links a:hover, .link-quiet:hover { color: var(--ink); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
@media (max-width: 860px) { .site-links { display: none; } }
@media (max-width: 400px) { .site-actions .link-quiet { display: none; } }

/* -- Hero ------------------------------------------------------------- */

.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.hero h1 { margin: 1.1rem 0 0; }
.hero .lead { margin: 1.4rem 0 0; }
.hero .cta-row { margin-top: 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-size: .88rem; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
@media (max-width: 380px) { .eyebrow-more { display: none; } }

/* The film, in a frame, with the colour ribbon sweeping behind it. */
.hero { position: relative; }
.hero-visual { position: relative; padding: 28px 8px 36px; }
/* A band of colour that flows and sways, like silk, behind the film. Only
   transforms move, so it stays smooth and cheap; it rests when off screen,
   when the film is paused, and for anybody who has asked for less motion. */
.ribbon {
  position: absolute; z-index: 0; top: -40%; right: 2%; width: 34%; height: 190%; pointer-events: none;
  border-radius: 48% 52% 46% 54% / 50%; overflow: hidden; opacity: .95;
  transform-origin: 50% 50%; animation: ribbon-sway 18s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
/* The colours, twice over, sliding down the band without a seam. */
.ribbon i {
  position: absolute; left: 0; right: 0; top: -100%; height: 200%;
  background: linear-gradient(180deg,
    #9fc3ff 0%, #a98bff 8%, #ff7ad1 17%, #ff8a3d 26%, #ffb24a 32%, #ff6aa8 40%, #b98cff 46%, #9fc3ff 50%,
    #a98bff 58%, #ff7ad1 67%, #ff8a3d 76%, #ffb24a 82%, #ff6aa8 90%, #b98cff 96%, #9fc3ff 100%);
  animation: ribbon-flow 16s linear infinite;
}
/* Fine silky threads drifting across the colour. */
.ribbon b {
  position: absolute; inset: 0 -50%;
  background: repeating-linear-gradient(105deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 6px);
  mix-blend-mode: soft-light; animation: ribbon-threads 22s linear infinite;
}
@keyframes ribbon-sway {
  from { transform: rotate(22deg) translateX(0) scaleX(1); }
  to { transform: rotate(30deg) translateX(-6%) scaleX(1.12); }
}
@keyframes ribbon-flow { to { transform: translateY(50%); } }
@keyframes ribbon-threads { to { transform: translateX(25%); } }
.is-still > .ribbon, .is-still > .ribbon i, .is-still > .ribbon b { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ribbon, .ribbon i, .ribbon b { animation: none; } .ribbon { transform: rotate(24deg); } }
.hero .wrap { position: relative; z-index: 1; }
.hero-visual .frame { box-shadow: var(--shadow-lg); border-color: rgba(6, 27, 49, .08); }
.float {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem .75rem .8rem; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  font-size: .92rem; line-height: 1.3; color: var(--ink);
}
.float strong { display: block; font-weight: 500; }
.float small { display: block; color: var(--muted); font-size: .82rem; }
.float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 600; flex: none; }
.float-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-icon.is-paid { background: var(--good-soft); color: var(--good); }
.float-icon.is-opened { background: var(--primary-soft); color: var(--primary); }
.float { box-shadow: 0 12px 30px -16px rgba(6, 27, 49, .35); }
.float-paid { left: -18px; bottom: 6px; }
.float-opened { right: -14px; top: 4px; }

@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { padding: 18px 4px 30px; }
  .ribbon { top: 18%; right: -10%; width: 60%; height: 120%; }
  .float-paid { left: 0; bottom: 0; }
  .float-opened { right: 0; top: 0; }
}
@media (max-width: 480px) { .float-opened { display: none; } }

/* -- Sections --------------------------------------------------------- */

.section { padding: 96px 0; }
.section.is-tinted { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head .lead { margin-top: .2rem; }
.center .section-head, .section-head.center { margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 2rem; } }

/* The four promises, set out like the lines of a ledger. */
.promises { padding: 0 0 96px; }
.promise-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.promise { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.promise .n { display: block; font-size: .82rem; font-weight: 500; color: var(--primary); margin-bottom: .8rem; }
.promises { background: var(--tint); padding: 72px 0; }
.promise h3 { font-size: 1.15rem; }
.promise p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .promises { padding-bottom: 64px; } }
@media (max-width: 560px) { .promise-grid { grid-template-columns: 1fr; } }

/* The whole flow: the film, then the five steps with real pictures. */
.flow-film { max-width: 980px; margin: 0 auto 3rem; }
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d3ca; }
.film { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }
.sound-toggle {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 999px; border: 0;
  background: rgba(22, 24, 29, .78); color: #fff; font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer;
}
.sound-toggle svg { width: 16px; height: 16px; }
.sound-toggle[aria-pressed="false"] .waves { opacity: .35; }
.flow-caption { text-align: center; color: var(--muted); font-size: .92rem; margin: .9rem 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.step { position: relative; padding: 16px 16px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step { overflow: hidden; }
.step::before { content: ""; position: absolute; left: -20%; right: -20%; top: -30px; height: 150px; background: var(--wash); opacity: .22; filter: blur(30px); pointer-events: none; }
.step > * { position: relative; }
.step-pic { height: 120px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #fff; margin-bottom: 16px; }
.step-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.step-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600; font-size: .85rem;
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .step { scroll-snap-align: center; }
}

/* How it works: five steps beside one big screen showing the real app. */
.flow-player { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr); gap: 40px; align-items: center; }
.flow-tabs { display: grid; gap: 8px; }
.flow-tabs button {
  display: grid; grid-template-columns: 30px 1fr; gap: 2px 14px; align-items: start; text-align: left;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  font: inherit; color: var(--text); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.flow-tabs button:hover { border-color: var(--lilac); }
.flow-tabs button:focus-visible { outline: 3px solid rgba(83, 58, 253, .4); outline-offset: 2px; }
.flow-tabs .step-num { grid-row: span 2; margin: 0; background: var(--tint); color: var(--muted); }
.flow-tabs b { color: var(--ink); font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
.flow-tabs small { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.flow-tabs [aria-selected="true"] { border-color: var(--primary); background: var(--primary-soft); }
.flow-tabs [aria-selected="true"] .step-num { background: var(--primary); color: #fff; }
.flow-screen { position: relative; }
.flow-screen::before { content: ""; position: absolute; inset: 8% -6% -8% -6%; background: var(--wash); opacity: .3; filter: blur(50px); border-radius: 50%; pointer-events: none; }
.flow-screen .frame { position: relative; box-shadow: var(--shadow-lg); }
.flow-panel { margin: 0; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.flow-panel video, .flow-panel img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.flow-panel img[src*="invoice"] { object-position: top center; }
.flow-progress { height: 3px; background: var(--frost); }
.flow-progress i { display: block; height: 100%; width: 0; background: var(--wash-text); }
/* Without the script: every step's picture, one under the other. */
.flow-player:not(.is-armed) .flow-panel + .flow-panel { border-top: 1px solid var(--line); }
.flow-player:not(.is-armed) .flow-progress { display: none; }
.flow-player.is-armed .flow-panel:not(.is-active) { display: none; }
@media (max-width: 900px) {
  .flow-player { grid-template-columns: 1fr; gap: 20px; }
  .flow-screen { order: -1; }
  .flow-tabs { grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .flow-tabs button { scroll-snap-align: start; }
}

/* Feature rows: words on one side, the demo on the other */
.feature-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.feature-grid.is-flipped .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); }
.feature-copy .btn { margin-top: .6rem; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.is-flipped .feature-copy { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312805c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.shot { border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); }

/* Branding: three invoices, tops showing */
.looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 2.6rem; }
.look-paper {
  height: 460px; overflow: hidden; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.look figcaption { margin-top: .9rem; text-align: center; font-weight: 500; color: var(--ink); }
.look figcaption span { display: block; font-weight: 500; font-size: .9rem; color: var(--muted); }
@media (max-width: 800px) {
  .looks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .look { scroll-snap-align: center; }
  .look-paper { height: 400px; }
}

/* Who it is for */
.who-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 2.6rem; }
.who-head .lead { margin: 0; }
.chips { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips li { padding: .4rem .9rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink); }
.chips .chips-label { padding-left: 0; border: 0; background: none; color: var(--muted); font-weight: 500; }
.chips.is-money b { color: var(--primary); margin-right: .15rem; }
.who-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.who-foot p { margin: 0 0 .4rem; color: var(--muted); }
.who-foot .chips { margin-top: .6rem; }
@media (max-width: 900px) { .who-head, .who-foot { grid-template-columns: 1fr; gap: 20px; } }

/* Also included: tiles */
.also-grid { list-style: none; margin: 0 0 2.4rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.also-grid li { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.also-grid svg { display: block; width: 26px; height: 26px; margin-bottom: 14px; fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.also-grid h3 { font-size: 1.05rem; }
.also-grid p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .also-grid { grid-template-columns: 1fr; } }

/* A note from the person who built it. */
.note-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.note-card { padding: 40px 44px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.note-card p { font-size: 1.25rem; line-height: 1.5; color: var(--ink); margin: 0 0 1rem; }
.note-card .sign { font-size: 1rem; color: var(--muted); margin: 1.2rem 0 0; }
.note-card .sign a { font-weight: 500; }
@media (max-width: 900px) { .note-grid { grid-template-columns: 1fr; gap: 28px; } .note-card { padding: 28px; } }

/* Pricing and questions, side by side */
.offer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.price-card { padding: 36px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.price { font-size: 1rem; color: var(--muted); margin: .4rem 0 .8rem; }
.price span { font-size: 4rem; font-weight: 300; letter-spacing: -.05em; line-height: 1; color: var(--ink); margin-right: .3rem; }
.price-card > p { color: var(--muted); }
.price-card .ticks { margin: 1.2rem 0 1.6rem; }
.price-card .fine { text-align: left; margin: 1rem 0 0; }
.faq { display: grid; gap: 0; padding: 6px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative;
  font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 500; color: var(--primary); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } .faq { padding: 4px 20px; } }

/* Final call */
.closing { padding: 0 0 96px; }
.closing-card {
  position: relative; overflow: hidden;
  padding: 80px 32px; border-radius: 20px; background: var(--ink); color: #aab7cf; text-align: center;
}
.closing-card::before { content: ""; position: absolute; right: -15%; top: -60%; width: 60%; height: 220%; background: var(--wash); opacity: .55; filter: blur(60px); transform: rotate(-20deg); pointer-events: none; }
.closing-card > * { position: relative; }
.closing-card h2 { color: #fff; max-width: 14em; margin: 0 auto .6em; }
.closing-card .lead, .closing-card .fine { color: #c3cfe6; }
.closing-card .lead { margin-left: auto; margin-right: auto; }
.closing-card .mark { background: linear-gradient(90deg, #a99bff, #ff8ad0 55%, #ffb36a); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 700px) { .closing { padding-bottom: 64px; } .closing-card { padding: 56px 20px; border-radius: 20px; } }

/* -- Footer ----------------------------------------------------------- */

.site-foot { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: .95rem; }
.site-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-note { color: var(--muted); margin: .6rem 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--ink); }
.foot-small { color: var(--muted); font-size: .88rem; margin-top: 28px; }

/* -- Privacy and terms ------------------------------------------------ */

.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.4rem; }
.doc h3 { margin-top: 1.6rem; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }
.doc .updated { color: var(--muted); }
.draft-note {
  margin: 0 0 2rem; padding: 14px 18px; border-radius: 12px;
  background: #fff8dd; border: 1px solid #f1dc8a; color: #6b4e06; font-size: .95rem;
}

/* -- Coming into view ------------------------------------------------- */

/* Nothing on the first screen waits for this; only what is further down. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2), .js .promise-grid .reveal:nth-child(2), .js .also-grid .reveal:nth-child(2) { transition-delay: .07s; }
.js .steps .reveal:nth-child(3), .js .promise-grid .reveal:nth-child(3), .js .also-grid .reveal:nth-child(3) { transition-delay: .14s; }
.js .steps .reveal:nth-child(4), .js .promise-grid .reveal:nth-child(4), .js .also-grid .reveal:nth-child(4) { transition-delay: .21s; }
.js .steps .reveal:nth-child(5) { transition-delay: .28s; }
.js .looks .reveal:nth-child(2) { transition-delay: .1s; }
.js .looks .reveal:nth-child(3) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* -- The other pages: Features, About, Privacy and Terms ------------------- */

/* A smaller band in the top corner of the centred page heads. */
.ft-hero, .ab-hero { position: relative; overflow: hidden; }
.ft-hero > .wrap, .ab-hero > .wrap { position: relative; z-index: 1; }
.ft-hero .ribbon, .ab-hero .ribbon { top: -60%; right: -6%; width: 22%; height: 220%; opacity: .85; }
@media (max-width: 900px) { .ft-hero .ribbon, .ab-hero .ribbon { right: -30%; width: 55%; opacity: .45; } }

/* The recordings on the Features page, framed like the one on the home page. */
.ft-clip { position: relative; }
.ft-clip::before { content: ""; position: absolute; inset: 6% -5% 4% -5%; background: var(--wash); opacity: .28; filter: blur(46px); border-radius: 50%; pointer-events: none; }
.ft-clip video, .ft-clip img { position: relative; box-shadow: var(--shadow-lg); border-color: rgba(6, 27, 49, .08); }
.ft-clip figcaption { position: relative; }

/* Privacy and terms: a quiet wash at the top, nothing that gets in the way of reading. */
.doc { position: relative; overflow: hidden; }
.doc::before { content: ""; position: absolute; top: -260px; right: -200px; width: 620px; height: 420px; background: var(--wash); opacity: .22; filter: blur(70px); border-radius: 50%; pointer-events: none; }
.doc > .wrap { position: relative; }
.doc h1 { font-weight: 300; letter-spacing: -.03em; }
.doc h2 { font-weight: 500; }

/* How you get paid, and in what: plain words between hairlines, like Stripe's
   row of logos. Nothing in it looks clickable, because nothing is. */
.methods { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.methods-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 48px; padding-top: 22px; padding-bottom: 22px; }
.methods-row p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.methods-row span { color: var(--muted); font-size: .92rem; }
.methods-row b { color: var(--ink); font-weight: 500; font-size: 1rem; white-space: nowrap; }
@media (max-width: 700px) { .methods-row { gap: 14px; } .methods-row p { gap: 4px 16px; } .methods-row span { flex-basis: 100%; } }

/* Who it is for: the cards, then one quiet line. */
.who-also { margin: 1.6rem 0 0; color: var(--muted); max-width: 52em; }

/* -- The guides (built by the SEO work, styles in css/guides.css) -------------
   The redesign's touches on top: the list as cards, and the "how Simple
   Invoice helps" box as a small navy card with the colour glow. */
.guide-list { display: grid; gap: 12px; }
.guide-list li { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .2s; }
.guide-list li:hover { border-color: var(--lilac); }
.guide-list h2 a { color: var(--ink); text-decoration: none; }
.guide-list h2 a:hover { color: var(--primary); }
.guide .guide-app { position: relative; overflow: hidden; background: var(--ink); border: 0; color: #c3cfe6; padding: 28px 30px; }
.guide .guide-app::before { content: ""; position: absolute; right: -25%; top: -80%; width: 70%; height: 260%; background: var(--wash); opacity: .5; filter: blur(50px); transform: rotate(-20deg); pointer-events: none; }
.guide .guide-app > * { position: relative; }
.guide .guide-app h2 { color: #fff; font-weight: 500; }
.guide .guide-app strong, .guide .guide-app b { color: #fff; }
.guide .guide-app .btn-primary { background: #fff; color: var(--ink); }
.guide .guide-app .btn-primary:hover { background: var(--primary-soft); }
.guide .guide-app .link-quiet { color: #c3cfe6; }
.guide .guide-app p, .guide .guide-app li { color: #c3cfe6; }

/* Close to home: three plain cards about working in the Philippines. */
.home-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-grid li { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.home-grid h3 { font-size: 1.12rem; }
.home-grid p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }

/* Pricing and questions: the price stays in view while the questions are read. */
.price-col { position: sticky; top: 100px; }
@media (max-width: 900px) { .price-col { position: static; } }

/* Who it is for: each kind of work as a line on an invoice. The amounts are
   examples, and the page says so under the cards. */
.work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.work-card {
  position: relative; display: flex; flex-direction: column; padding: 24px 22px 20px; overflow: hidden;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--hue); }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.work-who { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .95rem; font-weight: 500; color: var(--ink); }
.work-who svg {
  flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 9px;
  background: color-mix(in srgb, var(--hue) 11%, transparent); color: var(--hue);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.work-desc { flex: 1; margin: 0 0 16px; color: var(--ink); font-size: 1.02rem; line-height: 1.4; }
.work-math { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; padding-top: 12px; border-top: 1px dashed var(--frost); }
.work-math span { color: var(--muted); font-size: .86rem; }
.work-math b { color: var(--ink); font-weight: 500; font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-how { align-self: flex-start; margin: 14px 0 0; padding: .2rem .65rem; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.work-note { margin: 1rem 0 0; color: var(--muted); font-size: .86rem; }
@media (max-width: 1000px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .work { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .work-card { scroll-snap-align: start; }
  .work-card:hover { transform: none; }
}

/* -- Fixes from the 22 Oct bug sweep --------------------------------------- */

/* The soft glows behind the screens reach past the edges on wide screens only;
   on narrow ones they would make the whole page scroll sideways. */
@media (max-width: 1240px) {
  .flow-screen::before { inset: 8% 0 -8% 0; }
  .ft-clip::before { inset: 6% 0 4% 0; }
}

/* Page not found: the page heads' colour band, a short way back. */
.lost { position: relative; overflow: hidden; padding: 120px 0 140px; }
.lost > .wrap { position: relative; z-index: 1; }
.lost .ribbon { top: -60%; right: -6%; width: 22%; height: 220%; opacity: .85; }
.lost h1 { margin: .4rem 0 1rem; }
.lost .lead { max-width: 32em; margin: 0 auto 2rem; }
.lost-help { margin: 2rem 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .lost { padding: 72px 0 96px; } .lost .ribbon { right: -45%; width: 60%; opacity: .3; } }

/* After a grey section the closing card gets the same room above it as below. */
.section.is-tinted + .closing { padding-top: 96px; }
@media (max-width: 760px) { .section.is-tinted + .closing { padding-top: 64px; } }

/* Seven cards: the last one is two wide, so no row ends with a hole. */
@media (min-width: 561px) { .also-grid .also-last { grid-column: span 2; } }

/* Small labels that are headings too (Pricing, Common questions). */
h2.kicker { font-size: .82rem; font-weight: 500; letter-spacing: .1em; line-height: 1.4; color: var(--primary); margin: 0 0 .9rem; }

@media (max-width: 600px) and (prefers-reduced-motion: reduce) { .float-paid { display: none; } }

.ft-hero::after, .ab-hero::after, .lost::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--canvas));
}
@media (max-width: 900px) {
  .ft-hero .ribbon, .ab-hero .ribbon { top: -70%; right: -48%; width: 62%; height: 200%; opacity: .32; }
}
@media (max-width: 960px) {
  .hero .ribbon { top: 46%; right: -18%; width: 70%; height: 80%; }
}
