/* Trodde: paper and ink. No external fonts or requests. */
:root {
  --paper: #f2ecdf;
  --paper-deep: #e8e0cd;
  --card: #f8f4ea;
  --ink: #1f2430;
  --ink-soft: #4b5160;
  --rule: #cfc5ae;
  --indigo: #3d3fa6;
  --indigo-deep: #2c2e80;
  --violet: #7a62c9;
  --todo: #ffe27a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: var(--indigo-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(1040px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.1rem; }
.mark { font: 700 1.75rem/1 var(--serif); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.mark::after { content: ""; display: block; height: 3px; margin-top: 5px; background: var(--indigo); border-radius: 2px; transform: rotate(-1.2deg); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--indigo); }

/* type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; max-width: 14ch; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 62ch; }
.lead { font: 400 1.25rem/1.6 var(--serif); color: var(--ink-soft); max-width: 52ch; margin-top: 1.4rem; }
section { padding-block: 3.5rem; }
section + section { border-top: 1px solid var(--rule); }
.hero { padding-block: 4.5rem 4rem; }
.sec-head { margin-bottom: 1.8rem; }
.sec-head p { color: var(--ink-soft); margin: .6rem 0 0; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn { display: inline-block; font: 600 1rem/1 var(--sans); padding: .95rem 1.35rem; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn:hover { background: var(--paper-deep); color: var(--ink); }
.btn.solid { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn.solid:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); color: #fff; }

/* the two bot cards: library cards with a punched hole */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; }
.bot-card { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 2.2rem 1.7rem 1.7rem; box-shadow: 0 1px 0 #fff inset, 0 10px 22px -16px rgba(31, 36, 48, .45); }
.tape { position: relative; }
.tape::before { content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(122, 98, 201, .32); border-left: 2px dotted rgba(255,255,255,.55); border-right: 2px dotted rgba(255,255,255,.55); transform: rotate(-2.5deg); }
@media (min-width: 720px) {
  .bot-card:nth-child(1) { transform: rotate(-.7deg); }
  .bot-card:nth-child(2) { transform: rotate(.6deg); margin-top: 1rem; }
}
.badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--indigo) 10%, var(--violet) 100%); margin-bottom: 1.1rem; }
.badge svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bot-card h3 { margin-bottom: .5rem; }
.bot-card p { color: var(--ink-soft); }
.card-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.2rem; font-weight: 600; }

/* steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(s); font: 700 1.5rem/1 var(--serif); width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 1.5px solid var(--indigo); color: var(--indigo-deep); border-radius: 50%; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.steps span { color: var(--ink-soft); }

/* plan comparison */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; max-width: 800px; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 1.8rem; }
.plan.pro { border: 2px solid var(--indigo); }
.plan .price { font: 700 2.2rem/1.1 var(--serif); margin: .6rem 0 1rem; }
.plan ul { padding-left: 1.1rem; margin: 0 0 1.4rem; color: var(--ink-soft); }
.plan li { margin-bottom: .4rem; }

/* faq */
details { border-top: 1px solid var(--rule); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font: 700 1.15rem/1.4 var(--serif); }
details p { margin: .7rem 0 0; color: var(--ink-soft); }

/* legal text */
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { max-width: 62ch; padding-left: 1.2rem; }
.meta { color: var(--ink-soft); font-size: .95rem; }

/* placeholders that must be replaced before launch */
mark.todo { background: var(--todo); color: var(--ink); padding: 0 .3em; border-radius: 3px; font-weight: 600; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 2rem; padding-block: 2.2rem 3rem; color: var(--ink-soft); font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.site-foot p { margin: 0; max-width: 46ch; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 560px) { .hero { padding-block: 3rem 2.5rem; } section { padding-block: 2.6rem; } }

.meta.gap { margin-top: 1rem; }
.price small { font: 400 1rem var(--sans); color: var(--ink-soft); }

/* hero layout and the 'your own bot' illustration */
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.desk { padding: 1rem 0; }
.sheet { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 2rem 1.4rem 1.4rem; box-shadow: 0 1px 0 #fff inset, 0 18px 34px -22px rgba(31, 36, 48, .55); transform: rotate(1.2deg); max-width: 420px; margin-inline: auto; }
.chat-row { display: flex; align-items: center; gap: .9rem; padding: .85rem .9rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); }
.chat-row strong { display: block; font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; }
.chat-row span { color: var(--ink-soft); font-size: .95rem; }
.chat-row.mine { border: 1.5px dashed var(--indigo); background: transparent; }
.link { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem 0; color: var(--indigo-deep); font-weight: 600; }
.link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge.sm { width: 44px; height: 44px; margin: 0; flex: none; }
.badge.sm svg { width: 22px; height: 22px; }
.badge.ghost { background: transparent; border: 1.5px dashed var(--indigo); }
.badge.ghost svg { stroke: var(--indigo-deep); }

.pill { display: inline-block; font: 600 .85rem/1 var(--sans); padding: .35rem .7rem; border-radius: 999px; margin-bottom: .8rem; }
.pill.live { background: #d8efd9; color: #1d5a2b; }
.pill.soon { background: var(--paper-deep); color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-weight: 400; }
.bot-card .badge { margin-bottom: .9rem; }
