/* pddpro.es — the app's palette (mobile/shared/.../ui/Theme.kt), Literata + IBM Plex Sans as in the app. */
:root {
  --paper: #FBF7EE; --card: #FFFDF8; --ink: #2B2A28; --ink-soft: #5E5950; --line: #E6DFD0;
  --blue: #2F5D8C; --blue-deep: #264D75; --blue-bg: #E8EEF5; --on-blue-soft: #DCE6F1; --yellow: #F2C14E;
  --green: #2F7A4B; --green-bg: #E3F0E7; --red: #B03A31; --red-bg: #F8E4E1;
  --serif: "Literata", Georgia, serif; --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1A17; --card: #252320; --ink: #EDE7DB; --ink-soft: #B5AD9E; --line: #3A3630;
    --blue-bg: #223244; --green: #74C48F; --green-bg: #1E3326; --red: #F08C82; --red-bg: #402421;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { background: var(--blue); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px var(--serif); }
.logo-mark { width: 34px; height: 34px; }
.langs { display: flex; gap: 4px; }
.langs a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; color: var(--on-blue-soft); }
.langs a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; }
.langs a:hover { color: #fff; }

/* hero: the big banner */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 40px 0 72px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--yellow); }
.road { position: absolute; left: 0; right: 0; bottom: 8px; width: 100%; height: 78%; opacity: .08; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 44px; align-items: start; }
.pitch .card { margin-top: 32px; max-width: 520px; }
.badge { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: #2B2A28;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; }
h1 { font: 700 clamp(34px, 4.6vw, 54px)/1.08 var(--serif); letter-spacing: -.01em; margin: 0 0 20px; text-wrap: balance; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--on-blue-soft); max-width: 34em; margin: 0 0 28px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.ticks svg { width: 18px; height: 18px; fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* form card */
.card { background: var(--card); color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 24px 60px rgba(10, 25, 45, .28); scroll-margin-top: 24px; }
.card h2 { font: 700 26px/1.2 var(--serif); margin: 0 0 6px; }
.card-sub { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; }
form { display: grid; gap: 16px; }
.field span, legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
input[type=email] { width: 100%; font: 400 17px var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .15s; }
input[type=email]:focus { border-color: var(--blue); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { grid-column: 1 / -1; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 8px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all .15s; background: var(--paper); }
.seg input:checked + span { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg input:checked + span { color: #8EB6E3; border-color: #8EB6E3; } }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-block; width: 100%; border: 0; border-radius: 12px; padding: 15px 20px; background: var(--blue); color: #fff; font: 600 17px var(--sans);
  cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, transform .05s; }
.btn:hover { background: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-ghost { width: auto; }
.msg { margin: 0; font-size: 15px; min-height: 1.2em; }
.msg.ok { color: var(--green); background: var(--green-bg); padding: 12px 14px; border-radius: 12px; }
.msg.err { color: var(--red); }
.card.finished form > :not(.msg) { display: none; }

/* points */
.points { padding: 72px 0 24px; }
.point-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.point { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.point-ic { width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: var(--blue-bg); border-radius: 10px; padding: 6px; box-sizing: content-box; }
@media (prefers-color-scheme: dark) { .point-ic { stroke: #8EB6E3; } }
.point h3 { font: 700 20px/1.25 var(--serif); margin: 16px 0 8px; }
.point p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* screens */
.screens { padding: 56px 0 80px; text-align: center; }
.screens h2 { font: 700 clamp(28px, 3.4vw, 38px)/1.2 var(--serif); margin: 0 0 36px; }
.phones { display: flex; justify-content: center; gap: 28px; }
.phone { margin: 0; width: 250px; border-radius: 34px; padding: 10px; background: #1d1c1a; box-shadow: 0 18px 50px rgba(20, 20, 20, .18); }
.phone img { border-radius: 26px; }
.phone:nth-child(2) { transform: translateY(-18px); }
.again { margin: 40px 0 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* documents (privacy, 404) */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.doc h1 { color: var(--ink); font-size: clamp(30px, 4vw, 40px); }
.doc h2 { font: 700 22px var(--serif); margin: 32px 0 8px; }
.doc li { margin-bottom: 8px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.muted { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .visual { margin: 28px auto 32px; order: -1; }
  .badge { justify-self: start; }
  .pitch { display: contents; }
  .pitch > .badge, .pitch > h1, .pitch > .lead, .pitch > .ticks { order: -2; }
  .pitch .card { margin: 0 auto; width: 100%; }
}
@media (max-width: 960px) {
  .point-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .visual { width: auto; height: auto; display: flex; align-items: center; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px; padding: 8px 20px 20px; scrollbar-width: none; }
  .visual .device, .visual .ui-fc { position: relative; inset: auto; transform: none; flex: none; scroll-snap-align: center; }
  .dev-q { order: 1; } .dev-law { order: 2; } .visual .ui-fc { order: 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 28px 0 48px; }
  .card { padding: 22px 18px; }
  .point-grid { grid-template-columns: 1fr; }
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; gap: 16px; }
  .phone { flex: none; width: 70%; scroll-snap-align: center; }
  .phone:nth-child(2) { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* the banner's app screens: the app's light palette whatever the page's scheme (they show the app) */
.visual { position: relative; width: 500px; height: 640px; flex: none; }
.device { position: absolute; border-radius: 38px; padding: 9px; background: #151412; box-shadow: 0 30px 70px rgba(8, 20, 38, .45); }
.dev-q { left: 0; top: 40px; width: 244px; height: 560px; z-index: 2; }
.dev-law { right: 4px; top: 96px; width: 244px; height: 530px; transform: rotate(2.5deg); }
.ui { position: relative; height: 100%; overflow: hidden; border-radius: 30px; background: #FBF7EE; color: #2B2A28;
  font: 400 13px/1.45 var(--sans); text-align: left; }
.ui-bar { display: flex; align-items: center; gap: 8px; padding: 16px 14px 8px; color: #2B2A28; }
.ui-x { font-size: 20px; line-height: 1; }
.ui-of { font-size: 13px; color: #5E5950; font-weight: 500; }
.ui-ic { margin-left: auto; display: flex; gap: 12px; }
.ui-ic svg, .ui-pop svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-prog { display: flex; gap: 3px; padding: 0 14px 12px; }
.ui-prog i { flex: 1; height: 4px; border-radius: 2px; background: #E6DFD0; }
.ui-prog i.done { background: #2F7A4B; }
.ui-prog i.on { background: #2F5D8C; }
.ui-body { position: relative; padding: 4px 14px; }
.ui-stem { font-size: 15px; line-height: 1.42; margin: 0 0 8px; }
.kw { color: #2F5D8C; }
.ui-hl { background: #D5DEE9; border-radius: 3px; box-shadow: 0 0 0 2px #D5DEE9; }
.ui-help { color: #2F5D8C; margin: 0 0 10px; font-size: 13px; }
.ui-opt { display: flex; gap: 9px; align-items: flex-start; background: #FFFDF8; border: 1px solid #E6DFD0; border-radius: 12px;
  padding: 9px 10px; margin-bottom: 7px; font-size: 13px; }
.ui-opt small { display: block; color: #2F5D8C; font-size: 11.5px; margin-top: 2px; }
.ui-letter { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #E8EEF5; color: #2F5D8C; font-weight: 600; font-size: 11px;
  display: grid; place-items: center; }
.ui-pop { position: absolute; z-index: 5; visibility: hidden; background: #2B2A28; color: #fff; border-radius: 12px; padding: 8px 34px 9px 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); white-space: nowrap; }
.ui-pop small { display: block; color: #CFC8BA; font-size: 11px; }
.ui-pop strong { font-size: 14px; }
.ui-pop svg { position: absolute; right: 10px; top: 50%; margin-top: -8px; color: #fff; }
.ui-pop::after { content: ""; position: absolute; left: var(--px, 50%); bottom: -6px; margin-left: -7px; border: 7px solid transparent;
  border-bottom: 0; border-top-color: #2B2A28; }
.ui-ghost { padding: 6px 14px; }
.ui-ghost i { display: block; height: 11px; border-radius: 6px; background: #D9D2C3; margin: 9px 0; }
.ui-ghost i.short { width: 60%; }
.ui-ghost b { display: block; height: 44px; border-radius: 12px; background: #EDE6D6; margin-top: 16px; }
.ui-scrim { position: absolute; inset: 0; background: rgba(43, 42, 40, .38); }
.ui-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #FFFDF8; border-radius: 24px 24px 0 0; padding: 10px 16px 22px; }
.ui-handle { display: block; width: 34px; height: 4px; border-radius: 2px; background: #5E5950; margin: 0 auto 14px; }
.ui-sheet h4 { margin: 0 0 10px; font: 600 15px var(--sans); }
.ui-notice { background: #FFF1D6; color: #7A4B00; border-radius: 12px; padding: 9px 11px; font-weight: 500; margin: 0 0 10px; }
.ui-sheet p { margin: 0 0 8px; font-size: 13.5px; }
.ui-sheet .ui-help { font-size: 12.5px; margin: 0; }
.ui-fc { position: absolute; right: 0; top: 0; z-index: 3; width: 230px; background: #FFFDF8; color: #2B2A28; border-radius: 18px;
  padding: 14px 16px; box-shadow: 0 22px 50px rgba(8, 20, 38, .4); font: 400 12px/1.4 var(--sans); text-align: left; }
.ui-fc small { display: block; color: #5E5950; }
.ui-fc-score { font: 700 30px/1.15 var(--serif); margin: 2px 0; }
.ui-fc-score span { font: 500 14px var(--sans); color: #5E5950; }
.ui-fc p { margin: 8px 0 3px; font-size: 12.5px; }
.ui-scorebar { position: relative; height: 6px; border-radius: 3px; background: #E6DFD0; margin: 8px 0 2px; }
.ui-scorebar i { position: absolute; left: 76%; width: 17%; top: 0; bottom: 0; border-radius: 3px; background: #9FB6D0; }
.ui-scorebar b { position: absolute; left: 90%; top: -3px; width: 2px; height: 12px; background: #2F7A4B; }
