@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* CometDraw home page (signed out), as the approved design: a centered headline over the real canvas in an iPad (three
   screenshots that cross-fade, with chips that follow them), then the sections. Color and shapes are the original home
   page's: Ink, the star yellow for what came from the AI, the pen red only for pen marks; 18px panels, 12px buttons,
   round chips. */
:root {
  --bg: #eef0f2; --surface: #ffffff; --ink: #15191f; --muted: #5d6571; --line: rgba(20,30,45,.10); --soft: rgba(20,30,45,.05);
  --accent: #15191f; --accent-ink: #ffffff; --star: #ffd500; --star-soft: rgba(255,213,0,.24); --dots: #d8dce1;
  --shadow: 0 40px 90px -40px rgba(31,45,61,.45), 0 2px 6px -2px rgba(31,45,61,.12);
  --lift: 0 1px 2px rgba(31,45,61,.08);
  /* The same in both modes: the iPad bezel, the brand tile, the closing panel, the pen. */
  --device: #15191f; --device-ink: #eceef2; --pen: #f2555a;
  --ui: "Geist", "SF Pro Text", -apple-system, system-ui, "PingFang TC", sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --loop: 9s; --ease: cubic-bezier(.45, 0, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111215; --surface: #1c1e23; --ink: #eceef2; --muted: #9a9ea8; --line: rgba(255,255,255,.09); --soft: rgba(255,255,255,.06);
  --accent: #f1f2f4; --accent-ink: #121316; --star-soft: rgba(255,213,0,.14); --dots: #24272d;
  --shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 2px 6px -2px rgba(0,0,0,.4); --lift: 0 1px 2px rgba(0,0,0,.3);
  --device: #08090b; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #111215; --surface: #1c1e23; --ink: #eceef2; --muted: #9a9ea8; --line: rgba(255,255,255,.09); --soft: rgba(255,255,255,.06);
  --accent: #f1f2f4; --accent-ink: #121316; --star-soft: rgba(255,213,0,.14); --dots: #24272d;
  --shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 2px 6px -2px rgba(0,0,0,.4); --lift: 0 1px 2px rgba(0,0,0,.3);
  --device: #08090b; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { letter-spacing: -0.035em; text-wrap: balance; font-weight: 600; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; }
img, picture { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } }
.only-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-light { display: none; } :root:not([data-theme="light"]) .only-dark { display: block; } }
:root[data-theme="dark"] .only-light { display: none; } :root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="light"] .only-dark { display: none; }

