/* Inklet website: "Paper and Ink". Warm paper, ink type, one blue accent. */
:root {
  --bg: #faf8f3; --paper: #fffdf9; --ink: #17191c; --ink-2: #4a4e55; --mute: #6f737a; --line: #e6e2d9; --line-2: #d8d3c8;
  --acc: #2b5cff; --acc-ink: #fff; --acc-soft: #e9efff; --ok: #1f9d55; --warn: #b7791f; --shadow: 0 20px 50px rgba(20, 20, 20, .10);
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.grain::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.grain > * { position: relative; z-index: 1; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { font: 600 22px var(--serif); margin-right: auto; display: flex; align-items: center; gap: 10px; }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: url(/favicon.svg) center / 100% no-repeat; display: inline-block; }
.nav a { font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a.on { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-weight: 600; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(43, 92, 255, .28); }
.btn:active, button:active { transform: scale(.96); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { box-shadow: 0 10px 24px rgba(23, 25, 28, .25); }
.nav a.btn { color: var(--acc-ink, #fff); }
.nav a.btn.line { color: var(--ink); }
.btn.sky, .nav a.btn.sky { background: #5b8cff; color: #fff; }
.btn.sky:hover { box-shadow: 0 10px 24px rgba(91, 140, 255, .3); color: #fff; }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.line:hover { box-shadow: none; background: #fff; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.nav .links { display: flex; gap: 22px; }
.nav [data-account] { display: flex; gap: 16px; align-items: center; }
.nav .btn { height: 40px; padding: 0 18px; }
.nav .menu-btn { display: none; }

/* sections */
section { padding: 88px 0; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
h1 { font: 500 clamp(44px, 6vw, 72px)/1.04 var(--serif); letter-spacing: -.02em; }
h1 em, h2 em { font-style: italic; color: var(--acc); }
h2 { font: 500 clamp(32px, 4vw, 46px)/1.08 var(--serif); letter-spacing: -.02em; }
h3 { font: 600 20px/1.3 var(--sans); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.center { text-align: center; }
.center .lead { margin: 16px auto 0; }

/* hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .lead { margin: 22px 0 30px; }
#video { padding: 56px 0 24px; }
#video .lead { max-width: 640px; margin: 14px auto 0; }
.video-frame { max-width: 672px; margin: 32px auto 0; border-radius: 18px; overflow: hidden; background: #17191c; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.video-frame video { display: block; width: 100%; height: auto; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta small { color: var(--mute); font-size: 13px; width: 100%; }
.stack { position: relative; height: 440px; }
.stack img { position: absolute; width: 68%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; animation: floaty 7s ease-in-out infinite; }
.stack img:nth-child(1) { left: 0; top: 36px; transform: rotate(-4deg); animation-delay: -1s; }
.stack img:nth-child(2) { right: 0; top: 0; transform: rotate(3deg); animation-delay: -3s; }
.stack img:nth-child(3) { left: 17%; top: 220px; animation-delay: -5s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.step b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; font: 600 15px var(--serif); margin-bottom: 16px; }
.step p { color: var(--ink-2); margin-top: 8px; }
.typed { font: 500 15px/1.6 var(--mono); background: var(--bg); border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; margin-top: 14px; white-space: pre; color: var(--ink-2); overflow: auto; }
.typed .cur { display: inline-block; width: 8px; height: 17px; background: var(--acc); vertical-align: -3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ideas img { border-radius: 8px; border: 1px solid var(--line); transition: transform .2s; }
.ideas img:first-child { grid-column: 1 / -1; }
.ideas img:hover { transform: scale(1.03); }

/* gallery */
.tabs { display: flex; gap: 8px; justify-content: center; margin: 28px 0 30px; flex-wrap: wrap; }
.tabs button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; color: var(--ink-2); background: var(--paper); }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 0 2px; }
.card .meta b { font-weight: 600; }
.card .meta small { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.card.hide { display: none; }

/* marquee of style names */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; background: var(--paper); }
.marquee div { display: flex; gap: 40px; width: max-content; animation: slide 60s linear infinite; }
.marquee span { font: 500 15px var(--serif); color: var(--ink-2); white-space: nowrap; }
.marquee span::after { content: '·'; margin-left: 40px; color: var(--line-2); }
@keyframes slide { to { transform: translateX(-50%); } }

/* numbers section */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two .lead { margin-top: 18px; }
.two ul { margin: 20px 0 0 18px; color: var(--ink-2); }
.two li { margin: 6px 0; }
.frame { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.frame img { border-radius: 10px; }

/* animation section */
.gifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.gifs .card img { aspect-ratio: auto; }

/* agents */
.code { background: var(--ink); color: #e9e6df; border-radius: 16px; padding: 22px 24px; font: 14px/1.7 var(--mono); overflow: auto; box-shadow: var(--shadow); }
.code .c { color: #8b93a1; }
.code .k { color: #9ec1ff; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.tier.hot { border-color: var(--acc); box-shadow: 0 24px 60px rgba(43, 92, 255, .14); }
.tier .tag { position: absolute; top: -13px; left: 28px; background: var(--acc); color: #fff; font: 600 12px var(--sans); padding: 4px 10px; border-radius: 999px; }
.tier h3 { font: 500 26px var(--serif); }
.tier .price { font: 500 44px/1 var(--serif); margin: 16px 0 4px; }
.tier .price small { font: 400 15px var(--sans); color: var(--mute); }
.tier p { color: var(--ink-2); min-height: 48px; }
.tier ul { list-style: none; margin: 18px 0 26px; padding: 0; color: var(--ink-2); flex: 1; }
.tier li { padding: 6px 0 6px 26px; position: relative; }
.tier li::before { content: ''; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: var(--acc-soft); }
.tier li.lim { color: var(--mute); }
.tier li.lim::before { background: #eee; }
.tier li.lim::after { border-color: var(--mute); }
.tier li::after { content: ''; position: absolute; left: 5px; top: 15px; width: 6px; height: 3px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.faq { max-width: 720px; margin: 48px auto 0; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--mute); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-2); margin-top: 10px; }

/* forms */
.auth { max-width: 440px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.auth h1 { font-size: 34px; margin-bottom: 6px; }
.auth > p { color: var(--ink-2); margin-bottom: 22px; }
.field { display: block; margin-bottom: 14px; font-size: 14px; color: var(--ink-2); }
.field input { display: block; width: 100%; margin-top: 6px; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font: 16px var(--sans); color: var(--ink); }
.field input:focus { outline: 2px solid var(--acc); outline-offset: -1px; border-color: var(--acc); }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 3px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.pw-eye:hover { background: var(--paper-2, #f1ede4); color: var(--ink); }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: 4px 0 18px; }
.form-row a, .auth .alt a { color: var(--acc); font-weight: 500; }
.auth .btn { width: 100%; justify-content: center; }
.auth .alt { text-align: center; margin-top: 18px; color: var(--ink-2); font-size: 14px; }
.msg { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; display: none; }
.msg.err { display: block; background: #fdeeee; color: #a12a2a; }
.msg.ok { display: block; background: #e9f7ef; color: #1b6b3a; }
.msg.info { display: block; background: var(--acc-soft); color: #22409a; }

/* guide */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc a { display: block; padding: 6px 0; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 14px; }
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--acc); }
.doc h2 { margin: 56px 0 14px; font-size: 32px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { margin: 8px 0 8px 22px; }
.doc li { margin: 5px 0; }
.doc kbd { background: var(--paper); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.doc .tip { background: var(--acc-soft); border-radius: 12px; padding: 14px 16px; margin: 16px 0; color: #22409a; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; }
.doc .code { margin: 14px 0; }
.doc img { border-radius: 12px; border: 1px solid var(--line); margin: 14px 0; }

/* toast, banner, footer */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; z-index: 30; opacity: 0; translate: 0 10px; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; translate: 0 0; }
.banner { background: #fff6dc; color: #6b4b00; border-bottom: 1px solid #f1e2b3; font-size: 14px; }
.banner .wrap { display: flex; gap: 14px; align-items: center; min-height: 42px; }
.banner button, .banner a { color: var(--acc); font-weight: 600; }
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
footer .brand { margin-right: auto; font-size: 18px; color: var(--ink); }
footer a:hover { color: var(--ink); }

/* reveal on scroll */
.rv { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .7s ease; }
.rv.in { opacity: 1; translate: 0 0; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .rv, .stack img, .marquee div, .typed .cur { animation: none; transition: none; opacity: 1; translate: 0 0; } }

@media (max-width: 900px) {
  .hero .wrap, .two, .guide { grid-template-columns: 1fr; }
  .stack { height: 330px; }
  .steps, .gallery, .gifs, .tiers { grid-template-columns: 1fr; }
  .nav .wrap { gap: 16px; }
  .nav .links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 24px 18px; flex-direction: column; gap: 12px; }
  .nav .links.open { display: flex; }
  .nav .menu-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 10px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .toc a { border: 0; padding: 4px 0; }
  section { padding: 60px 0; }
  .wrap { width: min(1180px, 100% - 32px); }
}
