:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1c1c1a;
  --text-2: #5f5f5a;
  --text-3: #8a8a84;
  --accent: #0f766e;
  --accent-dark: #0b5d57;
  --accent-soft: #e6f4f2;
  --border: #e4e4df;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,250,248,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav-links a { color: inherit; text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }

.hero { padding: 84px 0 64px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: 44px; font-weight: 700; letter-spacing: -.5px; line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { margin: 18px auto 34px; max-width: 580px; font-size: 17px; color: var(--text-2); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 500;
  padding: 14px 34px; border-radius: 999px;
  text-decoration: none;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(15,118,110,.25);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn svg { flex-shrink: 0; }
.btn.ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--accent-soft); }
.hero .trial-line { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--accent-dark); }
.hero .meta { margin-top: 10px; font-size: 13px; color: var(--text-3); }
.hero .meta a { color: var(--text-3); }
.hero .alt-link { display: block; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.hero .alt-link a { color: var(--accent); text-decoration: none; }

/* Write / Think / Own pillars */
.pillars { padding: 24px 0 56px; }
.pillars .wrap { display: flex; justify-content: center; gap: 20px; }
.pillar {
  flex: 1; max-width: 280px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px;
}
.pillar-word {
  font-size: 22px; font-weight: 700; letter-spacing: -.3px;
  color: var(--accent); margin-bottom: 6px;
}
.pillar-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 820px) {
  .pillars .wrap { flex-direction: column; align-items: center; }
  .pillar { width: 100%; max-width: 340px; }
}

section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.sec-desc { text-align: center; color: var(--text-2); font-size: 15px; max-width: 560px; margin: 0 auto 44px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-2); }

.license-box {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 40px;
}
.license-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.license-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.license-item h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.license-item p { font-size: 14px; color: var(--text-2); }
.license-note { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text-3); }

.price-card {
  max-width: 460px; margin: 0 auto 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 36px; text-align: center;
  box-shadow: var(--shadow);
}
.price-card .plan { font-size: 14px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; }
.price-card .amount { font-size: 56px; font-weight: 700; color: var(--text); margin: 10px 0 2px; }
.price-card .amount small { font-size: 22px; font-weight: 500; color: var(--text-2); }
.price-card .per { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.price-card ul { list-style: none; text-align: left; margin: 0 0 28px; padding: 0; }
.price-card ul li {
  font-size: 14px; color: var(--text-2); padding: 7px 0 7px 26px; position: relative;
}
.price-card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent-soft);
}
.price-card ul li::after {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.dl { display: flex; justify-content: center; margin-top: 36px; }

footer { padding: 40px 0 48px; text-align: center; font-size: 13px; color: var(--text-3); }
footer a { color: var(--text-3); }
footer .links { margin-top: 8px; display: flex; justify-content: center; gap: 20px; }
footer .links a { color: var(--text-2); text-decoration: none; }
footer .links a:hover { color: var(--accent); }

/* legal pages */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--text-3); margin-bottom: 36px; }
.legal h2 { font-size: 19px; font-weight: 600; margin: 32px 0 10px; }
.legal p { font-size: 15px; color: var(--text-2); margin-bottom: 12px; max-width: 720px; }
.legal ul { font-size: 15px; color: var(--text-2); margin: 0 0 14px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal .back { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--accent); text-decoration: none; }

