/* ProvidTime core.css — design tokens ported from ProvidAI login.html (2026-04-20) */

:root {
  --blue1: #0b3c7a;
  --blue2: #0f3a5f;
  --accent: #1b55db;
  --accent-hover: #1549b8;
  --ink: #0b1220;
  --ink2: #1f2a44;
  --muted: #64748b;
  --muted2: #94a3b8;
  --line: rgba(10, 88, 176, .12);
  --line-soft: rgba(10, 88, 176, .08);
  --light-bg: #f0f5ff;
  --card-border: rgba(10, 88, 176, .10);
  --white: #ffffff;
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, .08);
  --success-line: rgba(22, 163, 74, .22);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, .06);
  --danger-line: rgba(220, 38, 38, .18);
  --danger-ink: #991b1b;
  --focus: rgba(27, 85, 219, .14);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .04), 0 10px 30px rgba(10, 60, 122, .05);
  --shadow-lift: 0 20px 50px rgba(0, 0, 0, .06);
  --shadow-btn: 0 14px 30px rgba(15, 63, 182, .18);
  --shadow-btn-hover: 0 18px 38px rgba(15, 63, 182, .24);
  --gradient-hero: linear-gradient(135deg, #0b3c7a 0%, #0f3a5f 70%, #0a2a44 100%);
  --gradient-btn: linear-gradient(180deg, var(--accent) 0%, var(--blue1) 100%);
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
h2 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
p { margin-bottom: 14px; }
p.muted, .muted { color: var(--muted); }
ul { padding-left: 20px; margin-bottom: 14px; }
ul li { margin-bottom: 6px; }

/* ───── App bar (top nav) ───── */
.appbar {
  background: var(--white);
  color: var(--ink);
  padding: 6px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 8px rgba(10, 60, 122, .06);
  position: sticky;
  top: 0;
  z-index: 40;
}
.appbar .brand {
  color: var(--blue1);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.appbar .brand span { color: var(--accent); }
.appbar .brand img {
  height: 72px;
  width: auto;
  display: block;
}
.appbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.appbar nav a {
  color: var(--ink2);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.appbar nav a:hover { background: var(--light-bg); color: var(--blue1); text-decoration: none; }
.appbar nav a.active { background: var(--light-bg); color: var(--blue1); }
.appbar nav a.btn-cta {
  background: var(--gradient-btn);
  color: var(--white);
  margin-left: 10px;
  padding: 10px 20px;
  font-weight: 800;
  box-shadow: var(--shadow-btn);
}
.appbar nav a.btn-cta:hover { color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-btn-hover); background: var(--gradient-btn); }

/* ───── Containers ───── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ───── Hero ───── */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(27, 85, 219, .35), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(142, 197, 255, .18), transparent 45%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a9c5ef;
  border: 1px solid rgba(142, 197, 255, .35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); font-size: 48px; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero .lede { color: rgba(255, 255, 255, .90); font-size: 18px; max-width: 680px; margin: 0 auto 30px; line-height: 1.55; }
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 640px) {
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 32px; }
  .hero .lede { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .1s, box-shadow .15s, background .15s;
  line-height: 1;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--gradient-btn);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-btn-hover); color: var(--white); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: rgba(255, 255, 255, .10);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: var(--white); }
.btn-outline {
  background: var(--white);
  color: var(--blue1);
  border: 1.5px solid var(--card-border);
}
.btn-outline:hover { background: var(--light-bg); color: var(--blue1); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ───── Cards ───── */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .15s, box-shadow .15s;
}
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card h3 { color: var(--blue1); margin-bottom: 10px; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--light-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }

.grid {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ───── Trust signal band ───── */
.trust-band {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 24px;
  text-align: center;
}
.trust-band-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink2);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--card-border);
  background: var(--light-bg);
  border-radius: 999px;
  color: var(--blue1);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
}
.trust-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}
.trust-tagline { color: var(--muted); font-weight: 600; }

/* ───── Sections / callouts ───── */
.callout {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.section-title {
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ───── Forms (shared) ───── */
.field { margin-bottom: 16px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: var(--white);
  font-family: inherit;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus);
}
input::placeholder, textarea::placeholder { color: #b0b8c9; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.alert.error { background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger-ink); }
.alert.success { background: var(--success-bg); border: 1px solid var(--success-line); color: #166534; }

/* ───── Auth card layout (login / register / password pages) ───── */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.auth-wrapper { width: 100%; max-width: 440px; }
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand-logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue1);
  letter-spacing: -0.02em;
}
.auth-brand-logo span { color: var(--accent); }
.auth-brand-logo img {
  height: 70px;
  width: auto;
  display: block;
  margin: 0 auto;
}
.auth-brand-tagline { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.auth-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 36px 32px 30px;
}
.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.auth-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
}
.auth-links a { color: var(--accent); font-weight: 600; }
.back-home {
  text-align: center;
  padding: 18px 0 4px;
  font-size: 13px;
}
.back-home a { color: var(--muted); font-weight: 600; }
.back-home a:hover { color: var(--ink); }

/* ───── Footer ───── */
.footer {
  background: #0a2338;
  color: #c7d3e3;
  padding: 48px 24px 28px;
  margin-top: auto;
}
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}
.footer-brand-title {
  font-size: 20px; font-weight: 900; color: var(--white); margin-bottom: 8px; letter-spacing: -0.02em;
}
.footer-brand-tag {
  font-size: 13px; color: #94a7bc; line-height: 1.5;
}
.footer h4 {
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 6px; }
.footer ul a { color: #c7d3e3; font-size: 13px; font-weight: 500; }
.footer ul a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #8fa3ba;
}
.footer-bottom .certs { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-bottom .certs span {
  background: rgba(255, 255, 255, .06);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #d6e1f0;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .appbar { padding: 12px 16px; }
  .appbar nav { gap: 2px; flex-wrap: wrap; }
  .appbar nav a { padding: 6px 10px; font-size: 13px; }
  .appbar nav a.btn-cta { padding: 8px 14px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .appbar { flex-direction: column; gap: 8px; align-items: flex-start; }
  .appbar nav { width: 100%; justify-content: flex-start; }
}
