/* cribsly.app. The app's postcard look (prototype/theme.ts): a 1940s linen picture postcard.
   Cobalt sky, tomato actions, sunflower highlights, leaf greens, white card stock, navy ink.
   Bowlby One for block headings only (self-hosted, SIL OFL: fonts/OFL.txt); system fonts for everything else. */
@font-face { font-family: "Bowlby One"; src: url(/fonts/BowlbyOne-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --cobalt: #1B4FA0;
  --cobalt-deep: #10306B;
  --tomato: #D9452B;
  --tomato-shadow: #A02814;
  --sun: #F4B731;
  --leaf: #3C8A48;

  --bg: #FBFAF6;          /* card stock */
  --panel: #FFFFFF;
  --wash: #E6EDF7;        /* pale cobalt */
  --ink: #10264A;
  --ink-2: #46597C;
  --link: #1B4FA0;
  --line: #D5DCE8;
  --mark-bg: #FCE7A6;
  --mark-ink: #5A3A00;
  --shadow: 0 14px 34px -18px rgba(16, 38, 74, .45);

  --block: "Bowlby One", "Arial Black", Impact, system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1730;
    --panel: #13234A;
    --wash: #102043;
    --ink: #F1F0EA;
    --ink-2: #B9C5DB;
    --link: #A4C2F4;
    --line: #283C66;
    --mark-bg: #6B4E0A;
    --mark-ink: #FFF3CF;
    --shadow: 0 14px 34px -18px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--ui); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: var(--block); font-weight: 400; letter-spacing: .005em; }
h1 { font-size: clamp(38px, 7vw, 68px); }
h2 { font-size: clamp(28px, 4.2vw, 42px); }
h3 { font-size: 20px; font-weight: 750; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--panel); color: var(--ink); padding: 8px 12px; z-index: 9; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
mark { background: var(--mark-bg); color: var(--mark-ink); padding: .05em .35em; border-radius: 4px; font-weight: 650; font-size: .92em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* header: the cobalt sky of the postcard */
.top { background: var(--cobalt); color: #fff; position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--block); font-size: 22px; letter-spacing: .03em; text-decoration: none; color: inherit; text-transform: uppercase; }
.brand img { border-radius: 9px; background: #fff; flex: none; }
.top .brand { color: #fff; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-weight: 650; font-size: 16px; }
.top nav a { color: #fff; text-decoration: none; opacity: .92; }
.top nav a:hover, .top nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }
.menu { display: none; }
@media (max-width: 720px) {
  .top-in > nav { display: none; }
  .top .pill { margin-left: auto; }
  .top-in { gap: 10px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: rgba(255, 255, 255, .14); }
  .menu nav { position: absolute; left: -20px; right: -20px; top: 64px; background: var(--cobalt); display: flex; flex-direction: column;
    padding: 8px 20px 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, .18); margin: 0; }
  .menu nav a { color: #fff; text-decoration: none; font-weight: 650; font-size: 18px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .menu nav a:last-child { border-bottom: 0; }
}

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; background: var(--tomato); color: #fff; border-radius: 999px;
  padding: 12px 24px; font-weight: 700; text-decoration: none; font-size: 17px; box-shadow: 0 3px 0 var(--tomato-shadow); transition: transform .15s; }
.pill:hover { transform: translateY(-1px); }
.pill.small { min-height: 38px; padding: 8px 16px; font-size: 15px; box-shadow: 0 2px 0 var(--tomato-shadow); white-space: nowrap; }
.ghost { font-weight: 700; text-decoration: none; padding: 12px 8px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 10px; }
.store-badge { display: inline-block; line-height: 0; transition: transform .15s; border-radius: 10px; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 54px; width: auto; }
.fine-print { font-size: 15px; margin: 0; }

/* bands */
.band { padding: 72px 0; }
.section { padding: 72px 20px; }
.stock { background: var(--bg); }
.sky-soft { background: var(--wash); }
.sub { font-size: 20px; color: var(--ink-2); max-width: 640px; margin: -4px 0 32px; }
.eyebrow { font-weight: 750; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin: 0 0 12px; color: var(--tomato); }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--sun); } }
.eyebrow a { color: inherit; text-decoration: none; }

