:root {
  --ink: #18201d;
  --muted: #64706b;
  --line: #dce4df;
  --paper: #fbfcfa;
  --card: rgba(255, 255, 255, 0.88);
  --accent: #176b56;
  --accent-dark: #0d4f3f;
  --accent-soft: #dff2eb;
  --warm: #e7a766;
  --shadow: 0 30px 80px rgba(28, 58, 48, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 107, 86, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 86, 0.035) 1px, transparent 1px),
    #f6f8f5;
  background-size: 54px 54px;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; z-index: 2000; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); border-radius: 9px; color: white; background: var(--accent); font-size: 12px; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.page-glow-one {
  width: 480px;
  height: 480px;
  top: -260px;
  right: -120px;
  background: radial-gradient(circle, rgba(91, 181, 151, 0.21), transparent 68%);
}

.page-glow-two {
  width: 420px;
  height: 420px;
  top: 600px;
  left: -280px;
  background: radial-gradient(circle, rgba(231, 167, 102, 0.16), transparent 68%);
}

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(23, 107, 86, 0.24);
}

.brand-mark span {
  width: 2px;
  border-radius: 2px;
  background: white;
}

.brand-mark span:nth-child(1), .brand-mark span:nth-child(5) { height: 7px; opacity: .7; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(4) { height: 12px; }
.brand-mark span:nth-child(3) { height: 17px; }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #496058;
  background: rgba(255, 255, 255, .6);
  font-size: 13px;
  font-weight: 600;
}

.privacy-pill svg { width: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions > a { color: #53635c; font-size: 13px; font-weight: 700; text-decoration: none; }
.header-actions > a:hover { color: var(--accent); }
.header-text-button, .theme-toggle { border: 0; color: #53635c; background: transparent; font-size: 12px; font-weight: 800; }
.theme-toggle { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.7); }
.prominent-theme-toggle { position: fixed; z-index: 900; right: 22px; bottom: 24px; width: 50px; min-width: 50px; height: 50px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(23,107,86,.38); border-radius: 50%; color: var(--accent-dark); background: linear-gradient(135deg, #e3f5ed, #fff7eb); box-shadow: 0 12px 32px rgba(23,107,86,.24); }
.prominent-theme-toggle:hover { border-color: var(--accent); transform: translateY(-3px) scale(1.04); box-shadow: 0 17px 38px rgba(23,107,86,.3); }
.theme-toggle-icon { width: 28px; height: 28px; margin: 0; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: 14px; line-height: 1; }
.theme-toggle.switching { animation: theme-button-spin .5s cubic-bezier(.2,.8,.2,1); }
body, .site-header, .workflow-card, .before-create-card, .before-create-facts > div, .benefits article, .auth-dialog, .tour-card, .toast, .auth-form input:not([type="checkbox"]), .theme-toggle { transition: color .38s ease, background-color .38s ease, border-color .38s ease, box-shadow .38s ease; }
::view-transition-old(root) { animation: theme-old .42s ease both; }
::view-transition-new(root) { animation: theme-reveal .48s cubic-bezier(.2,.75,.2,1) both; }
@keyframes theme-old { to { opacity: .72; transform: scale(.995); } }
@keyframes theme-reveal { from { clip-path: circle(0 at calc(100% - 47px) calc(100% - 49px)); } to { clip-path: circle(150% at calc(100% - 47px) calc(100% - 49px)); } }
@keyframes theme-button-spin { from { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.82); } to { transform: rotate(360deg) scale(1); } }
.mobile-menu-button { display: none; width: 38px; height: 36px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.8); }
.mobile-menu-button span { height: 2px; margin: 3px 0; display: block; border-radius: 2px; background: var(--ink); }
.account-actions { display: flex; align-items: center; }
.account-login-button { min-height: 34px; padding: 0 15px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); background: rgba(255,255,255,.7); font-size: 11px; font-weight: 800; }
.account-login-button:hover { color: white; background: var(--accent); }
.account-login-button[hidden] { display: none; }

.account-menu-wrap { position: relative; }
.account-menu-wrap[hidden] { display: none; }
.account-menu-button { min-height: 34px; padding: 4px 12px 4px 5px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.7); font-size: 11px; font-weight: 800; }
.demo-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: 11px; }
.account-dropdown { position: absolute; z-index: 20; top: calc(100% + 9px); right: 0; width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 18px 50px rgba(20,45,35,.18); }
.account-dropdown[hidden] { display: none; }
.account-dropdown a, .account-dropdown button { width: 100%; padding: 9px 8px; display: block; border: 0; border-radius: 8px; color: var(--muted); background: none; font-size: 11px; font-weight: 700; text-align: left; text-decoration: none; }
.account-dropdown a:hover, .account-dropdown button:hover { color: var(--accent); background: var(--accent-soft); }
.account-dropdown hr { margin: 4px 0; border: 0; border-top: 1px solid var(--line); }

