/* Ironic Robot — one stylesheet for every page. Warm and human; the robot is just a wink. */
:root {
  --paper: #faf7f2;
  --paper-2: #f2ede4;
  --white: #fffdf9;
  --ink: #1d1b19;
  --ink-2: #45403a;
  --muted: #77706a;
  --line: #e6dfd3;
  --accent: #e2552d;
  --accent-ink: #b8401d;
  --accent-soft: #fbe6dc;
  --green-soft: #e3ece4;
  --green-ink: #2f5d3e;
  --radius: 20px;
  --wrap: 1120px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.eyebrow { font: 600 0.78rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-ink); margin: 0 0 1.3em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(250, 247, 242, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem var(--serif); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 0.95rem; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn { margin-left: 10px; }
.menu-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper) !important; text-decoration: none; font: 600 0.95rem var(--sans); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #000; }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: #d6cdbf; }
.btn.ghost:hover { background: var(--paper-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn.accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.nav .btn { padding: 9px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }

/* Sections */
section { padding: 100px 0; }
.section-head { max-width: 46em; margin-bottom: 52px; }
.hairline { border-top: 1px solid var(--line); }
.tint { background: var(--paper-2); }
.page-head { padding: 80px 0 48px; }

/* Hero */
.hero { padding: 88px 0 100px; }
.hero .wrap { max-width: 1000px; text-align: center; }
.hero .lede { margin: 0 auto; }
.hero .btn-row { justify-content: center; }

/* Inside and out diagram */
.bridge { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 72px; text-align: left; }
.side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.side h3 { font-size: 1.25rem; margin-bottom: 4px; }
.side p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
.side .who { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.pill { font-size: 0.8rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.side.inside .pill { background: var(--green-soft); color: var(--green-ink); }
.side.outside .pill { background: var(--accent-soft); color: var(--accent-ink); }
.link { position: relative; width: 150px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }
.link span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--ink); color: var(--paper); font-size: 0.8rem; font-weight: 600; white-space: nowrap; padding: 8px 14px; border-radius: 999px; }

/* Flipping headline word */
.flip-title { max-width: 15em; margin-left: auto; margin-right: auto; }
.flip { display: block; min-height: 1.15em; }
.flip-word { display: inline-block; font-style: italic; color: var(--accent); transition: opacity .26s, transform .26s; }
.flip-word.out { opacity: 0; transform: translateY(0.35em); }

/* What we set up */
.offers .card h3 { font-size: 1.3rem; }
.offer-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 5px 10px; margin-bottom: 14px; }
.guard .card h3 { font-size: 1.25rem; }

.hero-second { font: 400 clamp(1.6rem, 3.6vw, 2.6rem)/1.2 var(--serif); letter-spacing: -0.015em; margin: 0.25em 0 0.9em; color: var(--ink); }
.hero-second em { color: var(--accent); white-space: nowrap; }

/* Plain-words chat */
.talk-band { background: var(--white); border-top: 1px solid var(--line); }
.chat { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 24px 50px -32px rgba(29, 27, 25, 0.35); }
.bubble { padding: 12px 15px; border-radius: 16px; font-size: 0.97rem; line-height: 1.5; margin-bottom: 10px; max-width: 88%; }
.bubble.you { background: var(--ink); color: var(--paper); margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.ai { background: var(--white); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.chat-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.chat-actions span { font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid #d6cdbf; color: var(--ink-2); }
.chat-actions .go { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Hero demo */
.demo { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; margin: 64px auto 0; max-width: 1040px; text-align: left; }
.demo-app, .demo-chat { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(29, 27, 25, 0.4); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2dacd; }
.demo-bar span { margin-left: 8px; }
.demo-table { padding: 6px 10px 12px; min-height: 272px; }
.demo-row { display: grid; grid-template-columns: 1.5fr 1.2fr 0.9fr repeat(calc(var(--cols) - 3), 0.8fr); gap: 10px; align-items: center; padding: 10px; border-radius: 10px; font-size: 0.86rem; color: var(--ink-2); transition: background .4s; }
.demo-row b { font-weight: 600; color: var(--ink); }
.demo-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-head > span { overflow: visible; }
.demo-head { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); border-radius: 0; }
.demo-row .tag { font-style: normal; font-size: 0.74rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); }
.demo-row .tag.ok { background: var(--green-soft); color: var(--green-ink); }
.demo-row .tag.wait { background: #f6ecd2; color: #8a6412; }
.demo-row.hot { background: var(--accent-soft); }
.demo-row .remind { font-style: normal; font-size: 0.76rem; font-weight: 600; color: #fff; background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.pop { animation: pop .5s ease both; }
.flash { animation: flash 1s ease; }
.slide { animation: slide .45s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: transparent; } 40% { background: #f7c9b5; } 100% { background: var(--accent-soft); } }
@keyframes slide { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.demo-chat { display: flex; flex-direction: column; height: 346px; }
.demo-chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.demo-msgs { flex: 1; min-height: 0; overflow: hidden; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; }
.demo-msgs .bubble { font-size: 0.86rem; flex: none; animation: pop .35s ease both; }
.demo-input { flex: none; display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 0.86rem; color: var(--ink); min-height: 44px; }
.demo-input span { flex: 1; }
.demo-input span::after { content: ""; display: inline-block; width: 1px; height: 1em; background: var(--ink); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.demo-input b { font-size: 0.78rem; background: var(--ink); color: var(--paper); padding: 5px 11px; border-radius: 999px; }
@keyframes blink { 50% { opacity: 0; } }

/* Byline with photo */
.byline { display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 30px auto 0; text-align: left; }
.byline img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.byline p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.byline b { display: block; color: var(--ink); font: 500 1.1rem var(--serif); }

/* Then / Now list */
.thennow { margin: 64px auto 0; max-width: 900px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.tn-row { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 20px; padding: 18px 26px; border-top: 1px solid var(--line); align-items: center; }
.tn-row:first-child { border-top: 0; }
.tn-row span:first-child { font-weight: 600; }
.tn-row .was { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(226, 85, 45, 0.6); }
.tn-head { background: var(--paper-2); padding-top: 12px; padding-bottom: 12px; }
.tn-head span { font: 600 0.72rem/1 var(--sans) !important; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.tn-ours { background: var(--ink); color: var(--paper); border-top-color: var(--ink); }
.tn-ours span:first-child { font: 500 1.2rem var(--serif); }
.tn-ours .was { color: #9d958b; }
.tn-ours span:last-child { color: #f08a68; font-weight: 600; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--ink-2); }
.card li { margin-bottom: 5px; }
.card .problem { font: italic 1.15rem/1.4 var(--serif); color: var(--accent-ink); margin-bottom: 14px; }

/* Why now */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.compare { display: grid; gap: 14px; }
.compare div { border-radius: 16px; padding: 22px 24px; }
.compare .then { background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.compare .now { background: var(--ink); color: #d9d2c7; }
.compare b { display: block; font: 500 1.15rem var(--serif); margin-bottom: 4px; }
.compare .then b { color: var(--ink-2); }
.compare .now b { color: var(--paper); }

/* Conrad Studio band */
.studio-band { background: var(--ink); color: var(--paper); }
.studio-band .lede { color: #d9d2c7; }
.studio-band .eyebrow { color: #f08a68; }
.studio-band h2 em { color: #f08a68; }
.studio-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.studio-points li { background: #262320; border: 1px solid #36322d; border-radius: 16px; padding: 18px 20px; color: #c9c1b6; font-size: 0.97rem; }
.studio-points b { display: block; color: var(--paper); font: 500 1.15rem var(--serif); margin-bottom: 2px; }

/* Steps */
.steps .step { border-top: 2px solid var(--ink); padding-top: 22px; }
.steps .step .n { font: italic 500 1.05rem var(--serif); color: var(--accent); display: block; margin-bottom: 8px; }
.steps .step p { color: var(--ink-2); margin: 0; }

/* Stories (proof) */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 44px 0; border-top: 1px solid var(--line); }
.story:first-of-type { border-top: 0; padding-top: 0; }
.story h3 { font-size: 1.7rem; margin-bottom: 6px; }
.story .kind { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.gap { display: grid; gap: 10px; }
.gap div { padding: 16px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-size: 0.97rem; color: var(--ink-2); }
.gap div b { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.gap .after { background: var(--green-soft); border-color: transparent; color: var(--green-ink); }
.gap .after b { color: var(--green-ink); }

/* Quote band */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 19em; font: 400 clamp(1.8rem, 4.4vw, 3rem)/1.2 var(--serif); letter-spacing: -0.015em; }
.quote blockquote em { color: var(--accent); }
.quote .robot { width: 52px; height: 52px; margin: 0 auto 26px; }
.quote p { margin-top: 18px; color: var(--muted); }

/* Talks */
.talk { border-top: 1px solid var(--line); padding: 30px 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.talk:first-of-type { border-top: 0; padding-top: 0; }
.talk h3 { margin: 0; }
.talk p { margin: 0; color: var(--ink-2); }

/* About */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.portrait { background: var(--paper-2); border-radius: 28px; aspect-ratio: 4 / 5; display: grid; place-content: center; text-align: center; color: var(--muted); padding: 32px; font-size: 0.95rem; }
.portrait img { width: 96px; margin: 0 auto 14px; }
.portrait.photo { padding: 0; overflow: hidden; display: block; }
.portrait.photo img { width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: 60% 30%; }
.values dt { font: 500 1.2rem var(--serif); margin-top: 24px; }
.values dd { margin: 4px 0 0; color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: start; }
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #ddd4c6; border-radius: 12px; padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.next-list { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.next-list li { position: relative; padding: 0 0 18px 40px; color: var(--ink-2); }
.next-list li:last-child { padding-bottom: 0; }
.next-list li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 0.85rem; display: grid; place-items: center; }

/* CTA */
.cta { background: var(--ink); color: var(--paper); border-radius: 30px; padding: 64px; text-align: center; }
.cta h2 { margin-bottom: 0.3em; }
.cta p { color: #c9c1b6; margin: 0 auto; max-width: 32em; }
.cta .btn-row { justify-content: center; }
.cta .btn { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.cta .btn.ghost { background: transparent; border-color: #4a4540; color: var(--paper) !important; }
.cta .btn.ghost:hover { background: #2b2825; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Phones and tablets */
@media (max-width: 920px) {
  .demo { grid-template-columns: 1fr; }
  .demo-chat { order: -1; }
  .demo-chat { height: 270px; }
  .why, .story, .about-grid, .contact-grid, .talk { grid-template-columns: 1fr; gap: 28px; }
  .grid.three { grid-template-columns: 1fr; }
  .bridge { grid-template-columns: 1fr; }
  .link { width: 2px; height: 90px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px); }
  section { padding: 76px 0; }
  .portrait { aspect-ratio: 16 / 10; }
  .portrait.photo { aspect-ratio: 1; max-width: 520px; }
  .portrait.photo img { object-position: 50% 0; }
}
@media (max-width: 760px) {
  .demo-row .c-contact { display: none; }
  .demo-row { grid-template-columns: minmax(0, 1fr) 70px repeat(calc(var(--cols) - 3), 64px); font-size: 0.8rem; gap: 6px; padding: 9px 6px; }
  .demo-head { letter-spacing: 0.02em; }
  .demo-row .remind { padding: 4px 8px; font-size: 0.72rem; }
  .demo-table { min-height: 250px; }
  .tn-row { grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 16px 18px; }
  .tn-row span:first-child { grid-column: 1 / -1; }
  .tn-head span:first-child { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 0.9rem var(--sans); color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .grid.two, .row { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 72px; }
  .cta { padding: 44px 22px; }
  .card { padding: 26px; }
}
