:root {
  font: 16px/1.5 system-ui, sans-serif;
  color: #14172e;
  background: #f7f8fc;
  --accent: #4748df;
  --line: #e2e5ef;
  --muted: #555d78;
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0 }
[hidden] { display: none !important }
a { color: inherit; text-underline-offset: .21em }
header, main, footer { max-width: 1330px; padding-inline: clamp(18px, 4vw, 56px); margin: auto }
.site-header, footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 20px }
.site-header nav, .brand, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px }
.site-header nav a { text-decoration: none; color: var(--muted); font-weight: 600 }
.brand { gap: 9px; font-size: 15px; text-decoration: none }
.brand strong { font-size: 21px; letter-spacing: -.05em }
.brand > span:last-child { color: var(--muted) }
.brand-icon, .feature-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: white; font-weight: 800 }
button, input, select { font: inherit }
button { padding: .62rem .9rem; color: inherit; background: white; border: 1px solid var(--line); border-radius: 9px; font-weight: 650; cursor: pointer }
button:hover:not(:disabled) { border-color: var(--accent) }
button:disabled { opacity: .6; cursor: wait }
:focus-visible { outline: 3px solid #8797ff; outline-offset: 3px }
.primary { color: white; background: var(--accent); border-color: var(--accent) }
.hero {
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
  padding: clamp(24px, 5vw, 76px);
  border-radius: 23px;
  min-height: 490px;
  background: radial-gradient(ellipse at 95% 0, #3e438f 0, transparent 56%), linear-gradient(139deg, #17162f, #252b66);
}
h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 5.2rem); font-weight: 760; letter-spacing: -.064em; line-height: .99 }
.hero p { max-width: 34rem; margin: 21px 0 24px; color: #d7ddff; font-size: clamp(1rem, 1.5vw, 1.18rem) }
.hero .primary { color: #15143c; background: #b7c1ff; border-color: #b7c1ff }
.hero .actions a { color: #edf0ff; font-size: 14px; font-weight: 650 }
.demo { min-width: 0; padding: 12px; color: #181a38; border-radius: 17px; background: #d9e2ff; box-shadow: 0 20px 60px #08061f55 }
.demo-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 10px; font-size: 13px; font-weight: 700 }
.sample-tabs { display: flex; gap: 3px }
.sample-tabs button { font-size: 13px; padding: .34rem .6rem; border-radius: 6px; background: transparent; border-color: transparent }
.sample-tabs button[aria-pressed=true] { color: #3333b5; background: #fff; box-shadow: 0 1px 3px #16206124 }
.sample { min-height: 325px; padding: clamp(12px, 2.4vw, 27px); border-radius: 10px; background: white }
.sample-header, .sample-total { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 11px }
.sample-header b { color: #4748df; font-size: 20px; letter-spacing: -.05em }
.sample-header div { text-align: right }
.sample-header small { display: block; color: var(--muted); font-size: 12px }
.hero .sample-project { margin: 16px 0 8px; color: #14172e; font-weight: 760; font-size: 17px }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 12px }
.parties b { display: block; color: #14172e }
.sample-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px }
.sample-row strong { grid-column: 1 / -1; color: #4344ca }
.sample-total { margin-top: 7px; padding: 9px; border: 0; border-radius: 7px; background: #edf0ff; font-size: 14px }
#sample-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 14px; color: var(--muted); font-size: 12px }
#sample-sign span { border-top: 1px solid var(--line); padding-top: 4px }
#galimybes, #planai { margin: clamp(32px, 5vw, 62px) 0 }
h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.04em }
.features, .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px }
.features article, .plans article { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 21px }
.feature-icon { margin-bottom: 12px; background: #ededff; color: #4243bc; font-size: 20px }
.features h3, .plans h3 { margin: 0; font-size: 1.1rem }
.features p, .section-description, footer { color: var(--muted) }
.features p { margin: 8px 0 0 }
.plans b { display: block; margin-top: 10px; font-size: 1.8rem; letter-spacing: -.04em }
.plans small { font-size: 14px; color: var(--muted) }
.plans ul { padding-left: 18px }
.plans li { margin: 4px 0 }
.plans a { color: #393ab8; font-weight: 650 }
.plans .plan-accent { border-color: #a7afff; box-shadow: inset 0 3px #797aff }
footer { border-top: 1px solid var(--line); font-size: 14px }
dialog { width: min(460px, calc(100vw - 28px)); max-height: 90vh; padding: 24px; border: 1px solid var(--line); border-radius: 15px }
dialog::backdrop { background: #161a387f }
.close { position: absolute; right: 12px; top: 10px; border: 0 }
label { display: grid; gap: 5px; font-weight: 650; margin-bottom: 12px }
input, select { width: 100%; padding: .55rem; border: 1px solid #b9c3d8; border-radius: 7px; color: inherit; background: white }
fieldset { border: 1px solid var(--line); border-radius: 9px; margin: 12px 0; padding: 12px }
#auth-error { color: #a12939 }
#auth-error:empty { display: none }
#auth-form button:not(.close) { margin-top: 8px }
#privacy-note { position: fixed; right: 12px; bottom: 12px; width: min(370px, calc(100% - 24px)); padding: 12px 14px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px #12173722; font-size: 14px }
#privacy-note p { margin: 0 0 8px; color: var(--muted) }
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; min-height: 0 }
  .features, .plans { grid-template-columns: 1fr }
  .site-header nav { gap: 10px }
}
@media (max-width: 445px) {
  .site-header nav a { display: none }
  .brand > span:last-child { display: none }
}
