/* triplicate.in — carbon-copy receipt book.
   Three sheets: white original, pink duplicate, yellow triplicate, typed in
   carbon-blue ink. The slip stack is the one loud element; everything else
   stays quiet and form-like. */

:root {
  --bg: #eef1f7;
  --paper: #ffffff;
  --pink: #f6cfdc;
  --yellow: #f7e88a;
  --ink: #2b3a78;
  --ink-strong: #1f2b5e;
  --text: #1d2340;
  --muted: #555e82;
  --rule: #cfd5e6;
  --ok: #1d6b47;
  --warn: #8a5a00;
  --focus: #c2185b;
  --shadow: 0 1px 0 rgba(31, 43, 94, .08), 0 8px 24px -12px rgba(31, 43, 94, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12172e; --paper: #1b2244; --pink: #4a2b3f; --yellow: #4a4424;
    --ink: #b4c0ff; --ink-strong: #d3daff; --text: #e6e9f7; --muted: #a3aacb;
    --rule: #333c68; --ok: #7fd3a6; --warn: #f1c36b; --focus: #ff8ab8;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12172e; --paper: #1b2244; --pink: #4a2b3f; --yellow: #4a4424;
  --ink: #b4c0ff; --ink-strong: #d3daff; --text: #e6e9f7; --muted: #a3aacb;
  --rule: #333c68; --ok: #7fd3a6; --warn: #f1c36b; --focus: #ff8ab8;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Public Sans", system-ui, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: .18em; }
a:hover { color: var(--ink-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* type scale: 1.25 ratio */
h1, h2, h3 { color: var(--ink-strong); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }

/* ---------- masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--ink-strong); text-decoration: none; letter-spacing: -.02em; }
.mark { width: 30px; height: 30px; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: center; font-size: .95rem; }
.masthead nav a { color: var(--text); text-decoration: none; padding: .25rem 0; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.masthead nav .nav-cta { border: 1.5px solid var(--ink); color: var(--ink); padding: .3rem .8rem; border-radius: 4px; font-weight: 600; }
.masthead nav .nav-cta:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
@media (max-width: 860px) {
  .masthead nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
  .masthead nav a { white-space: nowrap; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; font: inherit; font-weight: 700; padding: .75rem 1.25rem; border-radius: 4px; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- hero + slip stack (the loud part) ---------- */
.hero { padding: 3.5rem 0 4.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { max-width: 12em; }

.stack { position: relative; height: 450px; max-width: 470px; margin: 0 auto; width: 100%; }
.slip {
  position: absolute; width: 82%; padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid rgba(31,43,94,.18); border-radius: 3px; box-shadow: var(--shadow);
  font-family: "Courier Prime", ui-monospace, monospace; color: var(--ink); font-size: .95rem;
}
/* perforated top edge */
.slip::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px;
  background: radial-gradient(circle, var(--bg) 2.2px, transparent 2.6px) 0 0 / 12px 6px repeat-x;
}
.slip.s1 { background: var(--paper); left: 0; top: 0; z-index: 3; }
.slip.s2 { background: var(--pink); left: 9%; top: 140px; z-index: 2; transform: rotate(1.6deg); }
.slip.s3 { background: var(--yellow); left: 18%; top: 280px; z-index: 1; transform: rotate(-1.4deg); }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed currentColor; padding: .7rem 0 .4rem; margin-bottom: .6rem; font-weight: 700; }
.slip-head .copy { font-size: 1.15rem; }
.slip-head span + span { text-align: right; }
.slip dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; }
.slip dt { opacity: .75; }
.slip dd { margin: 0; }
.stamp {
  display: inline-block; margin-top: .8rem; padding: .15rem .55rem; border: 2px solid currentColor;
  border-radius: 3px; transform: rotate(-4deg); font-weight: 700; letter-spacing: .04em;
}
@media (prefers-reduced-motion: no-preference) {
  .stack .slip { animation: deal .7s cubic-bezier(.2,.7,.2,1) both; }
  .stack .s2 { animation-delay: .18s; }
  .stack .s3 { animation-delay: .36s; }
  @keyframes deal { from { opacity: 0; translate: -24px -10px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 520px) {
  .stack { height: 430px; }
  .slip { width: 92%; font-size: .82rem; }
  .slip.s2 { left: 4%; top: 136px; } .slip.s3 { left: 8%; top: 272px; }
}

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section.paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 44em; margin-bottom: 2rem; }

.grid { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }

.kind { border-top: 3px solid var(--ink); padding-top: 1rem; }
.kind h3 { margin-bottom: .2rem; }
.kind .where { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }

/* 3-2-1 sequence: genuinely ordered, so it is numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1.4rem; }
.steps .num { display: block; font-size: 3.2rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: .4rem; }
.section.paper .steps li { background: var(--bg); }

/* ---------- map ---------- */
.map-wrap { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1rem; }
.map { width: 100%; height: auto; display: block; }
.map .land { fill: var(--rule); }
.map .dot { fill: var(--ink); }
.map .dot.planned { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.map .arc { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .7; }
.map text { font: 600 13px "Public Sans", sans-serif; fill: var(--text); }
.region-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .region-list { grid-template-columns: repeat(2, 1fr); } }
.region-list li { border-left: 3px solid var(--ink); padding: .2rem 0 .2rem 1rem; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; border: 1.5px solid currentColor; vertical-align: middle; margin-left: .35rem; }
.badge.available, .badge.live { color: var(--ok); }
.badge.beta, .badge.launching { color: var(--ink); }
.badge.talk, .badge.planned { color: var(--muted); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1.5rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); background: linear-gradient(var(--paper), var(--paper)) padding-box; box-shadow: 8px 8px 0 var(--pink); }
.plan h3 { margin-bottom: .1rem; }
.plan .who { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--ink-strong); line-height: 1.1; margin: .5rem 0 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.storage { font-weight: 700; margin: .2rem 0 1rem; }
.plan ul { padding-left: 1.1rem; margin: 0 0 1.5rem; flex: 1; }
.plan li { margin-bottom: .35rem; }
.plan .btn { text-align: center; }
.enterprise-row { margin-top: 1.5rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.enterprise-row h3 { margin: 0; }
.enterprise-row p { margin: .3rem 0 0; color: var(--muted); max-width: 42em; }
table.compare { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .95rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; }
table.compare th, table.compare td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.compare thead th { color: var(--ink-strong); }

/* ---------- integrations / use cases ---------- */
.int-group { margin-bottom: 2.5rem; }
.int-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .int-list { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
.int-list li { padding: .85rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.int-list .desc { display: block; color: var(--muted); font-size: .92rem; }
.uc-link { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem 1.4rem; text-decoration: none; color: var(--text); }
.uc-link:hover { border-color: var(--ink); }
.uc-link h3 { color: var(--ink-strong); margin-bottom: .35rem; }
.uc-link p { margin: 0; color: var(--muted); }

/* ---------- prose (3-2-1, blog, legal) ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding: .9rem 1.2rem; background: var(--yellow); color: var(--text); border-radius: 3px; }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-size: .92em; background: var(--paper); border: 1px solid var(--rule); padding: .05rem .3rem; border-radius: 3px; }
.prose pre { background: var(--paper); border: 1px solid var(--rule); padding: 1rem; overflow-x: auto; border-radius: 4px; }
.prose pre code { border: 0; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .5rem .7rem; text-align: left; }
.page-head { padding-top: 3rem; padding-bottom: 1.5rem; }
.page-body { padding-bottom: 4rem; }
.draft-note { background: var(--pink); color: var(--text); padding: .8rem 1rem; border-radius: 3px; max-width: 68ch; }

.post-meta { color: var(--muted); font-size: .95rem; }
.post-list { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.post-list li { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.post-list h2 { font-size: 1.35rem; margin: .2rem 0 .4rem; }
.post-list h2 a { color: var(--ink-strong); text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin: 0; color: var(--muted); }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.tags span { font-size: .8rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 0 .55rem; color: var(--muted); }

/* ---------- forms ---------- */
.form { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1.5rem; display: grid; gap: 1rem; max-width: 720px; }
@media (min-width: 640px) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.form .hint { font-weight: 400; color: var(--muted); }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--rule);
  border-radius: 4px; padding: .6rem .7rem;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 25%, transparent); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.checks label { font-weight: 400; display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; background: var(--pink); padding: .7rem 1rem; border-radius: 3px; color: var(--text); }
.form-error.show { display: block; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 560px; }
.inline-form input[type=email] { flex: 1 1 220px; font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--text); }

/* ---------- callout band ---------- */
.band { background: var(--ink); color: var(--paper); padding: 3.5rem 0; }
.band h2 { color: var(--paper); }
.band p { color: color-mix(in srgb, var(--paper) 85%, var(--ink)); max-width: 40em; }
.band .btn-primary { background: var(--yellow); color: #1f2b5e; border-color: var(--yellow); }
.band .btn-ghost { color: var(--paper); border-color: var(--paper); }
.band .btn-ghost:hover { background: transparent; text-decoration: underline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #26306a; } }

/* ---------- footer ---------- */
.colophon { background: var(--paper); border-top: 1px solid var(--rule); padding: 3rem 0 1.5rem; font-size: .95rem; }
.colophon .cols { display: grid; gap: 2rem; }
@media (min-width: 760px) { .colophon .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.colophon a { display: block; color: var(--text); text-decoration: none; padding: .15rem 0; }
.colophon a:hover { color: var(--ink); text-decoration: underline; }
.brand-small { font-weight: 800; color: var(--ink-strong); font-size: 1.15rem; margin-bottom: .4rem; }
.col-head { font-weight: 700; color: var(--ink-strong); margin-bottom: .5rem; }
.about p:last-child { color: var(--muted); max-width: 30em; }
.fine { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .85rem; }

/* ---------- storage locations by country ---------- */
.country-list { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--rule); }
@media (min-width: 700px) { .country-list { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
@media (min-width: 1000px) { .country-list { grid-template-columns: repeat(3, 1fr); } }
.country-list li { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.country-list p { margin: 0; }
.country-list .country strong { color: var(--ink-strong); font-size: 1.05rem; }
.country-list .country .muted { font-size: .9rem; margin-left: .3rem; }
.country-list .cities { margin-top: .15rem; }
.country-list .providers { font-size: .85rem; margin-top: .1rem; }
.map .dot.key { stroke: var(--paper); stroke-width: 2; }

/* ---------- family "photo" on the hero slips ---------- */
.slip-body { display: flex; gap: .8rem; align-items: center; }
.slip-body dl { flex: 1; }
.fam { width: 96px; height: 67px; flex: none; border: 3px solid #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(31,43,94,.3); background: #fff; }
@media (max-width: 520px) { .fam { width: 76px; height: 53px; } }
@media (prefers-reduced-motion: no-preference) {
  .fam .p { animation: hop 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
  .fam .man { animation-delay: 0s; animation-name: sway; }
  .fam .woman { animation-delay: .3s; animation-name: sway; }
  .fam .kid1 { animation-delay: .6s; }
  .fam .kid2 { animation-delay: .9s; }
  .fam .wave { animation: wave 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 100%; }
  .fam .sun { animation: glow 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
  @keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.5deg); } }
  @keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-35deg); } }
  @keyframes glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
}

/* ---------- illustrations ----------
   Hand-drawn SVGs in /static/img/pages and /static/img/blog. Each image carries
   its own rounded background panel, so it reads the same on the light and dark
   page backgrounds; dark mode only dims it slightly. */
.illo, .cover, .uc-thumb, .post-thumb img { display: block; width: 100%; height: auto; }
.page-head.has-illo { display: grid; gap: 1.5rem 3rem; align-items: center; }
.page-head.has-illo .illo { max-width: 480px; }
@media (min-width: 860px) {
  .page-head.has-illo { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .page-head.has-illo .illo { justify-self: end; }
}
.cover { max-width: 680px; margin-top: 1.5rem; border-radius: 16px; }
.uc-thumb { margin: -.25rem 0 1rem; border-radius: 10px; }
.post-list.with-thumbs li { display: grid; gap: 1rem 1.5rem; align-items: start; }
.post-list.with-thumbs .post-thumb { display: block; max-width: 320px; }
@media (min-width: 640px) {
  .post-list.with-thumbs li { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.illo, .cover, .uc-thumb, .post-thumb img) { filter: brightness(.88) saturate(.95); }
}
:root[data-theme="dark"] :is(.illo, .cover, .uc-thumb, .post-thumb img) { filter: brightness(.88) saturate(.95); }

/* ---------- home: sharing cards ---------- */
.share-card img { display: block; width: 100%; height: auto; border-radius: 4px; margin-bottom: 1rem; }
