/* noptime website — palette and type from the app */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url('../fonts/Poppins-Regular.ttf'); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url('../fonts/Poppins-Medium.ttf'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url('../fonts/Poppins-SemiBold.ttf'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url('../fonts/Poppins-Bold.ttf'); }

:root {
  --ink: #1E1D3A;
  --sub: #6F6E80;
  --purple: #702DD4;
  --violet: #A23DFF;
  --blue: #39B5FF;
  --lavender: #F4F0FF;
  --bg: #F7F8FF;
  --line: #E6E2F3;
  --card: #FFFFFF;
  --grad: linear-gradient(90deg, #39B5FF, #A23DFF);
  --shadow: 0 18px 50px rgba(80, 40, 160, .14);
  --radius: 24px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Poppins, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Language blocks: only the active language is shown */
[data-lang-block] { display: none; }
[data-lang-block].on { display: block; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 248, 255, .85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(230, 226, 243, .7);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img.ic { width: 38px; height: 38px; border-radius: 11px; }
.brand img.wm { height: 26px; }
nav.links { display: flex; gap: 26px; margin-left: auto; }
nav.links a { color: var(--ink); font-weight: 500; font-size: 15px; }
nav.links a:hover { color: var(--purple); text-decoration: none; }
.lang { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.lang button {
  font: 600 13px Poppins, sans-serif; color: var(--sub); background: none; border: 0;
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
}
.lang button.on { background: var(--lavender); color: var(--purple); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font: 600 16px Poppins, sans-serif;
  border-radius: 16px; padding: 14px 24px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px rgba(106, 47, 224, .3); }
.btn.store { background: #14131F; color: #fff; padding: 11px 20px; }
.btn.store svg { width: 26px; height: 26px; fill: #fff; }
.btn.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn.store small { font-weight: 500; font-size: 11px; opacity: .8; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; z-index: 0; }
.hero .blob.b1 { width: 520px; height: 520px; background: var(--blue); left: -180px; top: 120px; }
.hero .blob.b2 { width: 520px; height: 520px; background: var(--violet); right: -160px; top: -80px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--purple);
}
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 18px; }
.hero p.lead { font-size: 19px; color: var(--sub); max-width: 520px; margin-bottom: 30px; }
.hero .phones { position: relative; height: 640px; }

/* Phone mockup */
.phone {
  position: absolute; width: 270px; padding: 10px; border-radius: 44px; background: #14131F;
  box-shadow: 0 30px 70px rgba(80, 40, 160, .28), inset 0 0 0 2px #2C2A3D;
}
.phone img { border-radius: 35px; width: 100%; }
.phone.p1 { left: 6%; top: 30px; transform: rotate(-6deg); }
.phone.p2 { right: 4%; top: 0; transform: rotate(5deg); z-index: 2; }
.float-chip {
  position: absolute; z-index: 3; background: #fff; border-radius: 999px; padding: 10px 18px;
  font-weight: 600; font-size: 15px; box-shadow: var(--shadow); border: 1px solid #EEE7FD; white-space: nowrap;
}

/* Sections */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -.01em; margin: 10px 0 14px; }
.section-head p { color: var(--sub); font-size: 18px; }

/* Steps: text + phone, alternating */
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 90px; }
.step:last-child { margin-bottom: 0; }
.step.flip .step-text { order: 2; }
.step .num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 20px; margin-bottom: 18px;
}
.step h3 { font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
.step p { color: var(--sub); font-size: 17px; }
.step ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.step li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.step li::before { content: "✓"; color: var(--purple); font-weight: 700; }
.step-visual {
  position: relative; display: flex; justify-content: center; padding: 30px 0;
  background: radial-gradient(closest-side, rgba(162, 61, 255, .16), transparent 70%);
}
.step-visual .phone { position: relative; width: 290px; }

/* Feature cards with the onboarding illustrations */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 18px 18px 24px; box-shadow: var(--shadow);
  border: 1px solid #EFEBFA;
}
.card img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 16px; }
.card h4 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--sub); font-size: 15px; }