/* App mockup in hero */
.app-mockup {
  max-width: 980px;
  margin: 52px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  overflow: hidden;
  text-align: left;
}
.af-titlebar {
  height: 38px;
  background: linear-gradient(#f7f7f6, #eeeee9);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
}
.af-traffic { display: flex; gap: 8px; }
.af-traffic span { width: 12px; height: 12px; border-radius: 50%; }
.af-traffic span:nth-child(1) { background: #ff5f57; }
.af-traffic span:nth-child(2) { background: #febc2e; }
.af-traffic span:nth-child(3) { background: #28c840; }
.af-title { font-size: 13px; color: var(--text-2); font-weight: 500; }
.af-empty { width: 36px; }
.af-body {
  display: grid;
  grid-template-columns: 190px 1fr 220px;
  min-height: 420px;
}
.af-sidebar {
  background: #f9f9f7;
  border-right: 1px solid var(--border);
  padding: 14px;
  font-size: 12px;
}
.af-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--text-3);
  margin-bottom: 14px;
}
.af-tree { color: var(--text-2); }
.af-folder { margin-bottom: 10px; }
.af-row { display: flex; align-items: center; gap: 4px; padding: 4px 0; }
.af-row.active { background: var(--accent-soft); color: var(--accent-dark); border-radius: 4px; padding-left: 4px; margin: 0 -4px; }
.af-chev { font-size: 10px; width: 10px; }
.af-icon { font-size: 11px; }
.af-sub { padding-left: 14px; }
.af-editor {
  padding: 32px;
  background: #fff;
  overflow: auto;
}
.af-doc { max-width: 100%; }
.af-doc h1 { font-size: 22px; font-weight: 700; margin-bottom: 10px; text-align: left; letter-spacing: 0; }
.af-doc h2 { font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.af-doc p { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 8px; }
.af-doc ul { margin: 0 0 10px 18px; font-size: 13px; }
.af-doc li { margin-bottom: 4px; }
.af-done { color: var(--accent); }
.af-doc code { background: #f2f2ef; padding: 1px 4px; border-radius: 4px; font-size: 12px; }
.af-img {
  width: 100%; height: 110px; background: #f5f5f2; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 12px;
  margin: 12px 0;
}
.af-doc table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.af-doc th, .af-doc td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; }
.af-doc th { background: #f7f7f6; }
.af-doc .tag { color: var(--accent); font-weight: 600; }
.af-right {
  background: #f9f9f7;
  border-left: 1px solid var(--border);
  padding: 14px;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 12px;
}
.af-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.af-panel-head { font-weight: 600; font-size: 12px; margin-bottom: 8px; color: var(--text); }
.af-chat { display: flex; flex-direction: column; gap: 8px; }
.af-msg { display: flex; flex-direction: column; gap: 2px; }
.af-role { font-size: 10px; color: var(--text-3); }
.af-bubble { background: #f2f2ef; border-radius: 6px; padding: 6px 8px; font-size: 11px; line-height: 1.5; }
.af-query { background: var(--accent-soft); color: var(--accent-dark); padding: 6px 8px; border-radius: 6px; font-size: 11px; }
.af-answer { font-size: 11px; color: var(--text-2); line-height: 1.5; margin-top: 6px; }
.af-answer em { color: var(--accent); font-style: normal; }

/* Privacy flow section */
.privacy-flow { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.flow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin: 36px auto 30px;
}
.flow-step {
  text-align: center;
  min-width: 132px; padding: 16px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.flow-step.brand { border-color: var(--accent); background: var(--accent-soft); }
.flow-icon { font-size: 22px; margin-bottom: 8px; height: 28px; display: flex; align-items: center; justify-content: center; }
.flow-icon img { display: block; }
.flow-label { font-size: 13px; font-weight: 600; color: var(--text); }
.flow-arrow { font-size: 22px; color: var(--text-3); font-weight: 500; }
.privacy-bullets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 840px; margin: 0 auto; text-align: center;
}
.privacy-bullets div {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 16px; font-size: 14px; color: var(--text-2); line-height: 1.6;
}
.privacy-bullets strong { display: block; color: var(--text); margin-bottom: 4px; }

/* How it flows — demo steps */
.demo-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.step {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: left;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 1020px) { .demo-steps { grid-template-columns: repeat(2, 1fr); } }

/* No account. No cloud. No lock-in. */
.own-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 840px; margin: 0 auto 44px;
}
.own-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.own-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.own-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.own-card p { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 820px) { .own-grid { grid-template-columns: 1fr; } }

/* AI section chips */
.chips {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.chip {
  font-size: 13.5px; font-weight: 500; color: var(--accent-dark);
  background: var(--accent-soft); border: 1px solid transparent;
  padding: 8px 18px; border-radius: 999px;
}
section#ai .grid { margin-top: 0; }

/* Knowledge Base demo */
.kb-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kb-demo {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px;
  max-width: 860px; margin: 0 auto; text-align: left;
}
.kb-folder {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; font-size: 14px;
}
.kb-folder-head { font-weight: 600; margin-bottom: 12px; }
.kb-file {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--text-2);
}
.kb-file:hover { background: var(--accent-soft); }
.kb-fname { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.kb-fsize { font-size: 12px; color: var(--text-3); }
.kb-folder-note {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border);
  font-size: 12.5px; color: var(--text-3);
}
.kb-ask {
  display: flex; flex-direction: column; gap: 14px;
}
.kb-query {
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 500;
}
.kb-q-label {
  display: block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent); margin-bottom: 4px;
}
.kb-answer {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; font-size: 14px; color: var(--text-2);
}
.kb-answer p { margin-bottom: 8px; color: var(--text); font-weight: 600; font-size: 13px; }
.kb-answer blockquote {
  border-left: 3px solid var(--accent); padding: 2px 0 2px 14px;
  margin: 0 0 12px; line-height: 1.6;
}
.kb-sources { font-size: 12.5px; color: var(--text-3); }
.kb-sources span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 2px 8px; border-radius: 4px;
}
@media (max-width: 820px) { .kb-demo { grid-template-columns: 1fr; } }

/* Comparison table */
.cmp-wrap { max-width: 640px; margin: 0 auto; }
table.cmp {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14.5px;
}
table.cmp th, table.cmp td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--border); }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; color: var(--text-2); font-weight: 500; }
table.cmp th { background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); }
table.cmp .cmp-us { color: var(--accent-dark); }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp td.yes { color: var(--accent); font-weight: 700; }
table.cmp td.strong-no { color: var(--accent-dark); font-weight: 600; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .license-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .af-body { grid-template-columns: 1fr; }
  .af-sidebar, .af-right { display: none; }
  .flow-step { min-width: 110px; padding: 12px 10px; }
  .privacy-bullets { grid-template-columns: 1fr; }
  .demo-steps { grid-template-columns: 1fr; }
  table.cmp th, table.cmp td { padding: 10px 10px; font-size: 13px; }
}