.auth-modal { position: fixed; z-index: 1000; inset: 0; width: 100%; height: 100%; padding: 24px; display: flex; align-items: center; justify-content: center; }
.auth-modal[hidden] { display: none; }
.auth-backdrop { position: absolute; inset: 0; border: 0; background: rgba(12,26,21,.62); cursor: default; backdrop-filter: blur(5px); }
.auth-dialog { position: relative; z-index: 1; width: min(430px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 31px; border: 1px solid rgba(255,255,255,.82); border-radius: 22px; background: linear-gradient(145deg, #fff 0%, #f8fbf9 100%); box-shadow: 0 30px 90px rgba(8,31,23,.3); text-align: left; animation: auth-dialog-in .18s ease-out; }
.auth-close { position: absolute; top: 17px; right: 17px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: #f2f5f3; font-size: 24px; line-height: 1; }
.auth-mark { margin-bottom: 20px; }
.auth-dialog h2 { margin: 0 40px 8px 0; font-family: "Manrope", sans-serif; font-size: 27px; letter-spacing: -.04em; }
.auth-intro { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-tabs { margin-bottom: 22px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; background: #eef3f0; }
.auth-tabs[hidden] { display: none; }
.auth-tabs button { min-height: 39px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.auth-tabs button.active { color: var(--accent-dark); background: white; box-shadow: 0 4px 15px rgba(28,58,48,.08); }
.google-auth-button { min-height: 44px; margin-bottom: 16px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-size: 12px; font-weight: 700; }
.google-auth-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.google-auth-button svg { width: 18px; height: 18px; flex: none; }
.google-auth-button[hidden] { display: none; }
.auth-divider { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-divider[hidden] { display: none; }
.auth-form { display: grid; gap: 8px; }
.auth-form[hidden] { display: none; }
.auth-form label { margin-top: 5px; color: #374740; font-size: 11px; font-weight: 800; }
.password-label-row { margin-top: 5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.password-label-row label { margin: 0; }
.password-label-row button { padding: 0; border: 0; color: var(--accent); background: none; font-size: 10px; font-weight: 800; }
.password-label-row button:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.auth-form input:not([type="checkbox"]) { width: 100%; height: 47px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 11px; outline: none; background: #fbfcfb; }
.auth-form input:not([type="checkbox"]):focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,107,86,.1); }
.auth-form input.invalid { border-color: #c94d4d; box-shadow: 0 0 0 3px rgba(201,77,77,.08); }
.auth-form small { color: var(--muted); font-size: 10px; }
.auth-form .primary-button { margin-top: 12px; }
.password-input-shell { position: relative; }
.password-input-shell input { padding-right: 62px !important; }
.password-input-shell button { position: absolute; top: 50%; right: 12px; padding: 4px; transform: translateY(-50%); border: 0; color: var(--accent); background: transparent; font-size: 9px; font-weight: 800; }
.field-error { min-height: 0; color: #b23b3b !important; font-weight: 600; }
.field-error:empty { display: none; }
.password-strength { display: grid; gap: 5px; }
.password-strength > span { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.password-strength i { height: 3px; border-radius: 999px; background: #dfe6e2; }
.password-strength.weak i:nth-child(1) { background: #c94d4d; }
.password-strength.medium i:nth-child(-n+2) { background: var(--warm); }
.password-strength.strong i { background: var(--accent); }
.password-strength.weak small { color: #b23b3b; }
.password-strength.medium small { color: #9a632c; }
.password-strength.strong small { color: var(--accent); }
.terms-check { margin-top: 7px !important; display: grid; grid-template-columns: 17px 1fr; align-items: start; gap: 8px; color: var(--muted) !important; font-weight: 500 !important; line-height: 1.5; }
.terms-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.terms-check a { color: var(--accent); font-weight: 700; text-underline-offset: 2px; }
.auth-status { min-height: 18px; margin: 12px 0 0; color: #b23b3b; font-size: 12px; font-weight: 600; text-align: center; }
.auth-status.success { color: var(--accent); }
.auth-privacy { margin: 13px 0 0; color: #84908a; font-size: 9px; line-height: 1.5; text-align: center; }
.forgot-password-panel[hidden] { display: none; }
.forgot-success-view[hidden] { display: none; }
.auth-back-button { margin: -3px 0 20px; padding: 0; display: inline-flex; align-items: center; gap: 7px; border: 0; color: var(--accent); background: none; font-size: 11px; font-weight: 800; }
.auth-back-button > span:first-child { font-size: 17px; line-height: 1; }
.forgot-password-icon { width: 48px; height: 48px; margin-bottom: 17px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: var(--accent-soft); }
.forgot-password-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.forgot-password-panel h3 { margin: 0 0 8px; font-family: "Manrope", sans-serif; font-size: 22px; letter-spacing: -.035em; }
.forgot-password-panel p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.forgot-password-icon.success { color: white; background: var(--accent); font-size: 23px; font-weight: 800; }
.auth-resend-button { width: 100%; min-height: 45px; }
.verification-panel[hidden] { display: none; }
.verification-panel h3 { margin: 0 0 8px; font-family: "Manrope", sans-serif; font-size: 22px; }
.verification-panel > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.verification-actions { display: grid; gap: 9px; }
.verification-actions .primary-button, .verification-actions .secondary-button { width: 100%; min-height: 45px; }
.compact-text-button { margin: 3px auto 0; }
.auth-benefits { margin-top: 13px; padding-top: 13px; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; border-top: 1px solid var(--line); }
.auth-benefits span { padding: 5px 8px; border-radius: 999px; color: #587067; background: #edf5f1; font-size: 8px; font-weight: 800; }
body.modal-open { overflow: hidden; }
.caps-lock-warning { color: #9a632c !important; font-weight: 700; }
.inline-retry-button { margin: 2px 0 12px; padding: 0; border: 0; color: var(--accent); background: none; font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.toast-region { position: fixed; z-index: 2200; right: 22px; bottom: 22px; display: grid; gap: 10px; pointer-events: none; }
.toast { width: min(360px, calc(100vw - 32px)); padding: 13px 15px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid rgba(23,107,86,.2); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 18px 55px rgba(15,42,32,.18); font-size: 12px; line-height: 1.5; animation: toast-in .2s ease-out; }
.toast::before { content: "✓"; width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: 10px; font-weight: 900; }
.toast.info::before { content: "i"; background: var(--warm); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.tour-overlay { position: fixed; z-index: 1500; inset: 0; padding: 20px; display: grid; place-items: center; }
.tour-overlay[hidden] { display: none; }
.tour-card { position: relative; z-index: 1; width: min(420px, 100%); padding: 31px; border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(8,31,23,.3); text-align: left; }
.tour-count { position: absolute; top: 24px; right: 25px; color: var(--muted); font-size: 10px; font-weight: 800; }
.tour-icon { width: 46px; height: 46px; margin-bottom: 19px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 900; }
.tour-card h2 { margin: 0 0 10px; font-family: "Manrope"; font-size: 25px; letter-spacing: -.04em; }
.tour-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.tour-dots { margin: 24px 0 18px; display: flex; gap: 6px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots i.active { width: 22px; border-radius: 999px; background: var(--accent); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-actions .text-button { margin: 0; }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { --ink: #e9f1ed; --muted: #9eada6; --line: #33463e; --paper: #142019; --card: rgba(26,40,33,.92); --accent: #62c6a4; --accent-dark: #8bd8be; --accent-soft: #233f34; background-color: #111b16; background-image: linear-gradient(rgba(98,198,164,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(98,198,164,.035) 1px, transparent 1px); }
html[data-theme="dark"] .workflow-card, html[data-theme="dark"] .auth-dialog, html[data-theme="dark"] .tour-card, html[data-theme="dark"] .toast, html[data-theme="dark"] .benefits article { color: var(--ink); background: #1a2821; border-color: var(--line); }
html[data-theme="dark"] .before-create-card { background: linear-gradient(135deg, #1b3027, #2a241c); }
html[data-theme="dark"] .before-create-facts > div, html[data-theme="dark"] .auth-tabs button.active, html[data-theme="dark"] .auth-form input:not([type="checkbox"]), html[data-theme="dark"] .theme-toggle, html[data-theme="dark"] .google-auth-button, html[data-theme="dark"] .account-dropdown, html[data-theme="dark"] .account-menu-button { color: var(--ink); background: #213129; border-color: var(--line); }
html[data-theme="dark"] .prominent-theme-toggle { color: var(--ink); background: linear-gradient(135deg, #203f33, #352b20); border-color: rgba(98,198,164,.45); }
html[data-theme="dark"] .auth-tabs, html[data-theme="dark"] .runtime-platform-switch { background: #111b16; }
html[data-theme="dark"] .runtime-platform-switch button.active { color: var(--ink); background: #213129; }
html[data-theme="dark"] .guide-command { background: #0d1511; }

@keyframes auth-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

main { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.hero { padding: 68px 0 36px; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow > span:first-child { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px rgba(231,167,102,.15); }
.eyebrow > span:last-child { display: inline; }

h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(45px, 6.5vw, 78px);
  line-height: 1.04;
  letter-spacing: -.06em;
}

h1 em { color: var(--accent); font-style: normal; }

.hero-copy {
  width: min(620px, 100%);
  margin: 24px auto 40px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.before-create-card { width: min(980px, 100%); margin: -10px auto 76px; padding: 38px; display: grid; grid-template-columns: 1fr; gap: 25px; border: 1.5px solid rgba(23,107,86,.35); border-radius: 24px; background: linear-gradient(135deg, #edf8f3, #fffaf4); box-shadow: 0 22px 60px rgba(28,58,48,.11); text-align: left; }
.guide-language { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.guide-language > span { margin-right: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.guide-language button { min-width: 76px; height: 34px; border: 1px solid #cddbd4; border-radius: 999px; color: #65736d; background: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; }
.guide-language button.active { border-color: var(--accent); color: white; background: var(--accent); box-shadow: 0 6px 15px rgba(23,107,86,.18); }
.before-create-heading > span { display: inline-block; margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.before-create-heading h2 { margin: 0 0 9px; font-family: "Manrope"; font-size: clamp(26px, 4vw, 39px); letter-spacing: -.05em; }
.before-create-heading p { margin: 0; color: #53635c; font-size: 15px; font-weight: 500; line-height: 1.65; }
.guide-title { padding-top: 22px; border-top: 1px solid rgba(23,107,86,.16); }
.guide-title span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-title h3 { margin: 7px 0 0; font-family: "Manrope"; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.before-create-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.before-create-facts > div { padding: 20px; border: 1px solid rgba(211,224,217,.9); border-radius: 14px; background: rgba(255,255,255,.86); }
.before-create-facts b { width: 27px; height: 27px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: 11px; }
.before-create-facts strong, .before-create-facts span { display: block; }
.before-create-facts strong { margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 800; }
.before-create-facts span { color: #596861; font-size: 12px; font-weight: 500; line-height: 1.65; }
.before-create-facts code { color: var(--accent-dark); }
.before-create-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding-top: 17px; border-top: 1px solid rgba(23,107,86,.14); }
.before-create-actions .primary-button { width: auto; min-width: 135px; min-height: 42px; text-decoration: none; }
.before-create-actions > a:not(.primary-button) { color: var(--accent); font-size: 11px; font-weight: 700; text-underline-offset: 3px; }
.guide-command { padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 14px; color: white; background: var(--ink); }
.guide-command span { display: block; margin-bottom: 6px; color: #a8b8b1; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.guide-command code { color: #dff2eb; font-size: 12px; }
.guide-command ul { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 22px; color: #d1dad6; font-size: 11px; font-weight: 600; }
.event-example { padding: 19px 21px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; border: 1px solid #d7e5de; border-radius: 14px; background: rgba(255,255,255,.75); }
.event-example strong { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.event-example p { margin: 0; color: #596861; font-size: 11px; font-weight: 500; line-height: 1.65; }
.event-example code { padding: 10px 12px; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 10px; white-space: nowrap; }
.creator-intro { width: min(760px, 100%); margin: 0 auto 20px; text-align: left; }
.creator-intro span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.creator-intro h2 { margin: 7px 0 4px; font-family: "Manrope"; font-size: 28px; letter-spacing: -.04em; }
.creator-intro p { margin: 0; color: var(--muted); font-size: 13px; }

.workflow-card {
  width: min(760px, 100%);
  min-height: 510px;
  margin: 0 auto;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(205, 216, 210, .88);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: left;
}

.steps { display: flex; align-items: center; padding: 2px 10px 24px; border-bottom: 1px solid #e7ece9; }
.step { display: flex; align-items: center; gap: 9px; color: #9ba49f; font-size: 12px; white-space: nowrap; }
.step span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #d5ddd8; border-radius: 50%; font-size: 11px; }
.step.active { color: var(--accent); }
.step.active span { border-color: var(--accent); color: white; background: var(--accent); }
.step.complete span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.step-line { height: 1px; flex: 1; margin: 0 14px; background: #dfe5e1; }

.panel { display: none; padding: 36px 12px 10px; animation: rise .35s ease both; }
.panel.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.panel-heading { display: flex; gap: 16px; margin-bottom: 30px; }
.panel-number { padding-top: 4px; color: var(--warm); font-family: "Manrope"; font-size: 12px; font-weight: 800; }
.panel h2 { margin: 0 0 7px; font-family: "Manrope"; font-size: 24px; letter-spacing: -.035em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 14px; }

label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.input-shell { position: relative; display: flex; align-items: center; }
.input-shell input {
  width: 100%;
  height: 64px;
  padding: 0 84px 0 52px;
  outline: none;
  border: 1.5px solid #d6dfda;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  transition: border .2s, box-shadow .2s;
}
.input-shell input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(23,107,86,.09); }
.input-shell input.invalid { border-color: #c85c53; box-shadow: 0 0 0 4px rgba(200,92,83,.08); }
#character-count { position: absolute; right: 17px; color: #929d98; font-size: 11px; }
.field-hint { margin: 10px 2px 24px; color: var(--muted); font-size: 12px; }
.field-hint.error { color: #b14840; }
.input-shell .voice-input-button { position: absolute; z-index: 1; left: 9px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #809089; background: transparent; transition: color .2s, background .2s, box-shadow .2s; }
.input-shell .voice-input-button:hover { color: var(--accent); background: var(--accent-soft); }
.input-shell .voice-input-button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(23,107,86,.15); }
.input-shell .voice-input-button:disabled { cursor: wait; }
.input-shell .voice-input-button.recording { color: #fff; background: #c84c45; box-shadow: 0 0 0 5px rgba(200,76,69,.12); }
.input-shell .voice-input-button.recording svg { display: none; }
.input-shell .voice-input-button.recording::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.input-shell .voice-input-button.processing { color: #fff; background: var(--accent); box-shadow: 0 0 0 5px rgba(23,107,86,.11); }
.input-shell .voice-input-button svg { position: static; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.voice-input-status { margin: -16px 2px 20px; color: var(--accent); font-size: 11px; }
.voice-input-status:empty { display: none; }
.voice-input-status.error { color: #b14840; }
.advanced-toggle { margin: -10px 2px 20px; padding: 0; border: 0; color: var(--accent); background: none; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.advanced-phonemes { margin: -7px 0 22px; padding: 16px; border: 1px solid #d7e4dd; border-radius: 12px; background: #f4faf7; }
.advanced-phonemes input { width: 100%; height: 48px; padding: 0 13px; outline: none; border: 1.5px solid #cfdbd5; border-radius: 10px; color: var(--ink); background: white; font-family: monospace; }
.advanced-phonemes input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(23,107,86,.08); }
.advanced-phonemes input.invalid { border-color: #c85c53; }
.advanced-phonemes p { margin: 8px 1px 0; color: var(--muted); font-size: 10px; }
.advanced-phonemes p.error { color: #b14840; }
.phoneme-format { width: fit-content; min-height: 0; margin: 8px 1px 0; padding: 4px 8px; border-radius: 999px; color: var(--accent); background: #e4f3ed; font-size: 9px; font-weight: 800; }
.phoneme-format:empty { display: none; }

.primary-button, .secondary-button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.primary-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(23,107,86,.2);
}
.primary-button:hover { transform: translateY(-1px); background: var(--accent-dark); box-shadow: 0 13px 30px rgba(23,107,86,.24); }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; box-shadow: none; }
.primary-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.primary-button.compact { width: auto; min-width: 190px; padding: 0 24px; }
.secondary-button { padding: 0 26px; border: 1px solid var(--line); color: #52615b; background: white; }
.secondary-button:hover { background: #f4f7f5; }
.button-row { display: flex; justify-content: space-between; margin-top: 26px; }

.pronunciation-list { display: grid; gap: 11px; }
.voice-preview-control { margin-bottom: 18px; }
.voice-preview-control label { margin-bottom: 7px; }
.voice-profiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.voice-profile {
  min-height: 48px;
  padding: 8px 10px;
  border: 1.5px solid #d6dfda;
  border-radius: 11px;
  color: #596761;
  background: white;
  font-size: 12px;
  font-weight: 700;
}
.voice-profile span { display: block; margin-top: 2px; color: #929c97; font-size: 9px; font-weight: 500; }
.voice-profile:hover { border-color: #8db3a6; }
.voice-profile.selected { border-color: var(--accent); color: var(--accent); background: #f2faf6; box-shadow: 0 0 0 3px rgba(23,107,86,.07); }
.voice-preview-control p, .pronunciation-note { margin: 7px 2px 0; color: var(--muted); font-size: 11px; }
.pronunciation-note { margin-top: 12px; }
.microphone-test { margin-top: 17px; padding: 18px; display: grid; gap: 10px; border: 1px solid #d6e3dc; border-radius: 16px; background: #f7faf8; }
.microphone-test strong, .microphone-test span { display: block; }
.microphone-test strong { margin-bottom: 4px; font-size: 13px; }
.microphone-test span { color: var(--muted); font-size: 10px; }
.microphone-test button { min-height: 40px; padding: 0 16px; }
.microphone-test-heading { margin-bottom: 3px; }
.microphone-test-step { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid #dfe8e3; border-radius: 12px; background: #fff; }
.test-step-number { width: 28px; height: 28px; display: grid !important; place-items: center; border-radius: 50%; color: var(--accent) !important; background: #e7f4ef; font-size: 12px !important; font-weight: 800; }
.test-step-copy strong { margin: 0 0 3px; }
.mic-test-result { font-size: 11px; font-weight: 700; }
.test-step-copy .mic-test-result:not(:empty) { margin-top: 7px; }
.active-test-result { padding: 0 4px; }
.active-test-result:empty { display: none; }
.mic-test-result.listening { color: var(--warm); }
.mic-test-result.success { color: var(--accent); }
.mic-test-result.failure { color: #b14840; }
.quality-score { padding: 11px 13px; border-radius: 10px; font-size: 11px; font-weight: 650; line-height: 1.5; }
.quality-score:empty { display: none; }
.quality-score.pending { color: #6f6654; background: #f8f3e8; }
.quality-score.excellent { color: #126c55; background: #e8f6f0; }
.quality-score.good { color: #456c23; background: #f0f6e8; }
.quality-score.poor { color: #a23e38; background: #fbeceb; }
.beta-price-card { margin-top: 18px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #cfe1d8; border-radius: 14px; background: linear-gradient(135deg, #f4fbf8, #fff); }
.beta-price-copy { display: grid; gap: 4px; }
.beta-price-copy strong { color: var(--ink); font-size: 14px; }
.beta-price-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.beta-badge { width: fit-content; padding: 4px 8px; border-radius: 999px; color: var(--accent); background: #e4f3ed; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.beta-price { flex: 0 0 auto; color: var(--accent); font-size: 25px; font-weight: 800; letter-spacing: -.04em; }
.pronunciation-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1.5px solid #dce3df;
  border-radius: 14px;
  background: #fff;
  transition: border .2s, background .2s;
}
.pronunciation-option.selected { border-color: var(--accent); background: #f2faf6; }
.pronunciation-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-mark { width: 19px; height: 19px; padding: 4px; border: 1.5px solid #b4c0ba; border-radius: 50%; background: white; }
.selected .radio-mark { border-color: var(--accent); }
.selected .radio-mark::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--accent); }
.pronunciation-copy strong { display: block; margin-bottom: 3px; font-size: 15px; }
.pronunciation-copy { min-width: 0; }
.pronunciation-copy small { display: block; color: var(--muted); }
.pronunciation-copy .pronunciation-meta { margin-bottom: 7px; font-size: 11px; }
.pronunciation-copy .ipa { margin-bottom: 3px; color: var(--accent); font-family: Georgia, serif; font-size: 14px; }
.pronunciation-copy small b { margin-right: 5px; color: #66746e; font-family: "DM Sans", sans-serif; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.pronunciation-copy .model-phones { overflow-wrap: anywhere; font-family: monospace; font-size: 11px; }
.play-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d9e2dd; border-radius: 50%; color: var(--accent); background: white; }
.play-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.play-button svg { width: 15px; fill: currentColor; }

.loading-state, .success-state { padding: 30px 0 10px; text-align: center; }
.loader { position: relative; width: 70px; height: 70px; margin: 0 auto 23px; border: 2px solid #dbe9e3; border-radius: 50%; }
.loader::before { content: ""; position: absolute; inset: -2px; border: 2px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
.loader span { position: absolute; inset: 23px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.65); opacity: .55; } }
.loading-kicker, .success-kicker { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.build-list { width: min(310px, 100%); margin: 30px auto 0; display: grid; gap: 12px; text-align: left; color: var(--muted); font-size: 13px; }
.build-list div { display: flex; align-items: center; gap: 10px; }
.build-list i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-style: normal; font-size: 11px; }
.build-list .working i { border: 2px solid #cbd7d1; border-top-color: var(--accent); background: none; animation: spin 1s linear infinite; }

.success-icon { width: 66px; height: 66px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 9px rgba(223,242,235,.45); }
.success-icon svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 2; }
.created-word { margin: 18px auto 24px; color: var(--accent); font-family: "Manrope"; font-size: 25px; font-weight: 800; }
.download-button { width: min(320px, 100%); margin: 0 auto; }
.runtime-platform-switch { width: min(460px, 100%); margin: 16px auto 0; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; background: #eef3f0; }
.runtime-platform-switch button { min-height: 34px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.runtime-platform-switch button.active { color: var(--accent-dark); background: white; box-shadow: 0 4px 15px rgba(28,58,48,.08); }
.runtime-download-card {
  width: min(460px, 100%);
  margin: 14px auto 0;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7f9f7;
  text-align: left;
}
.runtime-download-card strong, .runtime-download-card span { display: block; }
.runtime-download-card strong { margin-bottom: 3px; font-size: 13px; }
.runtime-download-card span { color: var(--muted); font-size: 10px; }
.runtime-button { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; text-decoration: none; font-size: 11px; white-space: nowrap; }
.quick-start { width: min(460px, 100%); margin: 16px auto 0; padding: 14px 17px; border-radius: 13px; background: #f2faf6; text-align: left; }
.quick-start > strong { font-size: 12px; }
.quick-start ol { margin: 9px 0 0; padding-left: 19px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.quick-start code { padding: 2px 5px; border-radius: 4px; color: var(--accent-dark); background: #e4f2ec; font-size: 10px; }
.checksum-button { margin: 9px 0 0; padding: 0; border: 0; color: var(--accent); background: none; font-size: 10px; font-weight: 700; }
.guide-links { width: min(460px, 100%); margin: 12px auto 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 10px; }
.guide-links span { color: var(--muted); }
.guide-links a, .pre-guide-links a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.text-button { margin: 18px auto 26px; border: 0; color: var(--muted); background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.trust-row { display: flex; justify-content: center; align-items: center; gap: 10px; color: #78847f; font-size: 11px; }
.trust-row i { width: 3px; height: 3px; border-radius: 50%; background: #aab4af; }

.benefits { margin: 66px auto 90px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefits article { padding: 28px; border: 1px solid rgba(213,222,217,.8); border-radius: 18px; background: rgba(255,255,255,.54); text-align: left; }
.benefit-icon { width: 42px; height: 42px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.benefit-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.benefits h3 { margin: 0 0 8px; font-family: "Manrope"; font-size: 16px; }
.benefits p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.product-explainer { margin: 0 auto 100px; padding: 68px 56px; border: 1px solid rgba(205,216,210,.9); border-radius: 28px; background: rgba(255,255,255,.72); box-shadow: 0 24px 70px rgba(28,58,48,.08); }
.section-intro { width: min(620px, 100%); margin-bottom: 38px; text-align: left; }
.section-intro > span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-intro h2 { margin: 10px 0 12px; font-family: "Manrope"; font-size: clamp(29px, 4vw, 44px); letter-spacing: -.05em; }
.section-intro p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.explainer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.explainer-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.explainer-number { color: var(--warm); font-family: "Manrope"; font-size: 11px; font-weight: 800; }
.explainer-grid h3 { margin: 15px 0 8px; font-family: "Manrope"; font-size: 16px; }
.explainer-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.explainer-grid code { color: var(--accent-dark); }
.before-you-start { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.before-you-start > div { padding: 24px 27px; border-radius: 17px; background: #f2faf6; }
.before-you-start > div:last-child { background: #fbf5ed; }
.before-you-start h3 { margin: 0 0 13px; font-family: "Manrope"; font-size: 15px; }
.before-you-start ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.pre-guide-links { margin-top: 22px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.pre-guide-links p { margin: 0 auto 0 0; }

footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 36px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #84908a; font-size: 12px; }
footer span:first-child { color: #56645e; font-weight: 700; }

@media (max-width: 720px) {
  .site-header { padding: 20px 0; }
  .privacy-pill { display: none; }
  .site-header { position: relative; }
  .mobile-menu-button { display: block; }
  .header-actions { position: absolute; z-index: 50; top: 67px; right: 0; width: min(280px, calc(100vw - 40px)); padding: 15px; display: none; align-items: stretch; flex-direction: column; gap: 9px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 18px 50px rgba(20,45,35,.18); }
  .header-actions.open { display: flex; }
  .header-actions > a, .header-text-button { display: block; padding: 9px; text-align: left; }
  .prominent-theme-toggle { position: fixed; right: 14px; bottom: 16px; width: 46px; min-width: 46px; height: 46px; }
  .account-actions { padding-top: 8px; border-top: 1px solid var(--line); }
  html[data-theme="dark"] .header-actions { background: #1a2821; }
  .account-login-button { padding-inline: 11px; }
  .auth-modal { padding: 12px; }
  .auth-dialog { max-height: calc(100vh - 24px); padding: 28px 21px; border-radius: 19px; }
  .toast-region { right: 16px; bottom: 16px; }
  .hero { padding-top: 42px; }
  h1 { font-size: 44px; }
  .hero-copy { margin-bottom: 30px; font-size: 16px; }
  .before-create-card { margin-top: -8px; padding: 22px 18px; grid-template-columns: 1fr; gap: 18px; }
  .guide-language { justify-content: flex-start; flex-wrap: wrap; }
  .before-create-facts { grid-template-columns: 1fr; }
  .before-create-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .before-create-actions .primary-button { width: 100%; }
  .guide-command { align-items: flex-start; flex-direction: column; }
  .guide-command ul { padding-left: 18px; grid-template-columns: 1fr; }
  .event-example { grid-template-columns: 1fr; }
  .event-example code { overflow-x: auto; white-space: pre; }
  .workflow-card { min-height: 540px; padding: 20px 16px; border-radius: 20px; }
  .steps { padding-inline: 0; }
  .step strong { display: none; }
  .step-line { margin-inline: 9px; }
  .panel { padding: 30px 2px 8px; }
  .panel-heading { gap: 11px; }
  .panel h2 { font-size: 21px; }
  .button-row { gap: 10px; }
  .voice-profiles { grid-template-columns: 1fr; }
  .microphone-test-step { grid-template-columns: 28px 1fr; }
  .microphone-test-step button { grid-column: 1 / -1; width: 100%; }
  .beta-price-card { align-items: flex-start; }
  .secondary-button { padding-inline: 20px; }
  .primary-button.compact { min-width: 0; flex: 1; }
  .trust-row { gap: 6px; font-size: 9px; }
  .guide-links { flex-wrap: wrap; }
  .runtime-download-card { align-items: stretch; flex-direction: column; }
  .runtime-button { justify-content: center; }
  .benefits { grid-template-columns: 1fr; margin-top: 40px; }
  .product-explainer { padding: 38px 22px; }
  .explainer-grid, .before-you-start { grid-template-columns: 1fr; }
  .pre-guide-links { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pre-guide-links p { margin-bottom: 3px; }
  footer { gap: 12px; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01ms !important; }
}
