/* Cadence website. Editorial and plain on purpose: paper, ink, one accent, real screenshots. */
:root {
  --paper: #f6f4ee;
  --paper-2: #eeebe2;
  --white: #ffffff;
  --ink: #15132a;
  --ink-2: #4a4760;
  --ink-3: #77738c;
  --line: rgba(21, 19, 42, 0.12);
  --line-2: rgba(21, 19, 42, 0.22);
  --accent: #5b47e6;
  --accent-deep: #4636c9;
  --night: #0b0a1b;
  --night-2: #151330;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
::selection { background: rgba(91, 71, 230, 0.22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); line-height: 1.03; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; }
h3 { font-size: 1.35rem; line-height: 1.25; }
.eyebrow { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; display: block; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.small { font-size: 0.9rem; color: var(--ink-3); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 600 1.18rem/1 var(--sans); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 0.97rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.btn:hover { background: #2b2848; border-color: #2b2848; color: var(--paper); }
.btn-sm { padding: 10px 17px; font-size: 0.9rem; border-radius: 8px; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.arrow { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.arrow::after { content: " \2192"; }
.arrow:hover { border-bottom-color: var(--ink); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 26px; margin-top: 34px; }

/* Hero */
.hero { padding: 92px 0 0; }
.hero h1 { max-width: 13em; }
.hero .lede { margin-top: 26px; }
.hero .small { margin-top: 18px; }

/* Screenshots */
.shot { margin: 0; }
.shot img { border-radius: 14px; box-shadow: 0 1px 2px rgba(21, 19, 42, 0.1), 0 30px 60px -20px rgba(21, 19, 42, 0.45); background: var(--night); }
.shot figcaption { font-size: 0.85rem; color: var(--ink-3); margin-top: 16px; }
.hero .shot { margin-top: 64px; }
.on-dark .shot img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.6); }

/* Sections */
section { padding: 104px 0; }
.rule { border-top: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.1rem; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.trio > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.num { font: 500 1rem/1 var(--serif); color: var(--accent-deep); display: block; margin-bottom: 18px; font-feature-settings: "tnum"; }
.trio h3 { margin-bottom: 12px; }
.trio p { color: var(--ink-2); }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; padding: 76px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip .copy { order: 2; }
.feature h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: 18px; }
.feature .copy p { color: var(--ink-2); }
.feature ul, .ticks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; color: var(--ink-2); }
.feature li, .ticks li { position: relative; padding-left: 26px; }
.feature li::before, .ticks li::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }

.on-dark { background: var(--night); color: #efedf8; }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .eyebrow { color: #9a96b8; }
.on-dark p, .on-dark li { color: #b9b5d3; }
.on-dark a { color: #cfc7ff; }
.on-dark .arrow { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.3); }
.on-dark .trio > div { border-top-color: rgba(255, 255, 255, 0.35); }
.on-dark .num { color: #b3a8ff; }
.on-dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.on-dark .btn:hover { background: #e9e5ff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* Tables and lists */
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th { text-align: left; font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); padding: 0 16px 14px 0; border-bottom: 1px solid var(--line-2); }
td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.on-dark th { color: #9a96b8; border-bottom-color: rgba(255, 255, 255, 0.25); }
.on-dark td { border-bottom-color: rgba(255, 255, 255, 0.12); color: #b9b5d3; }
.on-dark td:first-child { color: #fff; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 38px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font: 500 3.4rem/1 var(--serif); color: var(--accent-deep); letter-spacing: -0.03em; font-feature-settings: "tnum"; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); max-width: 36em; }

dl.pairs { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
dl.pairs > div { padding: 24px 0; border-top: 1px solid var(--line); }
dl.pairs dt { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
dl.pairs dd { margin: 0; color: var(--ink-2); }

/* Pricing */
.plan { background: var(--white); border: 1px solid var(--line-2); border-radius: 14px; padding: 40px; }
.plan .amount { font: 500 clamp(3.6rem, 7vw, 5rem)/1 var(--serif); letter-spacing: -0.04em; margin: 8px 0 4px; }
.plan .amount span { font: 500 1.1rem/1 var(--sans); letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.plan .ticks { margin: 28px 0 32px; }
.plan .btn { width: 100%; }
.plan .small { margin-top: 16px; text-align: center; }

/* Q and A */
.qa { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; padding: 44px 0; border-top: 1px solid var(--line); }
.qa h2 { font-size: 1.6rem; }
.qa dl { margin: 0; display: grid; gap: 30px; }
.qa dt { font-weight: 650; color: var(--ink); margin-bottom: 8px; font-size: 1.05rem; }
.qa dd { margin: 0; color: var(--ink-2); }
.qa dd p + p { margin-top: 12px; }

/* Document pages */
.doc-head { padding-top: 80px; padding-bottom: 40px; }
.doc-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.doc-head .lede { margin-top: 20px; }
.doc-head .small { margin-top: 14px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 72px; padding: 16px 0 100px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.92rem; }
.toc strong { display: block; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-left: 1px solid var(--line); padding-left: 16px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose h2 { font-size: 1.7rem; margin: 52px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 1.03rem; font-weight: 650; letter-spacing: 0; margin: 28px 0 8px; }
.prose p { color: var(--ink-2); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }
.callout { border-left: 3px solid var(--accent); background: var(--white); padding: 20px 24px; margin: 0 0 8px; border-radius: 0 10px 10px 0; color: var(--ink-2); }

.center { min-height: 60vh; display: flex; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.center h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 14em; }
.center .lede { margin-top: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 48px; background: var(--paper-2); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot p { color: var(--ink-3); font-size: 0.92rem; margin-top: 14px; max-width: 24em; }
.foot h4 { margin: 0 0 16px; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.8rem; line-height: 1.6; max-width: 62em; }

/* Narrow screens */
@media (max-width: 960px) {
  section { padding: 76px 0; }
  .trio { grid-template-columns: 1fr; gap: 36px; }
  .feature, .two { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .copy { order: 0; }
  .qa { grid-template-columns: 1fr; gap: 20px; }
  .doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .toc ul { border-left: 0; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
  dl.pairs { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { grid-template-columns: 1fr auto; height: auto; padding-top: 12px; padding-bottom: 0; gap: 8px 16px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: 18px; white-space: nowrap; }
  .site-nav a { font-size: 0.9rem; }
  .site-nav a { display: inline-block; padding: 12px 0 10px; }
  .hero { padding-top: 56px; }
  .hero .shot { margin-top: 44px; }
  .steps li { grid-template-columns: 56px 1fr; gap: 14px; padding: 28px 0; }
  .steps .n { font-size: 2.2rem; }
  .plan { padding: 28px 22px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 3px 0; white-space: normal !important; }
  .on-dark tr { border-bottom-color: rgba(255, 255, 255, 0.14); }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.ticks { margin: 0; }
.two > .ticks { margin-top: 6px; }