/* Chinese is picked before paint; the page stays hidden until home.js has translated it, and shows anyway after 0.4 s. */
html.lang-pending body { visibility: hidden; animation: reveal 0s .4s forwards; }
@keyframes reveal { to { visibility: visible; } }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--ui); text-decoration: none; white-space: nowrap; transition: transform .15s ease, opacity .15s; }
.button:hover { opacity: .9; } .button:active { transform: translateY(1px); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button.secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button.inverse { background: #ffffff; color: #15191f; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
/* The closing panel is ink in both modes, so its ring is the star yellow. */
.close .panel :focus-visible { outline-color: var(--star); }

/* Bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.bar .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; flex-shrink: 0; }
.mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--device); color: var(--star); flex-shrink: 0; }
.mark svg { width: 18px; height: 18px; fill: currentColor; }
.bar nav { display: flex; align-items: center; gap: 6px 22px; font-size: 15px; }
.bar-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.bar-link:hover { color: var(--ink); }
.bar-link.sign-in { color: var(--ink); font-weight: 500; }

/* Language switch (中 / EN): a segmented control; each button (Terms, Privacy) or link (the home page's two addresses)
   is a full 44 px target */
#language-switch { display: flex; padding: 3px; border-radius: 12px; background: var(--soft); }
#language-switch button, #language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 400 14px var(--ui); text-decoration: none; cursor: pointer; }
#language-switch button[aria-pressed="true"], #language-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(31,45,61,.12); }

/* Hero: a tag, the centered headline, two buttons, the iPad */
.hero { padding-top: 56px; text-align: center; }
.tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgba(31,45,61,.10); font-size: 14px; color: var(--muted); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--star); flex-shrink: 0; }
.hero h1 { margin: 0 auto; max-width: 1200px; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; overflow-wrap: anywhere; }
.hero h1 span { color: var(--muted); }
/* Chinese breaks only where the translation allows (a zero-width space): 手繪標上尺寸，/ AI 幫你建成 / 圖面與模型。 */
html[lang|="zh"] .hero h1 { word-break: keep-all; line-height: 1.15; }
.hero .lead { margin: 24px auto 0; max-width: 620px; font-size: 19px; color: var(--muted); text-wrap: pretty; }
.signin-error { margin: 18px auto 0; max-width: 520px; padding: 10px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 15px; }
.signin-error[hidden] { display: none; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* The iPad: a dark bezel around the screenshots; the chips sit in a white pill over the bottom of the screen */
.device { position: relative; max-width: 1080px; margin: 64px auto 0; }
.bezel { padding: 14px; border-radius: 34px; background: var(--device); box-shadow: var(--shadow); }
.frames { display: grid; border-radius: 22px; overflow: hidden; background: var(--surface); }
.frame { grid-area: 1 / 1; }
.frame img { width: 100%; }
.frame-steps { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(31,45,61,.18); font-size: 13px; white-space: nowrap; }
.frame-steps { --step-off: transparent; --step-off-ink: #5d6571; }
.frame-steps li { padding: 4px 10px; border-radius: 999px; background: var(--step-off); color: var(--step-off-ink); }
.frame-steps li.first { background: #15191f; color: #ffffff; }
/* 9 s a round: sketch 0–3 s, model 3.5–6 s, Files 6.5–8.5 s (percent = seconds / 9). Frames 2 and 3 fade in over the
   first and out together, so the screen never dips; the chips follow. Reduced motion: the sketch and chip 1 only. */
.frame.second, .frame.third { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .frame.second { animation: frame-second var(--loop) var(--ease) infinite; }
  .frame.third { animation: frame-third var(--loop) var(--ease) infinite; }
  .frame-steps li.first { animation: step-first var(--loop) var(--ease) infinite; }
  .frame-steps li.second { animation: step-second var(--loop) var(--ease) infinite; }
  .frame-steps li.third { animation: step-third var(--loop) var(--ease) infinite; }
}
@keyframes frame-second { 0%, 33.3% { opacity: 0; } 38.9%, 94.4% { opacity: 1; } 100% { opacity: 0; } }
@keyframes frame-third { 0%, 66.7% { opacity: 0; } 72.2%, 94.4% { opacity: 1; } 100% { opacity: 0; } }
@keyframes step-first { 0%, 33.3% { background: #15191f; color: #ffffff; } 38.9%, 94.4% { background: var(--step-off); color: var(--step-off-ink); } 100% { background: #15191f; color: #ffffff; } }
@keyframes step-second { 0%, 33.3% { background: var(--step-off); color: var(--step-off-ink); } 38.9%, 66.7% { background: #15191f; color: #ffffff; } 72.2%, 100% { background: var(--step-off); color: var(--step-off-ink); } }
@keyframes step-third { 0%, 66.7% { background: var(--step-off); color: var(--step-off-ink); } 72.2%, 94.4% { background: #15191f; color: #ffffff; } 100% { background: var(--step-off); color: var(--step-off-ink); } }

/* Sections */
section:not(.hero) { padding-top: 140px; }
.eyebrow { margin-bottom: 14px; font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Three ways to start: a card each, the before and after side by side */
#start-title { max-width: 720px; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 48px; }
.way { padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--lift); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--soft); }
.way h3 { margin: 18px 6px 6px; }
.way p { margin: 0 6px 8px; color: var(--muted); }

/* Text beside a picture panel (Keep refining, Files) */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split.reverse { flex-wrap: wrap-reverse; }
.split-text { flex: 1 1 380px; min-width: 0; }
.panel-shot { position: relative; flex: 1 1 520px; min-width: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.panel-shot picture, .panel-shot img { width: 100%; height: 100%; object-fit: cover; }
.from-ai { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--star-soft); color: var(--ink); font-size: 13px; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.from-ai i { width: 7px; height: 7px; border-radius: 50%; background: var(--star); }
.dots { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.dots li { display: flex; gap: 14px; }
.dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; }
.dot.pen { background: var(--pen); } .dot.ink { background: var(--ink); } .dot.star { background: var(--star); }
.dots strong { font-weight: 600; }
.dots span:not(.dot) { color: var(--muted); }
.split-text .body { margin-top: 24px; font-size: 18px; color: var(--muted); }

/* Cards (For teams, Pricing) */
#teams-title { max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.card { padding: 28px; border-radius: 18px; background: var(--surface); }
.card h3 { margin-bottom: 8px; font-size: 20px; }
.card p { color: var(--muted); }

/* Works with your AI: a band */
.band { padding-block: 48px; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; }
.band h2 { flex: 1 1 360px; font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); text-wrap: pretty; }
.ais { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.ais li { display: flex; flex-direction: column; }
.ais span { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.ais small { font-size: 14px; color: var(--muted); }

/* Your work stays yours */
.private .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.private h2 { flex: 1 1 300px; }
.private dl { flex: 2 1 520px; min-width: 0; }
.private dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.private dl div:last-child { border-bottom: 1px solid var(--line); }
.private dt { font-weight: 600; } .private dd { color: var(--muted); }

/* FAQ: a question and its answer per card, two by two where there is room */
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.question { padding: 28px; border-radius: 18px; background: var(--surface); }
.question h3 { margin-bottom: 8px; font-size: 20px; }
.question p { color: var(--muted); }

/* Close: the dark panel in both modes, its second half in the star yellow */
.close { padding-bottom: 96px; }
.close .panel { padding: 72px 56px; border-radius: 28px; background: var(--device); color: var(--device-ink); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.close h2 span { color: var(--star); }
footer { padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
footer .footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
footer .footer-links a:hover, footer .footer-links a[aria-current="page"] { color: var(--ink); }

/* Terms and Privacy: one readable column in the home page's type; the draft note and the blanks still to fill in
   the star yellow. */
.legal { padding: 48px 0 112px; }
.legal .wrap { width: min(760px, 100% - 48px); }
.legal .draft-note { margin-bottom: 40px; padding: 14px 18px; border-radius: 12px; background: var(--star-soft); box-shadow: inset 0 0 0 1px var(--star); font-weight: 500; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.legal .updated { margin-top: 14px; color: var(--muted); }
.legal section:not(.hero) { padding-top: 48px; }
.legal h2 { margin-bottom: 14px; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.legal p + p, .legal p + ul, .legal ul + p, .legal p + dl, .legal dl + p { margin-top: 14px; }
.legal ul { display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--star); }
.legal .facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.legal .facts div:last-child { border-bottom: 1px solid var(--line); }
.legal dt { font-weight: 600; } .legal dd { color: var(--muted); overflow-wrap: anywhere; }
.legal .placeholder { padding: 1px 6px; border-radius: 6px; background: var(--star-soft); box-shadow: inset 0 0 0 1px var(--star); color: var(--ink); font: 500 .92em var(--mono); }
.legal a { text-underline-offset: 3px; }

@media (max-width: 960px) {
  .bar-link:not(.sign-in) { display: none; }
}
/* Phones: the mark, the switch and Get started; the lead reads left-aligned, the chips sit under the iPad */
@media (max-width: 720px) {
  .bar .wrap { min-height: 64px; }
  .bar nav { gap: 8px; }
  .brand-name, .bar-link.sign-in { display: none; }
  .mark { width: 36px; height: 36px; border-radius: 10px; }
  .hero { padding-top: 32px; }
  .tag { margin-bottom: 18px; padding: 6px 12px; font-size: 13px; }
  .hero .lead { margin-top: 18px; font-size: 16px; text-align: left; }
  .device { margin-top: 40px; }
  .bezel { padding: 8px; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(31,45,61,.45); }
  .frames { border-radius: 15px; }
  .frame-steps { position: static; transform: none; justify-content: center; margin-top: 14px; padding: 0; gap: 6px; background: none; box-shadow: none; font-size: 12px; }
  .frame-steps { --step-off: var(--surface); --step-off-ink: var(--muted); }
  section:not(.hero) { padding-top: 72px; }
  h2 { font-size: 30px; line-height: 1.2; }
  .eyebrow { font-size: 12px; letter-spacing: .04em; }
  .way { padding: 12px; }
  .private dl div, .legal .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .questions { grid-template-columns: minmax(0, 1fr); }
  .question { padding: 22px; }
  .legal { padding-top: 32px; }
  .close .panel { padding: 44px 24px; }
}
@media (max-width: 480px) {
  .actions { flex-direction: column; }
  .actions .button { width: 100%; }
}
