/* VIPpa — οθόνες iPhone. Χρώματα και μεγέθη από το σχέδιο οθονών. */
:root {
  --bg: #F7F6F3; --surface: #FFFFFF; --sunken: #EDEBE6; --line: #D9D6CF;
  --text: #1A1A1A; --muted: #5C5C5C; --accent: #1D4E89; --accent-soft: #DCE6F2;
  --urgent: #B4400E; --done: #2E6B3F; --danger: #A12A1E;
  --radius: 20px; --gap: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212; --surface: #1E1E1E; --sunken: #2A2A2A; --line: #3A3A3A;
    --text: #F2F2F2; --muted: #A9A9A9; --accent: #7FA8DA; --accent-soft: #24384F;
    --urgent: #F08A5D; --done: #7CC28E; --danger: #F2867A;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  min-height: 100dvh;
}
.screen {
  max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 24px) 20px calc(env(safe-area-inset-bottom) + 100px);
}
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
h2.label, .label {
  margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
a { color: var(--accent); }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 14px; }
.big-text { font-size: 18px; font-weight: 600; }
.col { display: flex; flex-direction: column; gap: 4px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.center { display: flex; flex-direction: column; gap: 24px; align-items: stretch; text-align: center; padding-top: 12vh; }
.brand h1 { font-size: 40px; }
.top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.top.col { align-items: flex-start; }
.top h1 { font-size: 24px; }
.back { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); margin-left: -12px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.card {
  background: var(--surface); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); border: 1.5px solid transparent;
}
.card.urgent { border-color: var(--urgent); }
.card.done { border-color: var(--done); }
.urgent-text { color: var(--urgent); }
.done-text { color: var(--done); }

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); text-align: left; }
input, textarea, select {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
textarea { resize: vertical; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.ask { display: flex; gap: 8px; align-items: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 18px; width: 100%;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); font-weight: 600; }
.btn.big { min-height: 56px; font-size: 17px; border-radius: 16px; }
.btn.icon { width: 48px; padding: 0; flex: none; }
.btn[disabled] { opacity: 0.6; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0E1A2A; } }

.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { padding: 0 0 8px; font-size: 14px; color: var(--muted); }
.segmented { padding: 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--sunken); border-radius: 12px; }
.segmented label { flex-direction: row; justify-content: center; align-items: center; min-height: 40px; border-radius: 9px; color: var(--text); font-size: 15px; cursor: pointer; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--surface); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--accent); }

.quote { margin: 0; background: var(--sunken); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 26px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex: none; }
.facts { margin: 0; display: grid; grid-template-columns: 108px 1fr; gap: 10px 12px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.divider { border-top: 1px solid var(--line); padding-top: 12px; }
details summary { cursor: pointer; font-weight: 600; min-height: 28px; }
details[open] summary { margin-bottom: 12px; }

.alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); font-size: 15px; }

.row { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; padding: 14px 16px; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row-name { font-weight: 600; }
.badge { font-size: 12px; font-weight: 700; color: #fff; border-radius: 6px; padding: 3px 8px; }
.badge.urgent { background: var(--urgent); }
.status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.s-completed { color: var(--done); font-weight: 600; }
.s-failed { color: var(--danger); }
.s-calling { color: var(--accent); font-weight: 600; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.step .end { margin-left: auto; white-space: nowrap; }
.dot { width: 14px; height: 14px; border-radius: 7px; background: var(--line); flex: none; }
.step.done .dot { background: var(--done); }
.step.failed .dot { background: var(--danger); }
.step.active .dot { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .step.active .dot { animation: none; } }
.summary { margin: 0; white-space: pre-line; font-size: 16px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; justify-content: center; font-size: 11px; color: var(--muted); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.btn.pick { justify-content: space-between; text-align: left; min-height: 60px; }
.cal { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sunken); }
.cal.ok { background: color-mix(in srgb, var(--done) 12%, var(--surface)); color: var(--done); }
.cal.busy { background: color-mix(in srgb, var(--urgent) 12%, var(--surface)); color: var(--urgent); }
.btn.mic { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.btn.mic[aria-pressed="true"] { background: var(--urgent); border-color: var(--urgent); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn.mic[aria-pressed="true"] { animation: none; } }
.grow { flex: 1; min-width: 0; }
label.radio { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: 15px; min-height: 36px; }
label.radio input { width: auto; }
.ask .btn:not(.icon) { width: auto; flex: none; }
.segmented label { padding: 0 4px; text-align: center; font-size: 14px; }
.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--sunken); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.filters a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14px; }
.filters a[aria-current="page"] { background: var(--surface); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.staging-banner { margin: 0; padding: calc(env(safe-area-inset-top) + 4px) 12px 4px; background: #B4400E; color: #fff; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

/* Δημόσια σελίδα και νομικά κείμενα */
.welcome-hero h1 { font-size: 1.7rem; line-height: 1.2; text-wrap: balance; margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.legal { max-width: 68ch; }
.legal h2 { font-size: 1.05rem; margin: 12px 0 0; }
.legal p, .legal ul { margin: 0; line-height: 1.6; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.legal-note { padding: 10px 12px; border-radius: 10px; background: var(--sunken); font-size: 14px; }
.legal-table { overflow-x: auto; }
.legal-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