/* Votes band */
.votes { background: linear-gradient(135deg, #F4F0FF, #EAF4FF); border-radius: 36px; padding: 60px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.votes h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; margin-bottom: 14px; }
.votes p { color: var(--sub); font-size: 17px; }
.votes img { border-radius: 28px; box-shadow: var(--shadow); max-width: 380px; margin: 0 auto; }
.vote-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.vote-pills span { border-radius: 999px; padding: 8px 16px; font-weight: 600; border: 1.5px solid; }
.vote-pills .me { color: #FF3448; background: #FFECEE; border-color: #FFC5CB; }
.vote-pills .fa { color: #FF974D; background: #FFF2E8; border-color: #FFD6B8; }
.vote-pills .fr { color: #8C54ED; background: #F1EAFD; border-color: #D9C8FA; }

/* CTA */
.cta { text-align: center; background: var(--grad); color: #fff; border-radius: 36px; padding: 64px 30px; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; margin-bottom: 12px; }
.cta p { opacity: .9; font-size: 18px; margin-bottom: 28px; }
.cta .stores { justify-content: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; border: 1px solid #EFEBFA; padding: 18px 22px; box-shadow: 0 6px 20px rgba(80, 40, 160, .06); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--sub); margin-top: 10px; }

/* Support form */
.support-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
form.support { background: #fff; border-radius: 28px; padding: 34px; box-shadow: var(--shadow); border: 1px solid #EFEBFA; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px Poppins, sans-serif; color: var(--ink); background: #F8F7FC;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; outline: none; transition: border-color .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sub); margin-bottom: 22px; }
.check input { margin-top: 4px; accent-color: var(--purple); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-weight: 500; display: none; }
.form-msg.ok { display: block; background: #E8F8EF; color: #157347; }
.form-msg.err { display: block; background: #FDECEC; color: #B42318; }
.help-cards { display: grid; gap: 16px; }
.help-card { background: #fff; border-radius: 22px; padding: 22px; border: 1px solid #EFEBFA; box-shadow: 0 6px 20px rgba(80, 40, 160, .06); }
.help-card h4 { margin-bottom: 6px; }
.help-card p { color: var(--sub); font-size: 15px; }

/* Legal pages */
.page-hero { padding: 60px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.page-hero p { color: var(--sub); margin-top: 8px; }
.legal { background: #fff; border-radius: 28px; padding: 48px; box-shadow: var(--shadow); border: 1px solid #EFEBFA; max-width: 900px; margin: 0 auto 90px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 20px 0 6px; }
.legal p, .legal li { color: #3D3C55; font-size: 15.5px; }
.legal ul { margin: 8px 0 8px 22px; display: grid; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--lavender); }
.note { background: #FFF8E6; border: 1px solid #F7DFA0; color: #7A5B00; border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 24px; }

/* Footer */
footer { padding: 50px 0 40px; border-top: 1px solid var(--line); background: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer nav a { color: var(--sub); font-size: 14px; }
footer small { color: var(--sub); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .step, .votes, .support-grid { grid-template-columns: 1fr; }
  .step.flip .step-text { order: 0; }
  .hero .phones { height: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .votes { padding: 36px; }
}
@media (max-width: 760px) {
  nav.links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  nav.links.open { display: flex; }
  nav.links a { padding: 10px 0; }
  .menu-btn { display: block; }
  .lang { margin-left: 0; }
  section { padding: 64px 0; }
  .hero .phones { height: 470px; }
  .phone { width: 210px; border-radius: 36px; }
  .phone img { border-radius: 28px; }
  .step-visual .phone { width: 240px; }
  .cards { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .legal { padding: 28px 22px; }
  .float-chip { font-size: 13px; padding: 8px 14px; }
}

/* web app access */
.top .btn.login { padding: 9px 18px; font-size: 14px; }
.web-cta { margin-top: 14px; font-size: 15px; }
.web-cta a { color: var(--purple); font-weight: 600; }
@media (max-width: 760px) { .top .btn.login { margin-left: auto; padding: 8px 14px; } }