/* hero: the "Greetings from CRIBSLY" postcard art (lettering baked in, top left) with the pitch
   below the lettering and the phone in the quieter right third. The art is width-bound so the
   lettering keeps its place; the hero fades into cobalt below it when the copy runs longer. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; padding: 0 0 64px; background: var(--cobalt-deep); }
.hero-art { position: absolute; inset: 0 0 auto 0; z-index: -1; display: block; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 48, 107, 0) 62%, rgba(16, 48, 107, .55) 82%, var(--cobalt-deep) 100%); }
.hero-row { display: grid; grid-template-columns: 1.9fr 1fr; gap: 40px; align-items: start; }
/* clear the lettering: its tagline ends about 64% of the way down art that is 1300/2880 of the page width */
.hero-copy { padding-top: 31.5vw; text-shadow: 0 1px 3px rgba(5, 15, 45, .55); }
.hero-copy .hero-lede { margin-top: 0; }
.hero-lede { font-size: clamp(19px, 2.2vw, 22px); max-width: 560px; margin: 22px 0 0; }
.hero-lede b { font-weight: 800; }
.hero .fine-print { opacity: .92; }
.phone { margin: 0; border-radius: 34px; overflow: hidden; border: 7px solid #0D1F3E; background: #0D1F3E; box-shadow: var(--shadow); }
.hero-phone { width: min(300px, 100%); justify-self: center; margin-top: clamp(28px, 4vw, 64px); transform: rotate(3deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
@media (max-width: 800px) {
  .hero { padding: 0 0 48px; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
  /* phone art is 900/780 of the width; its lettering ends about 42% down */
  .hero-copy { padding-top: 54vw; }
  .hero-art::after { background: linear-gradient(180deg, rgba(16, 48, 107, 0) 40%, rgba(16, 48, 107, .7) 62%, var(--cobalt-deep) 92%); }
}

/* answer-first summary (what AI assistants quote) */
.answer { padding-top: 52px; padding-bottom: 4px; }
.answer p { font-size: 21px; max-width: 820px; margin: 0; }

/* how it works */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 8px 0 44px; }
.steps li { counter-increment: s; background: var(--panel); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--cobalt); color: var(--cobalt); font-weight: 800; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .steps li::before { border-color: var(--link); color: var(--link); } }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; gap: 16px; }
  .shots .phone { width: 230px; flex: none; scroll-snap-align: start; }
}

