/* Clearway eSign website. Editorial and restrained: serif headlines, light sans body,
   one deep forest-green accent, square corners, thin rules and generous whitespace.
   Sage (#a8d5c2) is the accent on forest backgrounds; forest is the accent on white. */
:root {
  --ink: #0f1419;
  --slate: #2d353f;
  --text: #262d35;
  --muted: #5a626c;
  --forest: #0d4f47;
  --forest-deep: #083a34;
  --forest-ink: #062b27;
  --sage: #a8d5c2;
  --sage-soft: #e6f1ec;
  --paper: #ffffff;
  --panel: #f4f4f1;
  --line: #dcdfdb;
  --line-dark: #ffffff26;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10'%3E%3Ccircle r='30'/%3E%3Ccircle r='60'/%3E%3Ccircle r='90'/%3E%3Ccircle cx='120' cy='120' r='30'/%3E%3Ccircle cx='120' cy='120' r='60'/%3E%3Ccircle cx='120' cy='120' r='90'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; font: inherit; color: inherit; }
ul, ol, dl, dd { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, p { margin-top: 0; }
strong, b { font-weight: 600; }
::selection { background: var(--sage); color: var(--ink); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
section[id] { scroll-margin-top: 90px; }
svg { fill: none; stroke: var(--forest); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

.wrap { width: min(1200px, calc(100% - 80px)); margin: auto; }
.skip { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 12px 20px; background: #fff; }
.skip:focus { top: 10px; }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 4.2vw, 58px); line-height: 1.08; margin-bottom: 26px; }
h2 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.15; margin-bottom: 20px; }
h3 { font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.35; margin-bottom: 8px; }
em { font-style: normal; color: var(--forest); }
.label, .kicker { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kicker { color: var(--forest); }
.caption { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: var(--forest); color: #fff; border: 1px solid var(--forest); padding: 13px 22px; font-size: 14px; font-weight: 500; letter-spacing: .02em; transition: background .2s, color .2s; }
.button:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.button span { transition: transform .2s; }
.button:hover span { transform: translateX(3px); }
.button.outline { background: transparent; color: var(--forest); }
.button.outline:hover { background: var(--forest); color: #fff; }
.button.light { background: #fff; border-color: #fff; color: var(--forest-deep); }
.button.light:hover { background: var(--sage); border-color: var(--sage); }
.more { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.more:hover { color: var(--forest); border-color: var(--forest); }
.button-row { display: flex; gap: 30px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.fine-print { font-size: 13px; color: var(--muted); margin: 22px 0 0; }

/* Utility bar + header */
.utility { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.utility-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.utility a { color: var(--forest); font-weight: 400; }
.utility a:hover { text-decoration: underline; text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 40; background: #fffffff5; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand img { display: block; }
.brand-name { font-family: var(--serif); font-size: 25px; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.brand-product { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--forest); margin-left: -2px; padding-top: 4px; }
.nav nav, .nav-actions { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 400; }
.nav nav a, .nav-actions > a:first-child { color: var(--slate); position: relative; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav nav a:hover { color: var(--ink); }
.nav nav a:hover::after { transform: scaleX(1); }
.nav-actions > a:first-child:hover { color: var(--forest); }
.nav-actions .button { padding: 11px 18px; }
.menu-toggle { display: none; background: none; border: 0; }
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
#mobile-menu[hidden] { display: none !important; }
@media (min-width: 961px) { #mobile-menu { display: none !important; } }

/* Hero */
.hero { position: relative; padding: 0 0 80px; }
.hero-band { position: absolute; left: 0; right: 0; top: 0; height: 470px; background: var(--band) 0 0 / 120px 120px, linear-gradient(120deg, var(--forest-ink), var(--forest) 55%, #1f6b5f); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; padding-top: 90px; }
.hero-panel { background: #fff; padding: 56px 56px 48px; box-shadow: 0 1px 0 var(--line); border-bottom: 1px solid var(--line); }
.lede { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 560px; margin-bottom: 0; }
.hero-demo { padding-top: 36px; }
.hero-demo .caption { color: #ffffffb3; }

/* White document sheet used in the examples */
.sheet { background: #fff; color: var(--text); padding: 26px 28px; border: 1px solid var(--line); box-shadow: 0 18px 40px #0619171f; }
.sheet-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sheet-head svg { width: 26px; height: 26px; }
.sheet-head strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); line-height: 1.3; }
.sheet-head span { font-size: 13px; color: var(--muted); }
.steps { margin: 16px 0; display: grid; gap: 8px; font-size: 14px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.steps li > span { width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.steps .done > span { background: var(--sage-soft); color: var(--forest); }
.steps .now { font-weight: 500; color: var(--ink); }
.steps .now > span { background: var(--forest); color: #fff; }
.sig { border-bottom: 1px solid var(--ink); font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 28px; color: var(--ink); padding: 6px 4px 2px; margin: 6px 0 16px; }
.sealed { margin: 0; font-size: 13px; font-weight: 500; color: var(--forest); display: flex; gap: 8px; }

/* Documents strip */
.strip { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .label { margin: 0; }
.strip ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.strip li { font-family: var(--serif); font-size: 18px; color: var(--ink); padding: 0 18px; border-left: 1px solid var(--line); line-height: 1.3; }
.strip li:first-child { border-left: 0; }

/* Sections */
.section { padding: 110px 0; }
.panel { background: var(--panel); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 60px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin-bottom: 0; }
.section-head > p { color: var(--muted); font-size: 17px; margin: 0; max-width: 480px; justify-self: end; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 40px; }
.feature-grid article { border-top: 1px solid var(--ink); padding-top: 20px; }
.num { display: block; font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--forest); margin-bottom: 14px; }
.feature-grid p { font-size: 14.5px; color: var(--muted); margin: 0; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); }
.how-grid li { padding: 40px 36px 44px; border-left: 1px solid var(--line); }
.how-grid li:first-child { border-left: 0; }
.big-num { display: block; font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1; color: var(--forest); margin-bottom: 26px; }
.how-grid h3 { font-size: 19px; }
.how-grid p { color: var(--muted); font-size: 15px; margin: 0; }

/* Evidence */
.evidence { background: var(--band) 0 0 / 120px 120px, var(--forest-deep); color: #fff; padding: 110px 0; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.evidence h2 { color: #fff; }
.evidence em { color: var(--sage); }
.evidence .label, .evidence .caption { color: #ffffffa6; }
.evidence p:not(.label):not(.caption):not(.sealed) { color: #ffffffcc; font-size: 17px; }
.cert dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cert dt { color: var(--muted); }
.cert dd { text-align: right; font-weight: 500; color: var(--ink); }
.trail { display: flex; justify-content: space-between; padding: 18px 0 16px; font-size: 11px; color: var(--muted); position: relative; }
.trail::before { content: ""; position: absolute; top: 23px; left: 8%; right: 8%; height: 1px; background: var(--sage); }
.trail li { display: grid; justify-items: center; gap: 8px; text-align: center; position: relative; flex: 1; line-height: 1.3; }
.trail li span { width: 11px; height: 11px; background: var(--forest); box-shadow: 0 0 0 4px #fff; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 70px 0; }
.trust > div { border-left: 1px solid var(--forest); padding-left: 20px; }
.trust h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.trust p { font-size: 14px; color: var(--muted); margin: 0; }

/* API */
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.api-grid > div > p:not(.label):not(.caption) { color: var(--muted); font-size: 17px; }
.ticks { margin: 24px 0 32px; }
.ticks li { position: relative; font-size: 15px; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 5px; border-left: 1.5px solid var(--forest); border-bottom: 1.5px solid var(--forest); transform: rotate(-45deg); }
.flow { display: grid; border: 1px solid var(--line); background: #fff; }
.flow li { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; border-top: 1px solid var(--line); font-size: 15px; }
.flow li:first-child { border-top: 0; }
.flow b { font-weight: 500; color: var(--ink); }
.flow span { color: var(--muted); font-size: 14px; text-align: right; }
.flow .done { background: var(--forest); }
.flow .done b { color: #fff; }
.flow .done span { color: var(--sage); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; max-width: 940px; margin: auto; align-items: stretch; border: 1px solid var(--line); }
.plan { padding: 44px 48px; background: #fff; }
.plan .label { margin-bottom: 10px; color: var(--forest); }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 4px; }
.plan > p { font-size: 15px; color: var(--muted); }
.plan .price { font-family: var(--serif); font-weight: 300; font-size: 60px; line-height: 1.1; margin: 22px 0 26px; color: var(--ink); }
.price > span { font-family: var(--sans); font-size: 14px; margin-left: 10px; color: var(--muted); }
.plan .button { display: flex; justify-content: space-between; }
.plan .ticks { margin-bottom: 0; }
.featured { background: var(--forest-deep); color: #fff; }
.featured h3, .featured .price { color: #fff; }
.featured .label { color: var(--sage); }
.featured > p, .featured .price > span { color: #ffffffb3; }
.featured .ticks li { border-color: var(--line-dark); }
.featured .ticks li::before { border-color: var(--sage); }
.pricing-note { text-align: center; font-size: 13px; color: var(--muted); margin: 28px auto 0; max-width: 700px; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding: 110px 0; border-top: 1px solid var(--line); }
.faq > div > p:not(.label) { color: var(--muted); margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 25px; list-style: none; padding: 22px 0; font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--forest); }
.faq summary span { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary span::before, .faq summary span::after { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 1px; background: currentColor; transition: transform .2s; }
.faq summary span::after { transform: rotate(90deg); }
.faq details[open] summary span::after { transform: rotate(0); }
.faq details p { color: var(--muted); font-size: 15.5px; padding: 0 40px 24px 0; margin: 0; }
.faq details p a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

/* Closing */
.closing { background: var(--band) 0 0 / 120px 120px, linear-gradient(120deg, var(--forest-ink), var(--forest) 60%, #1f6b5f); padding: 90px 0; }
.closing-panel { background: #fff; max-width: 680px; padding: 52px 56px; }
.closing-panel .label { color: var(--forest); }
.closing-panel p:not(.label) { color: var(--muted); }
.closing-panel .button { margin-top: 10px; }

/* Footer */
.footer { background: var(--panel); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 28px; }
.footer-grid > div > p { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer nav .label { margin-bottom: 6px; }
.footer nav a { color: var(--slate); }
.footer nav a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.copyright { grid-column: 1 / -1; padding-top: 24px; margin: 20px 0 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) {
  .nav nav { gap: 20px; font-size: 14px; }
  .nav-actions > a:first-child { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-panel { max-width: 760px; }
  .hero-demo { max-width: 520px; padding-top: 50px; }
  .hero-demo .caption { color: var(--muted); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .evidence-grid, .api-grid, .faq { gap: 50px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: 1fr; gap: 12px; }
  .strip ul { justify-content: flex-start; }
  .strip li:first-child { padding-left: 0; }
}
@media (max-width: 960px) {
  .nav nav, .nav-actions { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); }
  #mobile-menu { display: grid; padding: 8px 40px 22px; gap: 0; border-top: 1px solid var(--line); background: #fff; }
  #mobile-menu a:not(.button) { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--slate); }
  #mobile-menu .button { margin-top: 16px; justify-content: space-between; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  #mobile-menu { padding: 8px 16px 22px; }
  .utility-inner { justify-content: center; text-align: center; }
  .utility-inner > span { display: none; }
  .nav { min-height: 68px; }
  .brand-name { font-size: 22px; }
  .hero { padding-bottom: 60px; }
  .hero-band { height: 300px; }
  .hero-grid { padding-top: 40px; }
  .hero-panel { padding: 34px 24px 32px; }
  h1 { font-size: 38px; }
  .lede { font-size: 16px; }
  .button-row { gap: 22px; }
  .sheet { padding: 22px 18px; }
  .strip li { font-size: 16px; padding: 2px 12px; }
  .section, .evidence { padding: 70px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; padding-bottom: 28px; }
  .section-head > p { justify-self: start; font-size: 16px; }
  .feature-grid, .evidence-grid, .api-grid, .faq, .trust { grid-template-columns: 1fr; }
  .feature-grid { gap: 34px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid li { border-left: 0; border-top: 1px solid var(--line); padding: 30px 24px; }
  .how-grid li:first-child { border-top: 0; }
  .big-num { font-size: 48px; margin-bottom: 16px; }
  .trust { gap: 26px; padding: 56px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan { padding: 32px 24px; }
  .plan .price { font-size: 50px; }
  .flow li { flex-direction: column; gap: 2px; padding: 16px 18px; }
  .flow span { text-align: left; }
  .trail { font-size: 10px; }
  .faq { padding: 70px 0; }
  .faq summary { font-size: 18px; }
  .faq details p { padding-right: 0; }
  .closing { padding: 50px 0; }
  .closing-panel { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 48px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
