/* Workably — shared public site styles. No build step. */

:root {
  /* surface */
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --card: #F3F0E9;
  --card-2: #ECE8DF;
  --line: #E4DFD4;
  --line-strong: #CFC9BB;
  /* text */
  --ink: #15140F;
  --ink-2: #3F3D36;
  --muted: #66635A;
  /* brand gradient stops */
  --sky: #BFDCFF;
  --azure: #6FA4FF;
  --cobalt: #2E5BFF;
  --indigo: #4A2FD6;
  --coral: #FF6A4A;
  --amber: #FFB545;
  /* semantic */
  --accent: #2E5BFF;
  --accent-ink: #1E3FC4;
  --ok: #1F7A4D;
  --warn: #9A5B00;
  /* shape */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;
  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --track-tight: -0.03em;
  /* layout */
  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 64px;
  --shadow-box: 0 1px 2px rgba(21, 20, 15, .04), 0 12px 40px -12px rgba(21, 20, 15, .22);
  --shadow-card: 0 1px 2px rgba(21, 20, 15, .04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2B2A24; }
.btn--outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { background: var(--card); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--card); }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2);
  transition: background-color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--card); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -0.035em; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: var(--r-pill);
}
.nav__links a:hover { background: var(--card); color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__toggle { display: none; }
.nav__panel { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__login { display: none; }
  .nav__panel {
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open .nav__panel { display: block; }
  .nav__panel a {
    display: flex; align-items: center; min-height: 48px;
    font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav__panel .btn { margin-top: 16px; border-bottom: 1px solid var(--line-strong); justify-content: center; }
}

/* ---------- Gradient mesh ---------- */
.mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mesh::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    var(--bg) 0%, var(--bg) 20%,
    #E3EEFF 34%, var(--sky) 44%, var(--azure) 56%,
    var(--cobalt) 68%, var(--indigo) 80%,
    var(--coral) 93%, var(--amber) 104%);
}
.mesh i { position: absolute; display: block; border-radius: 50%; filter: blur(90px); opacity: .9; }
.mesh i:nth-child(1) { width: 58%; height: 38%; left: -14%; top: 40%; background: #7FD0FF; }
.mesh i:nth-child(2) { width: 56%; height: 40%; right: -16%; top: 46%; background: var(--indigo); opacity: .8; }
.mesh i:nth-child(3) { width: 60%; height: 34%; left: -12%; top: 72%; background: var(--coral); }
.mesh i:nth-child(4) { width: 50%; height: 30%; right: -8%; top: 80%; background: var(--amber); opacity: .85; }
.mesh i:nth-child(5) { width: 44%; height: 30%; left: 28%; top: 56%; background: var(--cobalt); opacity: .75; }
.mesh::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%;
  background: linear-gradient(180deg, var(--bg) 30%, rgba(250, 248, 243, 0));
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 120px; margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + 88px); }
.hero__in { position: relative; z-index: 1; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(255, 255, 255, .7);
  font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
a.pill:hover { background: #fff; }
.pill b { font-weight: 600; color: var(--ink); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.hero h1 {
  margin: 22px auto 0; max-width: 15em;
  font-size: clamp(38px, 6.2vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__sub {
  margin: 20px auto 0; max-width: 40em;
  font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.5; text-wrap: balance;
}
.hero .prompt { margin-top: 40px; }
.hero__note {
  display: inline-block; margin-top: 28px; padding: 9px 16px; border-radius: var(--r-pill);
  background: rgba(21, 20, 15, .62); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 500; line-height: 1.4; text-wrap: balance;
}

/* ---------- Prompt box ---------- */
.prompt {
  position: relative; width: 100%; max-width: 760px; margin-left: auto; margin-right: auto;
  background: var(--surface); border: 1px solid rgba(21, 20, 15, .08); border-radius: var(--r-lg);
  box-shadow: var(--shadow-box);
  padding: 18px 18px 14px; text-align: left;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.prompt:focus-within { border-color: rgba(46, 91, 255, .55); box-shadow: var(--shadow-box), 0 0 0 4px rgba(46, 91, 255, .16); }
.prompt textarea {
  display: block; width: 100%; min-height: 84px; max-height: 240px; resize: none;
  border: 0; background: transparent; padding: 4px 6px;
  font-size: 17px; line-height: 1.5; color: var(--ink);
}
.prompt textarea:focus-visible { outline: none; }
.prompt textarea::placeholder { color: #8A867B; opacity: 1; }
.prompt__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.prompt__right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prompt__mode {
  -webkit-appearance: none; appearance: none;
  height: 40px; max-width: 100%; padding: 0 34px 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233F3D36' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-overflow: ellipsis;
}
.prompt__mode:hover { background-color: var(--card); }
.send {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border: 0; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; transition: background-color .15s ease, transform .15s ease;
}
.send:hover { background: #2B2A24; }
.send:active { transform: translateY(1px); }
.send svg { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin: 20px auto 0; }
.chip {
  min-height: 40px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .88); color: var(--ink);
  font-size: 14px; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .15s ease, transform .15s ease;
}
.chip:hover { background: #fff; transform: translateY(-1px); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--tight { padding: 88px 0; }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.section h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.section__lead { margin-top: 16px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); text-wrap: balance; }

.card { background: var(--card); border-radius: var(--r-lg); padding: 28px; }
.card--line { background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card);
}
.ico svg { width: 22px; height: 22px; }

.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.step { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 24px 22px 26px; }
.step__n {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
}
.step__t { display: block; margin-top: 28px; font-size: 13px; font-weight: 600; color: var(--accent-ink); letter-spacing: .01em; }
.step h3 { margin-top: 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.step:last-child { background: var(--ink); color: #fff; }
.step:last-child .step__n { background: #fff; color: var(--ink); }
.step:last-child .step__t { color: var(--amber); }
.step:last-child p { color: rgba(255, 255, 255, .74); }

/* engines */
.engine__k { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* team */
.role { display: flex; flex-direction: column; min-height: 100%; }
.role__tag {
  align-self: flex-start; margin-bottom: 40px; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-card);
}
.role--you { background: var(--ink); color: #fff; }
.role--you p { color: rgba(255, 255, 255, .74); }
.role--you .role__tag { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }

/* split (assistant) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split h2 { text-align: left; }
.split .section__lead { text-align: left; }
.ticks { margin-top: 28px; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; color: var(--ink-2); }
.ticks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--cobalt); }
.ticks b { color: var(--ink); font-weight: 600; }

.panel {
  position: relative; border-radius: var(--r-xl); padding: 28px; overflow: hidden;
  background: linear-gradient(150deg, var(--sky) 0%, var(--azure) 38%, var(--indigo) 100%);
}
.panel__card { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-box); }
.panel__card + .panel__card { margin-top: 12px; }
.panel__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel__h strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--card); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.todo { display: grid; gap: 10px; }
.todo li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; font-size: 14.5px; color: var(--ink-2); }
.todo .box { width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--line-strong); border-radius: 6px; }
.todo .box--on { background: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.6 2.6L12 5.5'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.todo time, .todo span.when { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.todo .done { color: var(--muted); text-decoration: line-through; }
.bubble { font-size: 14.5px; color: var(--ink-2); }
.bubble + .bubble { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bubble b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.caption { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .92); text-align: center; }

/* example run */
.run { max-width: 920px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.run__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.run__bar strong { font-size: 14px; font-weight: 600; }
.run__bar .tag { background: var(--ink); color: #fff; }
.run__day { padding: 18px 24px 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.run__list { padding: 0 24px 12px; }
.run__list li {
  position: relative; display: grid; grid-template-columns: 56px 112px 1fr; gap: 16px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px;
}
.run__list li:first-child { border-top: 0; }
.run__time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.run__who { font-size: 13px; font-weight: 600; color: var(--ink); }
.run__who::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--cobalt); vertical-align: 1px; }
.run__who[data-r="you"]::before { background: var(--ink); }
.run__who[data-r="auditor"]::before { background: var(--coral); }
.run__who[data-r="sales"]::before, .run__who[data-r="marketer"]::before { background: var(--amber); }
.run__who[data-r="builder"]::before { background: var(--indigo); }
.run__what { color: var(--ink-2); }
.run__what code { font-family: var(--mono); font-size: 13px; background: var(--card); padding: 2px 6px; border-radius: 6px; }
.run__foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--card); font-size: 13.5px; color: var(--muted); }

/* own */
.own { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 72px 56px; }
.own .section__head { margin-bottom: 48px; }
.own .eyebrow { color: var(--amber); }
.own .section__lead { color: rgba(255, 255, 255, .72); }
.own__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.own__item { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); padding: 26px; }
.own__item .ico { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.own__item h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.own__item p { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }

/* pricing */
.founding {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: 920px; margin: 0 auto 32px; padding: 20px 24px; border-radius: var(--r-lg);
  background: linear-gradient(100deg, #E6EEFF 0%, #EDE8FF 55%, #FFE9DF 100%);
  border: 1px solid rgba(74, 47, 214, .14);
}
.founding__t { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.founding__d { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.founding__left { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.founding__left b { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.toggle { display: flex; justify-content: center; margin-bottom: 32px; }
.toggle__in { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--card-2); }
.toggle button {
  min-height: 40px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: transparent;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); padding: 28px 24px 24px; }
.plan--hl { background: var(--ink); color: #fff; }
.plan__name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.plan__name .tag { background: var(--amber); color: var(--ink); }
.plan__for { margin-top: 4px; min-height: 44px; font-size: 14px; color: var(--muted); }
.plan--hl .plan__for { color: rgba(255, 255, 255, .7); }
.plan__price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan--hl .plan__price span { color: rgba(255, 255, 255, .7); }
.plan__bill { margin-top: 8px; min-height: 20px; font-size: 13px; color: var(--muted); }
.plan--hl .plan__bill { color: rgba(255, 255, 255, .7); }
.plan .btn { margin-top: 20px; }
.plan ul { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; }
.plan--hl ul { border-top-color: rgba(255, 255, 255, .18); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.plan--hl li { color: rgba(255, 255, 255, .88); }
.plan li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--cobalt); }
.plan--hl li svg { color: var(--amber); }
.pricing__note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 12px 4px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__a { padding: 0 4px 24px; max-width: 700px; font-size: 16px; color: var(--ink-2); }
.faq__a p + p { margin-top: 12px; }
.faq__a a { color: var(--accent-ink); }

/* outro (final CTA + footer) */
.outro { position: relative; padding: 120px 0 32px; overflow: hidden; }
.outro .mesh::before {
  background: linear-gradient(180deg,
    var(--bg) 0%, var(--bg) 12%,
    #E3EEFF 22%, var(--sky) 30%, var(--azure) 40%,
    var(--cobalt) 54%, var(--indigo) 70%,
    var(--coral) 90%, var(--amber) 104%);
}
.outro .mesh::after { height: 18%; }
.outro__in { position: relative; z-index: 1; text-align: center; }
.outro h2 { max-width: 16em; margin: 0 auto; font-size: clamp(32px, 4.8vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.outro .prompt { margin-top: 36px; }
.outro .hero__note { margin-top: 24px; }

.footer {
  position: relative; z-index: 1; margin-top: 120px;
  background: var(--bg); border-radius: var(--r-xl); padding: 56px 56px 32px;
  box-shadow: 0 30px 80px -30px rgba(20, 10, 80, .45);
}
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: 32px; }
.footer__about p { margin-top: 14px; max-width: 24em; font-size: 14px; color: var(--muted); }
.footer h3 { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__base {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang svg { width: 16px; height: 16px; }
.lang select {
  -webkit-appearance: none; appearance: none; height: 40px; padding: 0 32px 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233F3D36' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
}

/* legal pages: footer sits on a shorter gradient */
.outro--slim { padding-top: 0; margin-top: 40px; }
.outro--slim .footer { margin-top: 0; top: 0; }
.outro--slim .mesh::before {
  background: linear-gradient(180deg, var(--bg) 0%, var(--sky) 22%, var(--azure) 40%, var(--cobalt) 58%, var(--indigo) 74%, var(--coral) 92%, var(--amber) 104%);
}
.outro--slim .mesh::after { height: 12%; }
.outro--slim .wrap { padding-top: 120px; }

/* ---------- Legal ---------- */
.legal { padding: 72px 0 80px; }
.legal__in { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.legal__meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.legal__note {
  margin-top: 24px; padding: 14px 18px; border-radius: var(--r-md);
  background: #FFF4DC; border: 1px solid #F0D9A4; font-size: 14.5px; color: #5C4100;
}
.legal__toc { margin-top: 32px; padding: 22px 24px; border-radius: var(--r-md); background: var(--card); }
.legal__toc strong { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.legal__toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; list-style: decimal inside; font-size: 14.5px; color: var(--muted); }
.legal__toc li { margin: 0; }
.legal__toc a { display: inline-block; padding: 9px 0; color: var(--ink); text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal h2 { margin-top: 48px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.legal h3 { margin-top: 24px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin-top: 14px; }
.legal ul, .legal ol.list { margin-top: 12px; padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol.list { list-style: decimal; }
.legal li { margin-top: 6px; }
.legal a { color: var(--accent-ink); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Reveal (content is visible unless site.js opts in) ---------- */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.has-reveal .reveal.is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__in > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__in > *:nth-child(2) { animation-delay: .06s; }
.hero__in > *:nth-child(3) { animation-delay: .12s; }
.hero__in > *:nth-child(4) { animation-delay: .18s; }
.hero__in > *:nth-child(5) { animation-delay: .24s; }
.hero__in > *:nth-child(6) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__in > * { animation: none; }
  .has-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .chip, .send { transition: none; }
}
@media print {
  .has-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .nav, .mesh { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .step { grid-column: span 2; }
  .step:nth-child(n+4) { grid-column: span 3; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .own__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
  .role__tag { margin-bottom: 28px; }
}
@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .own { padding: 56px 28px; }
  .footer { padding: 40px 28px 24px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .hero { padding-bottom: 88px; padding-top: calc(var(--nav-h) + 48px); }
  .hero .prompt { margin-top: 32px; }
  .pill__more { display: none; }
  .prompt { padding: 14px 14px 12px; border-radius: 22px; }
  .prompt textarea { font-size: 16px; min-height: 96px; }
  .prompt__mode { max-width: 150px; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; max-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .steps, .grid--4, .grid--3, .grid--2, .plans, .own__grid { grid-template-columns: 1fr; }
  .step, .step:nth-child(n+4) { grid-column: auto; }
  .step__t { margin-top: 18px; }
  .card { padding: 24px; }
  .role__tag { margin-bottom: 20px; }
  .panel { padding: 16px; border-radius: var(--r-lg); }
  .panel__card { padding: 18px; border-radius: 16px; }
  .run__bar, .run__day, .run__foot { padding-left: 18px; padding-right: 18px; }
  .run__list { padding: 0 18px 8px; }
  .run__list li { grid-template-columns: 52px 1fr; gap: 4px 12px; }
  .run__what { grid-column: 1 / -1; }
  .own { padding: 44px 18px 18px; border-radius: var(--r-lg); margin-left: -4px; margin-right: -4px; }
  .plan__for { min-height: 0; }
  .faq summary { font-size: 16.5px; min-height: 64px; }
  .outro { padding-top: 88px; padding-bottom: 16px; }
  .footer { margin-top: 88px; padding: 32px 22px 20px; border-radius: var(--r-lg); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .legal { padding: 48px 0 56px; }
  .legal__toc ol { grid-template-columns: 1fr; }
  .outro--slim .wrap { padding-top: 88px; }
}

/* ---------- Languages ---------- */
/* switcher in the nav */
.langs { position: relative; }
.langs__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 176px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-box);
}
.langs__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.langs__menu a:hover { background: var(--card); }
.langs__menu a[aria-current] { font-weight: 600; }
.langs__menu a[aria-current]::after {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232E5BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 10.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") no-repeat center / 16px;
}

/* suggestion bar (English pages only, inserted by site.js) */
.langbar {
  position: relative; z-index: 51;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; padding: 2px 52px 2px 16px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center;
}
.langbar a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.langbar a svg { width: 16px; height: 16px; flex: none; }
.langbar button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: #fff;
}
.langbar button:hover { background: rgba(255, 255, 255, .14); }
.langbar button svg { width: 16px; height: 16px; }
.langbar :focus-visible { outline-color: #fff; }

.legal__note--lang { background: var(--card); border-color: var(--line); color: var(--ink-2); }
.legal__note--lang a { color: var(--accent-ink); }
.legal__note + .legal__note { margin-top: 10px; }

/* font stacks per language */
:root:lang(ko) { --font: "Pretendard Variable", Pretendard, "Inter", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif; }
:root:lang(ja) { --font: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:root:lang(zh) { --font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
/* language names shown inside a page of another language */
.langs__menu a:lang(ko), .langbar:lang(ko), .lang option:lang(ko) { font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
.langs__menu a:lang(ja), .langbar:lang(ja), .lang option:lang(ja) { font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; }
.langs__menu a:lang(zh), .langbar:lang(zh), .lang option:lang(zh) { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }

/* CJK: looser tracking, taller lines, sensible breaks */
:root:lang(ko), :root:lang(ja), :root:lang(zh) { --track-tight: -0.01em; }
:root:lang(ko) body, :root:lang(ja) body, :root:lang(zh) body { line-height: 1.65; }
:root:lang(ko) :is(h1, h2, h3, .brand__name, .btn, .plan__name, .founding__t, .faq summary, .panel__h strong),
:root:lang(ja) :is(h1, h2, h3, .btn, .plan__name, .founding__t, .faq summary, .panel__h strong),
:root:lang(zh) :is(h1, h2, h3, .btn, .plan__name, .founding__t, .faq summary, .panel__h strong) { letter-spacing: -0.01em; }
:root:lang(ko) .brand__name, :root:lang(ja) .brand__name, :root:lang(zh) .brand__name { letter-spacing: -0.035em; }
:root:lang(ko) .hero h1, :root:lang(ja) .hero h1, :root:lang(zh) .hero h1 { line-height: 1.2; font-size: clamp(34px, 5.6vw, 68px); }
:root:lang(ko) .section h2, :root:lang(ja) .section h2, :root:lang(zh) .section h2,
:root:lang(ko) .legal h1, :root:lang(ja) .legal h1, :root:lang(zh) .legal h1 { line-height: 1.25; }
:root:lang(ko) .outro h2, :root:lang(ja) .outro h2, :root:lang(zh) .outro h2 { line-height: 1.22; font-size: clamp(30px, 4.4vw, 54px); }
:root:lang(ko) :is(.card h3, .step h3, .own__item h3), :root:lang(ja) :is(.card h3, .step h3, .own__item h3), :root:lang(zh) :is(.card h3, .step h3, .own__item h3) { line-height: 1.4; }
:root:lang(ko) :is(.eyebrow, .engine__k, .run__day, .bubble b, .legal__toc strong),
:root:lang(ja) :is(.eyebrow, .engine__k, .run__day, .bubble b, .legal__toc strong),
:root:lang(zh) :is(.eyebrow, .engine__k, .run__day, .bubble b, .legal__toc strong) { letter-spacing: .02em; }
:root:lang(ko) .legal :is(p, li), :root:lang(ja) .legal :is(p, li), :root:lang(zh) .legal :is(p, li) { line-height: 1.85; }

:root:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
:root:lang(ja) body { line-break: strict; overflow-wrap: anywhere; }
:root:lang(ja) :is(h1, h2, h3, .hero__sub, .section__lead, .hero__note, .faq summary) { word-break: auto-phrase; }
:root:lang(zh) body { line-break: strict; overflow-wrap: anywhere; }

/* long words (German, Spanish): let them wrap instead of overflowing */
:root:lang(de) :is(h1, h2, h3, p, li, summary, .plan__for), :root:lang(es) :is(h1, h2, h3, p, li, summary, .plan__for) { overflow-wrap: break-word; }
:root:lang(de) :is(.card h3, .step h3, .own__item h3, .card p, .step p, .own__item p, .plan li, .legal p, .legal li, .legal h2) { -webkit-hyphens: auto; hyphens: auto; }
:root:lang(de) .hero h1, :root:lang(es) .hero h1 { max-width: 17em; font-size: clamp(34px, 5.6vw, 70px); line-height: 1.05; }
.plan__price { flex-wrap: wrap; }
.plan .btn, .nav__panel .btn, .legal__docs .btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
@media (min-width: 901px) and (max-width: 1100px) {
  .nav__in { gap: 12px; }
  .nav__links a { padding: 0 8px; font-size: 13.5px; }
}
@media (min-width: 641px) { .chips { max-width: 1000px; } }
@media (max-width: 640px) {
  .prompt__mode { max-width: 176px; min-width: 0; flex: 0 1 auto; }
  .nav__cta { gap: 6px; }
  .langbar { justify-content: flex-start; text-align: left; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 17px; }
  .nav__cta .btn { padding: 0 12px; }
}
/* German footer: long single words need a wider column */
@media (min-width: 1101px) { :root:lang(de) .footer__grid, :root:lang(ja) .footer__grid { grid-template-columns: 1.2fr repeat(5, auto); gap: 24px; } }
@media (max-width: 1100px) { :root:lang(de) .footer__grid { grid-template-columns: repeat(3, auto); } }
@media (max-width: 640px) { :root:lang(de) .footer__grid { grid-template-columns: auto minmax(0, 1fr); } }
@media print { .langbar, .langs { display: none; } }