/* ghostwriters as perforated stamps, like the app's note screen */
.stamps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stamp-card { display: flex; gap: 18px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stamp-card h3 { margin-bottom: 4px; }
.stamp-card h3 span { display: block; font-size: 14px; font-weight: 650; color: var(--ink-2); margin-top: 2px; }
.stamp-card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.stamp { flex: none; width: 92px; height: 108px; color: #fff; display: grid; padding: 7px; transform: rotate(-3deg);
  /* Perforations: a grid of round holes, filled back in everywhere but the outer 5px (the content box). */
  -webkit-mask: radial-gradient(circle, transparent 3.2px, #000 3.7px) -5px -5px / 10px 10px, linear-gradient(#000 0 0) content-box;
  -webkit-mask-composite: source-over;
  mask: radial-gradient(circle, transparent 3.2px, #000 3.7px) -5px -5px / 10px 10px, linear-gradient(#000 0 0) content-box;
  mask-composite: add; }
.stamp span { border: 1.5px solid rgba(255, 255, 255, .75); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 4px; }
.stamp b { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1; }
.stamp i { font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1.15; margin-top: 6px; letter-spacing: .02em; }
.stamp.tomato { background: var(--tomato); } .stamp.cobalt { background: var(--cobalt); } .stamp.leaf { background: var(--leaf); }
.stamp-card:nth-child(2) .stamp { transform: rotate(2deg); }
@media (max-width: 900px) { .stamps { grid-template-columns: 1fr; } }

/* respectful by design: the back of a postcard, message on the left, ruled address side on the right */
.postcard { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.postcard-msg { padding: 36px; border-right: 1.5px solid var(--line); }
.postcard-msg p:last-child { color: var(--ink-2); margin-bottom: 0; }
.postcard-addr { position: relative; padding: 36px 36px 28px; }
.ruled { list-style: none; margin: 0; padding: 0; }
.ruled li { padding: 13px 0; border-bottom: 1.5px solid var(--line); font-size: 16px; color: var(--ink-2); }
.ruled li:first-child { padding-right: 110px; }
.ruled li:nth-child(2) { padding-right: 60px; }
.ruled li:last-child { border-bottom: 0; }
.ruled b { color: var(--ink); display: block; font-size: 17px; }
.postmark { position: absolute; top: 18px; right: 22px; width: 96px; height: 96px; border-radius: 50%; border: 2.5px solid var(--cobalt);
  color: var(--cobalt); display: grid; place-items: center; text-align: center; font: 800 13px/1.25 var(--ui); letter-spacing: .1em; transform: rotate(-12deg); opacity: .85; }
.postmark::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid currentColor; }
@media (prefers-color-scheme: dark) { .postmark { color: var(--link); border-color: var(--link); } }
@media (max-width: 800px) {
  .postcard { grid-template-columns: 1fr; }
  .postcard-msg { border-right: 0; border-bottom: 1.5px solid var(--line); padding: 26px 22px; }
  .postcard-addr { padding: 22px; }
  .postmark { width: 78px; height: 78px; font-size: 11px; top: 14px; right: 14px; }
  .ruled li:first-child { padding-right: 88px; }
  .ruled li:nth-child(2) { padding-right: 0; }
}

/* pricing */
.price-row { display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: 40px; align-items: center; }
.plan { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 6px 6px 0 var(--cobalt); }
@media (prefers-color-scheme: dark) { .plan { border-color: var(--line); box-shadow: 6px 6px 0 var(--cobalt); } }
.plan .price { margin: 0; font-size: 20px; } .plan .price b { font-size: 46px; font-weight: 800; }
.plan .alt { margin: 0 0 14px; color: var(--ink-2); }
.plan ul { padding-left: 1.2em; margin: 0 0 16px; }
.plan-fine { font-size: 13.5px; color: var(--ink-2); margin: 0; }
@media (max-width: 800px) { .price-row { grid-template-columns: 1fr; gap: 8px; } }

/* faq */
.faq { max-width: 820px; }
.faq details { background: var(--panel); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; border: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 18px; min-height: 28px; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.more-help { margin-top: 22px; color: var(--ink-2); }

/* cta band: deep cobalt with a tomato stamp */
.cta-band { background: var(--cobalt-deep); color: #fff; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta-band a:not(.store-badge) { color: #fff; }
.cta-in { display: flex; gap: 40px; align-items: center; }
.cta-in p { color: #D6E0F2; font-size: 19px; }
.cta-stamp { flex: none; width: 150px; height: 176px; background: var(--tomato); padding: 10px; display: grid; transform: rotate(-4deg);
  -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.6px) -6px -6px / 12px 12px, linear-gradient(#000 0 0) content-box;
  -webkit-mask-composite: source-over;
  mask: radial-gradient(circle, transparent 4px, #000 4.6px) -6px -6px / 12px 12px, linear-gradient(#000 0 0) content-box;
  mask-composite: add; }
.cta-stamp span { border: 2px solid rgba(255, 255, 255, .8); display: grid; place-items: center; text-align: center; font-family: var(--block); font-size: 21px; line-height: 1.2; }
.cta-stamp small { font-family: var(--ui); font-weight: 800; font-size: 12px; letter-spacing: .2em; }
@media (max-width: 700px) { .cta-in { flex-direction: column; align-items: flex-start; gap: 24px; } .cta-stamp { width: 104px; height: 122px; } .cta-stamp span { font-size: 15px; } }

/* page heroes for support and legal */
.sky { background: linear-gradient(180deg, var(--cobalt), #2A5FB2); color: #fff; }
.page-hero { padding: 48px 0 52px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 58px); text-shadow: .045em .055em 0 var(--cobalt-deep); }
.page-hero .eyebrow { color: var(--sun); }
.page-hero .lede { font-size: clamp(18px, 2.2vw, 21px); max-width: 640px; margin: 0; color: #E6EDF7; }
.page-hero a:not(.pill):not(.store-badge) { color: #fff; }
.lost .cta-row .ghost { color: #fff; }
.soon { padding: 72px 0 80px; }
.soon .lede { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.4vw, 32px); color: var(--sun); }
.soon-body { padding-top: 40px; padding-bottom: 96px; font-size: 20px; }

/* prose (support, legal, future landing pages) */
.prose { max-width: 780px; padding-top: 44px; padding-bottom: 72px; }
.prose h2 { font-family: var(--ui); font-weight: 800; font-size: clamp(22px, 3vw, 27px); margin-top: 1.7em; letter-spacing: -.01em; }
.prose h3 { margin-top: 1.5em; font-size: 19px; }
.prose p, .prose li { color: var(--ink); }
.prose > p:first-of-type { font-size: 20px; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--sun); }
.legal > p:first-of-type { font-size: 18px; }
.legal h2 { padding-top: 1.1em; border-top: 1.5px solid var(--line); }

/* tables: a real table on wide screens, one card per row on phones (cells carry data-label) */
.table-wrap { margin: 1.2em 0 1.6em; }
table.data { border-collapse: collapse; width: 100%; font-size: 15.5px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--wash); font-weight: 750; }
@media (max-width: 760px) {
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 6px 14px; }
  table.data td { border: 0; padding: 7px 0; }
  table.data td + td { border-top: 1px dashed var(--line); }
  table.data td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
}

/* guide cards (for when guides exist) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding-top: 48px; padding-bottom: 72px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); }
.card p { color: var(--ink-2); font-size: 16px; }
.card .more { font-weight: 700; color: var(--link); }

/* footer */
.foot { padding: 56px 0 28px; font-size: 16px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 28px; }
.foot .brand { color: var(--cobalt); }
@media (prefers-color-scheme: dark) { .foot .brand { color: var(--ink); } }
.foot h2 { font: 800 13px/1.2 var(--ui); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 10px; }
.foot a:not(.brand) { display: block; text-decoration: none; padding: 4px 0; color: var(--ink); }
.foot a:not(.brand):hover { text-decoration: underline; }
.foot p { color: var(--ink-2); max-width: 340px; }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 28px; }
@media (max-width: 800px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (max-width: 380px) { .top-in > .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.coming-soon { display: inline-block; padding: 12px 18px; border-radius: 10px; background: #111; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em; }
