/* Website styles. Needs brand/tokens.css and brand/components.css first. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--green); }

/* Language: both texts are in the page; the html data-lang attribute picks one. */
html[data-lang="el"] [lang="en"]:not(html), html[data-lang="en"] [lang="el"]:not(html) { display: none !important; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; scroll-margin-top: 72px; }
.section.sand { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green); margin: 0 0 16px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--green-mid); border-radius: 2px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 20px 0 0; }
.muted { color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(252, 251, 248, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.top .logo img { height: 34px; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a.link { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a.link:hover { color: var(--green); }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.lang button, .lang a { border: 0; text-decoration: none; display: inline-block; background: transparent; font: 600 13px/1 var(--font-sans); padding: 8px 10px; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"], .lang a[aria-current="page"] { background: var(--green-soft); color: var(--green-deep); }
.top .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: radial-gradient(900px 480px at 85% 10%, #EAF4EC 0%, rgba(234, 244, 236, 0) 70%), var(--paper); }
.hero .container { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.stage { position: relative; min-height: 580px; }
.stage .card { position: absolute; }
.stage .s1 { left: 0; right: 48px; top: 0; }
.stage .s2 { right: 0; width: 320px; top: 330px; box-shadow: var(--shadow-float); }
.stage .s3 { left: -20px; width: 240px; top: 390px; box-shadow: var(--shadow-float); padding: 16px 18px; }
.stage .s3 .big { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stage .s3 p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; font-size: 15px; color: var(--ink-2); }
.strip span { display: inline-flex; align-items: center; gap: 10px; }
.strip i { width: 20px; height: 20px; border-radius: 6px; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2314532D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; flex: none; }

/* Features */
.head { max-width: 640px; margin-bottom: 56px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .text { order: 2; }
.feature h3 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.feature p { color: var(--ink-2); margin: 0 0 12px; }
.feature .text ul { list-style: none; padding: 0; margin: 18px 0 0; }
.feature .text li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--ink-2); font-size: 16px; }
.feature .text li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 5px; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2314532D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.visual { position: relative; }
.visual .card { max-width: 460px; }
.visual .paper-form { max-width: 460px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Security */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.trust div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--card); }
.trust b { display: block; font-size: 17px; margin: 14px 0 4px; }
.trust p { margin: 0; font-size: 15px; color: var(--muted); }
.trust svg { width: 28px; height: 28px; color: var(--green); }

/* Demo */
.demo { background: var(--night); color: #fff; }
.demo .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.demo h2 { color: #fff; }
.demo .lead { color: #C9D6CD; }
.demo .eyebrow { color: var(--green-light); }
.demo .eyebrow::before { background: var(--green-light); }
.demo .alt { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.demo .alt p { margin: 0 0 14px; color: #C9D6CD; font-size: 15px; }
.demo .alt .row { display: flex; flex-wrap: wrap; gap: 12px; }
.demo .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.demo .btn-secondary:hover { background: rgba(255, 255, 255, .06); }
.form { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 32px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { height: 46px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 14px; font: 16px var(--font-sans); color: var(--ink); background: #fff; }
.field input::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field select:focus { outline: 2px solid var(--green-mid); outline-offset: 1px; border-color: var(--green); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-primary { width: 100%; height: 50px; font-size: 16px; margin-top: 16px; }
.form .btn-primary[disabled] { opacity: .6; cursor: wait; }
.form .msg { margin: 14px 0 0; font-size: 14px; }
.form .msg.err { color: var(--red); }
.thanks { text-align: center; padding: 40px 12px; }
.thanks .tick { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/30px no-repeat; }
.thanks h3 { font-size: 22px; margin-bottom: 6px; }
.small { font-size: 13px; color: var(--muted); }

/* Footer */
.foot { padding: 40px 0; font-size: 14px; color: var(--muted); }
.foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot img { height: 26px; display: block; }
.foot a { color: var(--muted); }

/* Privacy page */
.doc-page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc-page h1 { font-size: 40px; margin-bottom: 8px; }
.doc-page h2 { font-size: 22px; margin: 36px 0 8px; }
.doc-page p, .doc-page li { color: var(--ink-2); }

@media (max-width: 960px) {
  .nav a.link { display: none; }
  .hero .container, .feature, .demo .container { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .text { order: 0; }
  .stage { min-height: 0; display: grid; gap: 16px; }
  .stage .card { position: static; width: auto !important; }
  .stage .s3 { display: none; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .top .btn { display: none; }
  .form { padding: 22px; }
  .form .grid2 { grid-template-columns: 1fr; gap: 0; }
  .list li { grid-template-columns: 32px 1fr; }
  .list li .badge { grid-column: 2; justify-self: start; }
}

/* ---- Motion ----
   Start states apply only under html.motion-ok (head script, skipped for reduced motion)
   and, below the hero, only to elements motion.js marked. Without JS the page is final. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Header solidifies on scroll (no height change, so no layout shift). */
.top { transition: border-color .25s, background-color .25s, box-shadow .25s; }
.top.scrolled { background: rgba(252, 251, 248, .97); box-shadow: 0 10px 24px -18px rgba(21, 32, 26, .35); }

/* Soft edges into and out of the sand section instead of hard rules. */
.section.sand { border: 0; background: linear-gradient(to bottom, var(--paper), var(--sand) 96px, var(--sand) calc(100% - 96px), var(--paper)); }

/* Hero stage: cards rise, rows arrive one by one, badge dots settle, the forms slide in after. */
@keyframes m-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes m-row { from { opacity: 0; transform: translateY(10px); } }
@keyframes m-slide { from { opacity: 0; transform: translateX(14px); } }
@keyframes m-pop { from { transform: scale(0); } 60% { transform: scale(1.6); } }
@keyframes m-grow { from { transform: scaleX(0); } }
.motion-ok .stage .s1 { animation: m-rise .8s cubic-bezier(.16, 1, .3, 1) .05s both; }
.motion-ok .stage .s1 .count { animation: m-rise .5s cubic-bezier(.16, 1, .3, 1) .35s both; }
.motion-ok .stage .s1 .list li { animation: m-row .6s cubic-bezier(.16, 1, .3, 1) both; }
.motion-ok .stage .s1 .list li:nth-child(1) { animation-delay: .3s; }
.motion-ok .stage .s1 .list li:nth-child(2) { animation-delay: .4s; }
.motion-ok .stage .s1 .list li:nth-child(3) { animation-delay: .5s; }
.motion-ok .stage .s1 .list li:nth-child(4) { animation-delay: .6s; }
.motion-ok .stage .s1 .badge i { animation: m-pop .5s ease-out both; }
.motion-ok .stage .s1 .list li:nth-child(1) .badge i { animation-delay: .7s; }
.motion-ok .stage .s1 .list li:nth-child(2) .badge i { animation-delay: .8s; }
.motion-ok .stage .s1 .list li:nth-child(3) .badge i { animation-delay: .9s; }
.motion-ok .stage .s1 .list li:nth-child(4) .badge i { animation-delay: 1s; }
.motion-ok .stage .s2 { animation: m-rise .8s cubic-bezier(.16, 1, .3, 1) .75s both; }
.motion-ok .stage .s2 .forms li { animation: m-slide .6s cubic-bezier(.16, 1, .3, 1) both; }
.motion-ok .stage .s2 .forms li:nth-child(1) { animation-delay: .95s; }
.motion-ok .stage .s2 .forms li:nth-child(2) { animation-delay: 1.07s; }
.motion-ok .stage .s3 { animation: m-rise .8s cubic-bezier(.16, 1, .3, 1) .9s both; }
.motion-ok .stage .s3 .progress i { transform-origin: left center; animation: m-grow 1s cubic-bezier(.16, 1, .3, 1) 1.15s both; }

/* Reveal on scroll (motion.js marks only blocks below the fold). */
.motion-ok [data-m] { transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
.motion-ok [data-m]:not(.m-in) { opacity: 0; transform: translateY(20px); }

/* Feature cards play out once in view. */
.motion-ok .m-seq .pf-box.filled { transition: color .3s, background-color .3s, border-color .3s; }
.motion-ok .m-seq .pf-box.filled:not(.on) { color: transparent; background: #fff; border-color: var(--line-strong); }
.motion-ok .m-seq .pf-seal { transition: opacity .2s, transform .45s cubic-bezier(.2, 1.5, .4, 1); }
.motion-ok .m-seq .pf-seal:not(.on) { opacity: 0; transform: scale(1.5) rotate(-30deg); }
.motion-ok .m-seq .checks .tick { transition: background-color .25s, border-color .25s; }
.motion-ok .m-seq .checks li.done:not(.on) { color: var(--ink); }
.motion-ok .m-seq .checks li.done:not(.on) .tick { background: #fff; border-color: var(--line-strong); }
.motion-ok .m-seq .progress i { transform-origin: left center; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.motion-ok .m-seq .list li { transition: opacity .5s, transform .6s cubic-bezier(.16, 1, .3, 1); }
.motion-ok .m-seq .list li:not(.on) { opacity: 0; transform: translateY(10px); }

/* Steps: a line through the numbers fills with scroll (wide screens); the active step lifts. */
.steps { position: relative; }
.step { transition: border-color .35s, box-shadow .35s; }
.step::before { position: relative; z-index: 2; transition: box-shadow .35s; }
.step.is-active { border-color: var(--green-light); box-shadow: var(--shadow-float); }
.step.is-active::before { box-shadow: 0 0 0 6px var(--green-soft); }
.steps-line { position: absolute; z-index: 1; top: 46px; height: 2px; left: 47px; right: calc((100% - 48px) / 3 - 47px); background: var(--line-strong); border-radius: 2px; pointer-events: none; }
.steps-line i { display: block; height: 100%; background: var(--green-mid); border-radius: inherit; transform: scaleX(0); transform-origin: left center; }

/* Spotlight on the security tiles (fine pointers only; motion.js adds .spot). */
.trust .spot { position: relative; overflow: hidden; }
.trust .spot::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(63, 164, 99, .12), transparent 70%); }
.trust .spot:hover::after { opacity: 1; }
.trust .spot > * { position: relative; z-index: 1; }

@media (max-width: 960px) { .steps-line { display: none; } }

/* Keep "5 of 7" on one line beside long card titles. */
.progress-label { white-space: nowrap; }

/* Were inline style attributes; the security policy allows no inline styles. */
.progress.mt12 { margin-top: 12px; }
.progress i.p71 { width: 71%; }

/* Grid children may shrink below their content (the 300px Turnstile box), so small phones don't scroll sideways. */
.demo .container > *, .hero .container > * { min-width: 0; }
@media (max-width: 360px) { .form { padding: 16px; } }
