:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --rail: #f6f2eb;
  --white: #fffdfa;
  --ink: #252521;
  --muted: #5c5b52;
  --line: #e8e1d7;
  --action: #36523e;
  --action-hover: #2b4332;
  --sage: #dcead9;
  --blush: #f6e8e5;
  --lilac: #eee4f5;
  --serif: Fraunces, Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.055em; line-height: 1.08; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
section[id] { scroll-margin-top: 25px; }
.wrap { width: min(calc(100% - 48px), 1056px); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; }
.icon { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; z-index: 2; top: 10px; left: 10px; padding: 8px 12px; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header { min-height: 79px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; }
.site-header nav, .actions { display: flex; align-items: center; gap: 12px; }
.site-header nav { gap: clamp(14px, 3vw, 29px); color: var(--muted); font-size: 14px; font-weight: 600; }
.site-header nav > a:hover, .site-footer > a:hover { color: var(--action); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.button-primary { background: var(--action); color: var(--white); }
.button-primary:hover { background: var(--action-hover); }
.button-outline { min-height: 38px; padding: 6px 11px; border-color: var(--line); background: var(--white); color: var(--ink); }
.button-outline:hover { border-color: var(--action); }
.button-plain { background: transparent; color: var(--muted); }
.button-plain:hover { background: var(--rail); color: var(--ink); }
.eyebrow { color: var(--action); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.sketch { stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.hero { position: relative; padding-block: clamp(58px, 7.5vw, 94px) clamp(46px, 5.5vw, 66px); text-align: center; }
.hero h1 { margin: 15px auto 0; max-width: 960px; font-size: clamp(49px, 7.6vw, 98px); letter-spacing: -.055em; word-spacing: .05em; line-height: .98; text-wrap: balance; }
.hero h1 em { display: block; color: var(--action); font-weight: 500; }
.hero-copy { max-width: 450px; margin: 23px auto 0; color: var(--muted); font-size: clamp(15px, 1.7vw, 17px); text-wrap: pretty; }
.hero-actions { justify-content: center; margin-top: 25px; }
.hero-spark { position: absolute; width: clamp(29px, 5.5vw, 66px); right: max(3%, calc(50% - 450px)); top: 24%; color: #71856d; }
.hero-sprig { position: absolute; width: clamp(63px, 8vw, 97px); left: max(1%, calc(50% - 435px)); bottom: 19%; color: #71856d; transform: rotate(-12deg); }

.showcase { max-width: 900px; }
.showcase-caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; }
.showcase-caption h2 { font: 700 13px/1.4 var(--sans); letter-spacing: 0; }
.showcase-caption > span { color: var(--muted); font-size: 12px; }
.product-demo { display: grid; grid-template-columns: 174px minmax(0, 1fr); min-height: 392px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 16px 48px #3c32200b; }
.demo-sidebar { padding: 17px 12px; background: var(--rail); border-inline-end: 1px solid var(--line); }
.demo-brand { display: block; margin: 4px 8px 21px; --twig-logo-size: 24px; }
.demo-tabs { display: grid; gap: 5px; }
.demo-tabs button { display: flex; align-items: center; gap: 7px; min-height: 37px; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; text-align: start; }
.demo-tabs button:hover { background: #ece8e0; color: var(--ink); }
.demo-tabs button[aria-selected="true"] { background: var(--sage); color: var(--action); }
.demo-tabs button:focus-visible { outline-offset: -2px; }
.demo-tabs .icon { width: 16px; height: 16px; }
.demo-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; min-height: 45px; border-bottom: 1px solid var(--line); background: var(--rail); font-size: 12px; font-weight: 700; }
.demo-mode { color: var(--muted); font-size: 11px; font-weight: 600; }
.demo-workspace [role="tabpanel"]:focus-visible { outline-offset: -3px; }
.demo-leaf, .demo-library { width: min(calc(100% - 48px), 390px); margin-inline: auto; padding: 28px 0 29px; }
.demo-avatar { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 8px; border-radius: 50%; background: var(--sage); }
.demo-avatar img { width: 19px; height: 19px; }
.demo-workspace h3 { font-size: clamp(27px, 4vw, 39px); }
.demo-workspace p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.demo-link { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 11px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--action); font-size: 13px; font-weight: 700; }
.demo-link .icon { width: 14px; height: 14px; }
.demo-block { display: grid; gap: 3px; margin-top: 9px; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: 12px; }
.demo-blush { background: var(--blush); }
.demo-sage { background: #e8efe2; }
.demo-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.demo-library { padding-top: 48px; }
.demo-library p { margin-bottom: 17px; }
.demo-record { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.demo-record > .icon { color: var(--action); }
.demo-record > div { flex: 1; min-width: 0; }
.demo-record small { display: block; color: var(--muted); }
.demo-tag { padding: 2px 6px; border-radius: 4px; background: var(--sage); color: var(--action); font-size: 10px; white-space: nowrap; }
.demo-tag-neutral { background: var(--rail); color: var(--muted); }

.product-story { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 7vw, 86px); max-width: 900px; padding-block: clamp(80px, 12vw, 144px); }
.story-intro h2, .plans h2, .closing h2 { margin-top: 10px; font-size: clamp(37px, 5.6vw, 64px); }
.story-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.story-item + .story-item { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.story-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; color: var(--action); }
.story-sage { background: var(--sage); }
.story-blush { background: var(--blush); }
.story-lilac { background: var(--lilac); }
.story-item h3 { font: 700 15px/1.35 var(--sans); letter-spacing: -.015em; }
.story-item p, .plans-intro > p:not(.eyebrow), .plan-heading + p, .closing p { margin-top: 5px; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.plans { max-width: 900px; border-top: 1px solid var(--line); padding-top: clamp(47px, 7vw, 78px); }
.plans-intro { position: relative; margin: 0 auto 28px; text-align: center; }
.plans-intro > p:not(.eyebrow) { margin-top: 11px; }
.plans-sketch { position: absolute; width: 70px; right: 9%; bottom: 12px; color: #987d69; transform: rotate(-9deg); }
.plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 704px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; padding: clamp(20px, 3.5vw, 29px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.plan-pro { border-color: #dbe4d7; background: #eff4ea; }
.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
.plan-heading .icon { width: 22px; height: 22px; color: var(--action); }
.plan h3 { font-size: 30px; }
.plan-badge { padding: 4px 9px; border-radius: 20px; background: var(--sage); color: var(--action); font-size: 11px; font-weight: 700; }
.plan-price { margin-top: 16px; font: 500 43px/1.05 var(--serif); letter-spacing: -.055em; }
.plan-price small { color: var(--muted); font: 500 13px/1 var(--sans); letter-spacing: 0; }
.plan ul { display: grid; gap: 8px; margin: 18px 0 21px; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 13px; }
.plan li { display: flex; align-items: baseline; gap: 7px; }
.plan li .icon { align-self: center; width: 14px; height: 14px; color: var(--action); }
.plan .button { justify-content: space-between; margin-top: auto; }
.closing { padding-block: clamp(72px, 10vw, 130px); text-align: center; }
.closing-sketch { display: block; width: 76px; margin: 0 auto 14px; color: #71856d; transform: rotate(4deg); }
.closing h2 { margin-top: 10px; }
.closing > p { margin-top: 11px; font-size: 15px; }
.closing .actions { justify-content: center; margin-top: 18px; }
.site-footer { min-height: 74px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; --twig-logo-size: 26px; }
.site-footer > a:last-child { display: inline-flex; align-items: center; gap: 4px; }
.site-footer .icon { width: 14px; height: 14px; }
kbd { padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font: inherit; }

@media (max-width: 760px) {
  .hero-sprig, .plans-sketch { display: none; }
  .hero-spark { width: 31px; top: 25px; right: 5%; }
  .hero h1 { max-width: 690px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 65px; --twig-logo-size: 31px; }
  .site-header nav { gap: 12px; font-size: 12px; }
  .site-header .nav-signup { min-height: 34px; padding-inline: 7px; font-size: 12px; white-space: nowrap; }
  .product-demo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 390px; }
  .demo-sidebar { padding: 7px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .demo-brand { display: none; }
  .demo-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .demo-tabs button { justify-content: center; min-height: 39px; gap: 3px; padding-inline: 3px; font-size: 11px; white-space: nowrap; }
  .demo-tabs .icon { width: 13px; height: 13px; }
  .demo-leaf, .demo-library { width: min(calc(100% - 30px), 390px); }
  .demo-library { padding-top: 28px; }
  .product-story, .plan-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 365px) {
  .site-header { gap: 8px; }
  .site-header nav { gap: 8px; }
  .hero h1 { font-size: 43px; }
  .actions { gap: 4px; }
  .actions .button { padding-inline: 10px; font-size: 13px; }
  .demo-tabs .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
