/* Zurvia marketing site. Same tokens as the app (my.zurvia.com/assets/app.css) so the two feel like one product. */
:root {
  --brand: #ff8706;
  --brand-dark: #e07400;
  --brand-text: #b85b00;
  --brand-soft: #fff1e3;
  --charcoal: #2c2c2c;
  --charcoal-2: #383838;
  --ink: #1f1f1f;
  --body: #3d3b37;
  --muted: #6b6b6b;
  --line: #e6e3dd;
  --line-soft: #efede8;
  --bg: #f6f5f2;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 300; }
h1 strong, h2 strong { font-weight: 500; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; }
h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.005em; }
h4 { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
p { margin: 0; }
p + p { margin-top: 1em; }
.lead { font-size: 19px; color: var(--body); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-text); display: block; margin-bottom: 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--ink); font-weight: 500; font-size: 15px;
  padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
.btn.big { font-size: 17px; padding: 15px 26px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--white); }
.dark .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.dark .btn.ghost:hover { background: rgba(255,255,255,0.08); }
.plain { color: var(--ink); font-weight: 500; font-size: 15px; }
.arrow::after { content: "\2192"; margin-left: 6px; display: inline-block; transition: transform 0.25s var(--ease); }
.arrow:hover::after { transform: translateX(3px); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(246, 245, 242, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; gap: 34px; height: 66px; }
.logo img { width: 118px; height: auto; }
.site-nav { display: flex; gap: 26px; margin-left: 6px; }
.site-nav a { color: var(--body); font-size: 15px; font-weight: 400; padding: 6px 0; position: relative; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.site-nav a:hover::after, .site-nav a.current::after { transform: scaleX(1); }
.site-nav .nav-login, .site-nav .nav-cta { display: none; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* sections */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line-soft); }
.dark { background: var(--charcoal); color: #fff; border-top: 0 !important; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark p { color: rgba(255,255,255,0.78); }
.dark .eyebrow { color: var(--brand); }
.dark a:not(.btn) { color: #fff; }
.dark + section { border-top: 0; }
.white { background: var(--white); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.right { margin-left: auto; text-align: left; }
.sec-head .lead { margin-top: 16px; }

/* hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 22px; }
.hero-ctas { margin-top: 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-price { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-price b { color: var(--ink); font-weight: 500; }
.hero-visual { position: relative; margin-right: -8vw; }
.shot { background: var(--white); border-radius: var(--radius); box-shadow: 0 30px 70px -30px rgba(44, 44, 44, 0.45), 0 0 0 1px var(--line); overflow: hidden; }
.shot-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); background: #faf9f7; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.shot-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--white); border: 1px solid var(--line-soft); border-radius: 6px; padding: 2px 10px; }
.shot img { width: 100%; }
.sms {
  position: absolute; left: -40px; bottom: -34px; width: min(340px, 86%);
  background: var(--charcoal); color: #fff; border-radius: 18px 18px 18px 6px; padding: 16px 18px 14px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.5); font-size: 15px; line-height: 1.45;
  animation: rise 0.9s var(--ease) 0.5s both;
}
.sms .from { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 6px; display: flex; justify-content: space-between; }
.sms a { color: var(--brand); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fade-in { animation: rise 0.8s var(--ease) both; }
.fade-in.d2 { animation-delay: 0.12s; } .fade-in.d3 { animation-delay: 0.24s; } .fade-in.d4 { animation-delay: 0.36s; }

/* works with */
.works { padding: 34px 0; }
.works .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.works h4 { white-space: nowrap; }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.works li a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 500; font-size: 14px; border: 1px solid var(--line-soft); transition: border-color 0.2s, transform 0.25s var(--ease); }
.works li a:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.works li.more a { background: transparent; border-style: dashed; color: var(--body); font-weight: 400; }
.works .all { margin-left: auto; font-size: 14px; font-weight: 500; white-space: nowrap; }

/* trades */
.trades .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: start; }
.trade-cloud { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; line-height: 1.35; color: var(--ink); }
.trade-cloud li::after { content: "\00B7"; color: var(--brand); margin: 0 14px; font-weight: 500; }
.trade-cloud li:last-child::after { content: none; }
.trade-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 16px; color: var(--body); max-width: 56ch; }

/* how it works */
.steps { counter-reset: step; display: grid; gap: 72px; margin-top: 12px; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-text { counter-increment: step; }
.step-text::before { content: counter(step, decimal-leading-zero); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--brand-text); display: block; margin-bottom: 14px; }
.step-text h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 400; }
.step-text p { margin-top: 16px; color: var(--body); max-width: 50ch; }
.step-text ul { margin: 18px 0 0; padding: 0; list-style: none; color: var(--body); }
.step-text li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line-soft); }
.step-text li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.step-visual .shot { transform: rotate(-0.6deg); }
.step:nth-child(even) .step-visual .shot { transform: rotate(0.6deg); }
.thread { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 26px 28px 22px; display: grid; gap: 14px; max-width: 460px; margin: 0 auto; box-shadow: 0 30px 70px -40px rgba(44,44,44,0.4); }
.thread .meta { font-size: 12px; color: var(--muted); text-align: center; }
.bubble { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.bubble.out { background: var(--charcoal); color: #fff; border-bottom-left-radius: 6px; justify-self: start; }
.bubble.out a { color: var(--brand); }
.bubble.in { background: var(--bg); color: var(--ink); border-bottom-right-radius: 6px; justify-self: end; }
.bubble.sys { background: var(--brand-soft); color: var(--brand-text); font-size: 13px; justify-self: center; max-width: 100%; border-radius: 10px; text-align: center; }

/* different */
.diff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.diff { padding: 28px 0 30px; border-top: 1px solid rgba(255,255,255,0.14); }
.diff h3 { font-size: 20px; font-weight: 500; }
.diff p { margin-top: 10px; font-size: 16px; }
.diff .tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

/* pricing */
.price-panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.price-main { padding: 48px; }
.price-big { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.price-big .n { font-size: 72px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.price-big .per { color: var(--muted); font-size: 16px; }
.price-plus { margin-top: 14px; font-size: 19px; color: var(--body); }
.price-plus b { font-weight: 500; color: var(--ink); }
.price-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.price-list li { padding: 11px 0 11px 26px; border-top: 1px solid var(--line-soft); position: relative; color: var(--body); font-size: 16px; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--brand-dark); border-bottom: 2px solid var(--brand-dark); transform: rotate(-45deg); }
.price-side { background: var(--bg); padding: 48px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.calc { margin-top: 14px; }
.calc label { display: flex; justify-content: space-between; font-size: 15px; color: var(--body); margin-bottom: 10px; }
.calc output { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; accent-color: var(--brand); }
.calc-total { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-total .n { font-size: 44px; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-total .n small { font-size: 16px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.calc-total p { margin-top: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.price-side .btn { margin-top: auto; align-self: flex-start; }

/* faq */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.faq { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.faq h3 { font-size: 18px; font-weight: 500; }
.faq p { margin-top: 10px; color: var(--body); font-size: 16px; }

/* cta band */
.cta .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: center; }
.cta-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cta-actions .note { width: 100%; text-align: right; font-size: 14px; color: rgba(255,255,255,0.65) !important; }

/* integrations index */
.int-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.int-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; color: var(--ink); display: grid; gap: 8px; align-content: start; transition: transform 0.25s var(--ease), border-color 0.2s; }
.int-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); }
.int-card strong { font-size: 20px; font-weight: 500; }
.int-card span { color: var(--muted); font-size: 14px; }
.int-card em { font-style: normal; color: var(--brand-text); font-size: 14px; font-weight: 500; margin-top: 8px; }
.int-card.wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.int-card.wide span { font-size: 16px; color: var(--body); max-width: 60ch; }
.int-card.wide em { margin: 0; }

/* integration page */
.int-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.need { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.need h4 { margin-bottom: 8px; }
.need p { color: var(--body); font-size: 16px; }
.int-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
ol.rules { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: r; }
ol.rules li { counter-increment: r; position: relative; padding: 14px 0 16px 44px; border-top: 1px solid var(--line); color: var(--body); font-size: 16px; }
ol.rules li::before { content: counter(r); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--charcoal); color: #fff; font-size: 13px; font-weight: 500; display: grid; place-items: center; }
.rules-plain { margin-top: 20px; display: grid; }
.rules-plain div { padding: 13px 0 14px 22px; border-top: 1px solid var(--line); position: relative; color: var(--body); font-size: 16px; }
.rules-plain div::before { content: ""; position: absolute; left: 0; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.others { padding: 48px 0 72px; }
.others ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.others li a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 14px; }
.others li a:hover { border-color: var(--brand); text-decoration: none; }

/* support */
.support-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 64px; align-items: start; }
.contact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.contact a.big { font-size: 22px; font-weight: 500; color: var(--ink); }
.contact .small { color: var(--muted); }

/* form */
.form { margin-top: 32px; display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(255, 135, 6, 0.18); }
.field.bad input, .field.bad textarea { border-color: #c0392b; }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #a93226; background: #fdeeec; border: 1px solid #f5c6c1; border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-actions .small { max-width: 34ch; }
.form-done { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 26px 28px; }
.form-done p { margin-top: 10px; color: var(--body); }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }

/* legal */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 24px; font-weight: 500; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--body); font-size: 16px; }
.legal ul { padding-left: 22px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--white); padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h4 { margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--body); padding: 4px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand p { margin-top: 16px; color: var(--muted); max-width: 36ch; font-size: 14px; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.foot-base a { color: var(--body); }

/* responsive */
@media (max-width: 980px) {
  .hero .wrap, .trades .wrap, .step, .cta .wrap, .price-panel, .int-hero .wrap, .int-body .wrap, .support-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-right: 0; margin-top: 8px; }
  .sms { left: 12px; bottom: -26px; }
  .step:nth-child(even) .step-text { order: 0; }
  .step-visual .shot, .step:nth-child(even) .step-visual .shot { transform: none; }
  .price-side { border-left: 0; border-top: 1px solid var(--line); }
  .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int-card.wide { grid-column: span 2; grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .cta-actions .note { text-align: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 44px 0 72px; }
  .hero-ctas { gap: 16px; }
  .lead { font-size: 17px; }
  .site-head .wrap { gap: 16px; height: 60px; }
  .head-actions { display: none; }
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 24px 22px; flex-direction: column; gap: 4px; margin: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav a::after { display: none; }
  .site-nav .nav-login { display: block; }
  .site-nav .nav-cta { display: inline-flex; align-self: flex-start; margin-top: 14px; border-bottom: 0; }
  .diff-grid, .faq-grid, .int-grid { grid-template-columns: 1fr; }
  .int-card.wide { grid-column: span 1; }
  .price-main, .price-side { padding: 30px 24px; }
  .price-big .n { font-size: 56px; }
  .works .all { margin-left: 0; }
  .trade-cloud { font-size: 20px; }
  .trade-cloud li::after { margin: 0 10px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .sms { width: 88%; left: 6%; font-size: 14px; }
}
