@font-face { font-family: Inter; src: url("/inter.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

@font-face {
  font-family: "Instrument Serif";
  src: url("/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

.landing {
  --ink: #21192e;
  --muted: #575064;
  --line: #e5deed;
  --green: #592dc1;
  --accent: #6133cd;
  --accent-hover: #4d25ab;
  --lavender: #f0e9fc;
  --paper: #fffdff;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
.homepage { --ink: #252333; --muted: #625d70; --accent: #6143c9; --accent-hover: #5034ad; --green: var(--accent); --line: #e5e1ef; --lavender: #f2eefb; --paper: #fff; }

.landing .topbar { background: var(--paper); border-color: var(--line); }
.landing .topbar-inner,
.landing .workspace { width: min(1184px, calc(100% - 64px)); }
.landing .topbar-inner { min-height: 73px; justify-content: space-between; gap: 24px; }
.landing .wordmark { font-size: 23px; letter-spacing: -.06em; }
.landing .mark { background: var(--ink); color: #ede2ff; border-radius: 9px 9px 9px 3px; }
.landing .topbar nav,
.topbar-actions { display: flex; align-items: center; gap: clamp(15px, 2vw, 29px); }
.topbar-actions a { color: var(--muted); font-size: 14px; text-decoration: none; }
.topbar-actions a:hover { color: var(--accent); text-decoration: underline; }
.topbar-actions .nav-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 13px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font-weight: 650; white-space: nowrap;
}
.topbar-actions .nav-cta:hover { background: var(--lavender); text-decoration: none; }

.skip-link { position: fixed; z-index: 3; top: 8px; left: 8px; padding: 10px; background: white; color: var(--ink); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.landing :focus-visible { outline-color: var(--accent); }
.landing .workspace { padding-top: 0; }
.landing [id] { scroll-margin-top: 22px; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px); align-items: start;
  padding-block: clamp(36px, 4.5vw, 56px) clamp(40px, 5vw, 64px);
}
.hero-copy { padding-top: 20px; }
.hero-kicker { margin: 0 0 17px; color: var(--green); font-size: .75rem; font-weight: 750; letter-spacing: .10em; text-transform: uppercase; }
.landing .hero h1 { max-width: 18ch; font-size: clamp(48px, 4.5vw, 64px); line-height: 1.06; letter-spacing: -.025em; }
.hero-emphasis { display: block; }
.landing .hero .intro { max-width: 43ch; margin: 20px 0 24px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; }
.landing .setup { max-width: 520px; padding: 0; }
.landing [data-site-form] { margin: 0; display: grid; gap: 9px; }
.landing [data-site-form] label { font-size: .875rem; }
.landing .url-row { display: flex; gap: 6px; padding: 5px; border: 1px solid #d6cbe4; border-radius: 11px; background: white; }
.landing .url-row:focus-within { border-color: var(--accent); }
.landing .url-row input { flex: 1; min-width: 0; border: 0; padding-inline: 11px; min-height: 48px; font-size: 1rem; }
.landing .url-row input::placeholder { color: #706780; }
.landing .url-row input:focus-visible { outline-offset: -3px; }
.landing .primary:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.landing .primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.landing .url-row .primary { flex: 0 0 auto; min-height: 48px; border-radius: 7px; padding: 8px 15px; justify-content: center; font-size: .9375rem; }
.setup-help { margin: 9px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.setup-help strong { color: var(--ink); font-weight: 650; }
.try-example { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: .875rem; text-underline-offset: 3px; }
.install-cta { display: inline-block; margin-top: 12px; color: var(--green); font-size: .9rem; font-weight: 700; text-underline-offset: 3px; }
.save-prompt { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; padding: 24px; background: var(--lavender); border: 1px solid var(--line); border-radius: 16px; }
.save-prompt h2 { margin: 0 0 8px; font-size: 1.2rem; }
.save-prompt p { max-width: 60ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.save-prompt .account-cta { justify-content: center; flex-shrink: 0; text-decoration: none; min-height: 48px; }

.demo-stage {
  min-width: 0; padding: 16px; border: 1px solid #e7e0f3; border-radius: 18px;
  background: #f6f3fc;
}
.demo-website { overflow: hidden; border: 1px solid #dfd5e9; border-radius: 13px; background: white; }
.browser-bar { position: relative; padding: 10px 44px; color: var(--muted); text-align: center; font-size: .7rem; font-weight: 650; }
.browser-dots { position: absolute; width: 5px; height: 5px; border-radius: 50%; left: 13px; top: calc(50% - 2px); background: #ac99bb; box-shadow: 9px 0 #c8b5d4, 18px 0 #d9cbe1; }
.bakery-cover { position: relative; height: clamp(140px, 12vw, 172px); background: #665344; }
@media (min-width: 761px) {
  .bakery-cover { background: #665344 url("/bakery-preview.webp") 38% 54% / cover no-repeat; }
}
.bakery-cover > span {
  position: absolute; top: 14px; left: 14px; padding: 5px 9px;
  border-radius: 5px; background: #fff8ed; color: #30261e;
  font: 23px/1 "Instrument Serif", Georgia, serif;
}
.landing .hero-chat {
  position: relative; width: min(420px, calc(100% - 16px)); margin: -56px 0 0 auto;
  border-color: var(--chat-line); border-radius: var(--chat-radius); box-shadow: 0 8px 24px #2915471a;
}
.landing .chat-header { padding: 12px 16px; gap: 10px; }
.landing .chat-header h2 { font-size: .9375rem; }
.landing .chat-header p { font-size: .8125rem; }
.landing .chat-header #active-site { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.landing .chat-icon { width: 33px; height: 33px; border-radius: 8px; }
.sample-preview { display: grid; gap: 12px; padding: 16px; background: #fff; font-size: .9375rem; line-height: 1.55; }
.sample-question, .sample-answer { padding: 10px 12px; max-width: 94%; }
.sample-question { justify-self: end; border-radius: 9px 9px 2px 9px; }
.sample-answer { justify-self: start; border-radius: 9px 9px 9px 2px; }
.sample-answer p { margin: 0; }
.sample-answer strong { white-space: nowrap; }
.sample-source { display: inline-flex; align-items: center; min-height: 28px; margin-top: 5px; font-size: .8125rem; text-underline-offset: 2px; }
.sample-action {
  justify-self: start; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 7px;
  background: white; color: var(--green); font-size: .875rem; font-weight: 650;
}
.sample-action:hover:not(:disabled) { background: var(--lavender); }
.sample-action:disabled { opacity: .65; }
.demo-caption { margin: 12px 2px 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.demo-stage:has(.demo-state:not([hidden])) .demo-website { display: none; }
.demo-stage:has(.demo-state:not([hidden])) .demo-caption { display: none; }
.demo-stage:has(.demo-state:not([hidden])) .hero-chat { width: 100%; margin: 0; }
.landing .hero-chat .messages { height: clamp(170px, 31vh, 300px); }
.landing .hero-chat .messages:has(.empty) { height: 125px; }

.preparation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 285px;
  padding: 24px 18px;
  text-align: center;
  background: radial-gradient(ellipse at top, var(--chat-answer), white 72%);
}
.preparation-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  border: 1px solid var(--chat-line);
  border-radius: 19px;
  background: white;
  box-shadow: 0 6px 18px #29154715;
}
.preparation h3 { margin: 0; font-size: clamp(1rem, 2.25vw, 1.22rem); }
.preparation p { max-width: 36ch; margin: 8px 0 0; color: var(--chat-muted); font-size: .88rem; line-height: 1.5; }
.preparation-track {
  width: min(180px, 64%);
  height: 5px;
  margin: 16px 0 4px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--chat-icon);
}
.preparation-track::before {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a383f1, var(--chat-accent));
  animation: reading-site 1.6s ease-in-out infinite alternate;
}
@keyframes reading-site {
  from { transform: translateX(0); }
  to { transform: translateX(122%); }
}
@media (prefers-reduced-motion: reduce) {
  .preparation-track::before { animation: none; transform: translateX(60%); }
}
.preparation .preparation-hint { min-height: 2lh; font-size: .78rem; }
.preparation-error .chat-icon { margin-bottom: 14px; }
.preparation-error a { margin-top: 14px; color: var(--chat-link); font-size: .85rem; font-weight: 650; text-underline-offset: 3px; }

.section-title,
.closing h2 {
  margin: 0; font: 650 clamp(26px, 2.4vw, 32px)/1.25 Inter, "Segoe UI", sans-serif;
  letter-spacing: -.035em;
}
.how-it-works { padding-block: 40px 56px; border-top: 1px solid var(--line); }
.steps,
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps { padding: 0; margin: 24px 0 0; list-style: none; counter-reset: demo-step; }
.steps li { counter-increment: demo-step; padding: 18px 14px 0 0; border-top: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(demo-step); display: block; margin-bottom: 11px;
  color: var(--green); font-size: .72rem; font-weight: 750; letter-spacing: .08em;
}
.steps h3, .example-grid h3 { margin: 0; font-size: 1.05rem; }
.steps p, .example-grid p, .faq-list p { margin: 8px 0 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }

.demo-examples { padding: 32px; border: 1px solid #e9e3f3; border-radius: 16px; background: #f6f3fc; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-size: .8125rem; text-underline-offset: 3px; }
.example-grid { gap: 12px; }
.example-grid article {
  display: flex; flex-direction: column; align-items: start; min-width: 0;
  padding: 20px; border: 1px solid #e5dfee; border-radius: 12px; background: white;
}
.example-copy { flex: 1; min-width: 0; }
.example-grid p { margin-bottom: 14px; }
.example-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: auto; padding: 0;
  background: transparent; border: 0; color: var(--green); font-size: .875rem;
  font-weight: 650; text-align: left; text-decoration: none; white-space: nowrap;
}
.example-link:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.example-link:disabled { opacity: .6; }

.faq { padding-block: 64px; }
.faq-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 24px; }
.faq-heading > p { color: var(--muted); font-size: .875rem; line-height: 1.6; margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; min-height: 58px; cursor: pointer; padding: 16px 2px; color: var(--ink); font-size: .9375rem; line-height: 1.5; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-right: 5px; }
.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list p { margin: 0 0 20px; padding-right: 30px; max-width: 78ch; }

.closing {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px;
  padding: 36px; border-radius: 16px; color: white; background: #29213d;
}
.closing h2 { font-size: clamp(26px, 2.4vw, 32px); }
.closing-copy p { margin: 12px 0 0; color: #e0d4ef; font-size: .9375rem; line-height: 1.6; }
.closing .setup-help { margin: 0; color: #e0d4ef; }
.closing .setup-help strong { color: #fff; }
.closing :focus-visible { outline-color: #cbb1ff; }
.closing .url-row input:focus-visible { outline-color: var(--accent); }

.assistant-tools { margin-top: 24px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.assistant-tools > summary { cursor: pointer; width: fit-content; color: var(--green); font-weight: 700; font-size: .9rem; }
.assistant-tools-content { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.8fr); gap: 12px; margin-top: 12px; align-items: start; }
.assistant-tools .install { margin-top: 0; }
.assistant-tools .panel { padding: 16px; border-color: var(--line); }
.landing footer { flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; font-size: .78rem; }
.landing footer a { font-size: inherit; }

@media (max-width: 980px) {
  .landing .hero h1 { font-size: clamp(44px, 5.2vw, 52px); }
  .demo-stage { padding: 13px; }
}

@media (max-width: 760px) {
  .save-prompt { flex-direction: column; align-items: stretch; }
  .landing .topbar-inner, .landing .workspace { width: calc(100% - 36px); }
  .landing .topbar-inner { min-height: 62px; }
  .landing .topbar nav { display: none; }
  .hero, .assistant-tools-content { grid-template-columns: 1fr; }
  .hero { padding-block: 30px 40px; gap: 24px; }
  .hero-copy { padding-top: 0; }
  .landing .hero h1 { font-size: clamp(38px, 8vw, 48px); }
  .landing .hero .intro { margin: 16px 0 20px; }
  .demo-stage { width: 100%; max-width: 560px; justify-self: center; padding: 12px; background: var(--lavender); }
  .demo-stage .demo-website { display: none; }
  .landing .hero-chat { width: 100%; margin: 0; }
  .landing .sample-preview { font-size: 1rem; }
  .landing .sample-source, .landing .sample-action { font-size: .875rem; }
  .landing .sample-source { min-height: 44px; }
  .landing .chat-header h2 { font-size: 1rem; }
  .landing .chat-header p { font-size: .875rem; }
  .closing { grid-template-columns: 1fr; gap: 24px; }
  .example-grid { grid-template-columns: 1fr; }
  .demo-examples { padding: 20px; }
  .example-grid article { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px; }
  .example-copy { flex: 1 1 10rem; }
  .example-grid h3 { font-size: 1rem; }
  .example-grid p { font-size: .875rem; margin: 6px 0 0; overflow-wrap: anywhere; }
  .example-link { flex: 0 0 auto; margin: 0; font-size: .8125rem; }
  .faq { padding-block: 44px; }
  .faq-heading { margin-bottom: 18px; }
  .closing { padding: 24px; }
}

@media (max-width: 500px) {
  .topbar-actions { gap: 10px; }
  .topbar-actions [data-account-link] { font-size: .875rem; }
  .topbar-actions .nav-cta { display: none; }
  .landing .url-row { flex-direction: column; gap: 6px; }
  .landing .url-row .primary { padding-inline: 12px; font-size: 1rem; }
  .landing .url-row input { padding-inline: 12px; font-size: 1rem; }
  .landing .hero-chat { margin-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 17px; margin-top: 24px; }
  .steps li { padding-top: 12px; }
  .landing .topbar-inner { gap: 12px; }
  .landing .wordmark { font-size: 21px; gap: 8px; }
  .topbar-actions .nav-cta { min-height: 44px; padding-inline: 10px; font-size: .875rem; }
}

.visitor-tasks { margin: 0 0 48px; }
.visitor-tasks dl { margin: 20px 0 0; border-top: 1px solid var(--line); }
.visitor-tasks dl > div {
  display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; align-items: baseline;
  gap: 12px 24px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.visitor-tasks dt { font-weight: 650; }
.visitor-tasks dd { margin: 0; max-width: 74ch; color: var(--muted); line-height: 1.55; }
.demo-quota { margin: 10px 0 6px; color: var(--chat-muted); font-size: .8125rem; }
.demo-finish .primary { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.landing:has(#demo-finish:not([hidden])) #save-prompt { display: none; }
@media (max-width: 500px) {
  .visitor-tasks dl > div { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 860px) {
  .homepage .topbar-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .homepage .topbar nav { display: flex; order: 1; width: 100%; flex-wrap: wrap; gap: 0 18px; }
  .homepage .topbar nav a { display: inline-flex; align-items: center; min-height: 42px; }
}
