/* ===========================================================
   Ora — Design System
   Warm, calm, trustworthy. Built for an institutional audience.
   =========================================================== */

:root {
  /* Palette */
  --cream:        #FBF7F1;
  --cream-2:      #F4ECE1;
  --paper:        #FFFFFF;
  --ink:          #2B2622;
  --ink-soft:     #5A524A;
  --ink-faint:    #8C8378;
  --line:         #E7DDCF;

  --brand-red:    #A23B26;  /* logo / wordmark — fixed brand color */
  --terracotta:   #A23B26;  /* primary highlight / accent */
  --terracotta-d: #7C2A1B;  /* deeper accent — hover / links */
  --sage:         #6E8B74;
  --sage-d:       #54705A;
  --amber:        #E7B0A0;  /* soft blush (from logo centre) */

  /* Alert colours */
  --yellow:       #E8B53D;
  --orange:       #E07A3C;
  --red:          #D14B43;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(43, 38, 34, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(43, 38, 34, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
a { color: var(--terracotta-d); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--ink-soft); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--terracotta-d);
  margin-bottom: 1rem;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-d); color:#fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--paper); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: "Comfortaa", var(--sans); font-size: 1.5rem; color: var(--brand-red); font-weight: 500; text-transform: lowercase; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(217,113,78,0.18); }
.brand .brand-mark { width: 30px; height: 30px; display: block; flex: 0 0 auto; }
.nav .brand { font-size: 2.35rem; gap: 13px; }
.nav .brand .brand-mark { width: 48px; height: 48px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 0.96rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav-links a:hover { color: var(--ink); background: var(--cream-2); text-decoration: none; }
.nav-links a.active { color: var(--terracotta-d); background: rgba(162,59,38,0.10); }
.nav-links .btn { padding: 9px 18px; font-size: 0.92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { justify-content: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero { padding: 92px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 78% 20%, rgba(231,176,160,0.30), transparent 60%),
    radial-gradient(50% 60% at 12% 90%, rgba(110,139,116,0.16), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.32rem; margin-top: 0.4em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.85fr; gap: 48px; align-items: center; }
.hero-device { display: flex; justify-content: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero-device { order: 2; } }

/* ---------- Conversation snippet (for the elderly) ---------- */
.convo { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); max-width: 390px; margin: 0 auto; }
.convo-head { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 700; margin: 0 0 18px; text-align: center; }
.bubble { max-width: 86%; padding: 11px 15px; border-radius: 16px; margin-bottom: 12px; font-size: 0.95rem; line-height: 1.5; color: var(--ink); }
.bubble .who { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 3px; }
.bubble.ora { background: rgba(162,59,38,0.10); border-bottom-left-radius: 5px; margin-right: auto; }
.bubble.ora .who { color: var(--terracotta-d); }
.bubble.her { background: var(--cream-2); border-bottom-right-radius: 5px; margin-left: auto; }
.bubble.her .who { color: var(--ink-faint); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4em; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--cream-2);
}

.tinted { background: var(--cream-2); }
.tinted-sage { background: #EAF0EA; }

/* ---------- Two-column problem ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.split .card { padding: 34px; }
.split .who { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--ink-faint); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { text-align: center; padding: 8px; }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.6rem); color: var(--terracotta-d); line-height: 1; }
.stat .label { color: var(--ink-soft); margin-top: 10px; font-size: 1.02rem; }

/* ---------- Steps / flow ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; position: relative; padding: 8px 6px; }
.step .n {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-family: var(--serif);
  font-size: 1.2rem; color: #fff; background: var(--sage);
}
.step h4 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; margin-bottom: 0.3em; }
.step p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }

/* ---------- Feature list ---------- */
.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.feature-row.reverse { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 820px) { .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 28px; } }
.ticklist { list-style: none; padding: 0; margin: 18px 0 0; }
.ticklist li { padding-left: 32px; position: relative; margin-bottom: 14px; color: var(--ink-soft); }
.ticklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--sage-d); font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  background: #EAF0EA; display: grid; place-items: center; font-size: 0.8rem;
}
.ticklist li strong { color: var(--ink); }

/* ---------- Mock visuals ---------- */
.mock {
  background: linear-gradient(160deg, var(--cream-2), var(--paper));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; min-height: 240px;
}
.device {
  background: var(--ink); color: var(--cream); border-radius: 26px;
  padding: 30px 26px; text-align: center; box-shadow: var(--shadow);
  max-width: 280px; margin: 0 auto;
}
.device .ring { width: 92px; height: 92px; border-radius: 50%; margin: 6px auto 18px;
  background: radial-gradient(circle at 50% 40%, var(--amber), var(--terracotta));
  box-shadow: 0 0 0 10px rgba(231,176,160,0.30), 0 0 40px rgba(162,59,38,0.45); }
.device .orb { width: 168px; height: auto; display: block; margin: 0 auto 10px;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 46%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 46%, #000 46%, transparent 70%); }
.device .wave { display:flex; gap:5px; justify-content:center; align-items:flex-end; height: 30px; margin-top: 16px; }
.device .wave i { width: 5px; background: var(--amber); border-radius: 3px; display:block; }

/* App screen mock */
.appscreen {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px; box-shadow: var(--shadow); max-width: 300px; margin: 0 auto;
}
.appscreen .bar { height: 8px; width: 44px; background: var(--line); border-radius: 99px; margin: 4px auto 18px; }
.appscreen .row { display:flex; align-items:center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--cream); margin-bottom: 10px; }
.appscreen .row .blip { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.appscreen .row .txt { flex: 1; }
.appscreen .row .txt b { display:block; font-size: 0.9rem; }
.appscreen .row .txt span { font-size: 0.78rem; color: var(--ink-faint); }
.appscreen .trend { display:flex; gap: 6px; align-items:flex-end; height: 60px; padding: 12px; }
.appscreen .trend i { flex:1; background: var(--sage); border-radius: 4px 4px 0 0; display:block; }
.appscreen .mood-pill { font-size: 0.7rem; font-weight: 700; color: var(--sage-d); background: #EAF0EA; padding: 3px 10px; border-radius: 999px; }
.appscreen .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 8px; }
.appscreen .tile { background: var(--cream); border-radius: 12px; padding: 9px 11px; }
.appscreen .tile .h { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.appscreen .tile .h .d { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.appscreen .tile small { display: block; color: var(--ink-faint); font-size: 0.68rem; margin-top: 2px; }
.appscreen .src { font-size: 0.62rem; color: var(--ink-faint); text-align: center; padding: 4px 0 2px; }

/* ---------- Phone carousel (real app recordings) ---------- */
.phone-carousel { max-width: 300px; margin: 0 auto; }
.pc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; border-radius: 30px; }
.pc-track::-webkit-scrollbar { display: none; }
.pc-slide { flex: 0 0 100%; scroll-snap-align: center; }
.pc-slide video { width: 100%; display: block; border-radius: 30px; }
.pc-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.pc-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.pc-dots button.on { background: var(--terracotta); transform: scale(1.25); }
.pc-caption { text-align: center; margin-top: 14px; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; min-height: 1.3em; }

/* ---------- Alert table ---------- */
.alert-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.alert-table th, .alert-table td { text-align: left; padding: 18px 20px; vertical-align: top; }
.alert-table thead th { background: var(--cream-2); font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.alert-table tbody tr + tr td { border-top: 1px solid var(--line); }
.alert-table .lvl { font-weight: 700; white-space: nowrap; }
.alert-table .lvl .swatch { display:inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.sw-y { background: var(--yellow); }
.sw-o { background: var(--orange); }
.sw-r { background: var(--red); }
@media (max-width: 640px) {
  .alert-table, .alert-table tbody, .alert-table tr, .alert-table td { display: block; width: 100%; }
  .alert-table thead { display: none; }
  .alert-table td { border-top: 1px solid var(--line); }
  .alert-table tr { padding: 6px 0; }
}

/* ---------- Pills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }
.chip.on { background: rgba(110,139,116,0.12); border-color: rgba(110,139,116,0.4); color: var(--sage-d); }

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.logo-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 22px; min-width: 180px; text-align: center;
}
.logo-card b { display: block; font-family: var(--serif); font-size: 1.05rem; }
.logo-card span { font-size: 0.82rem; color: var(--ink-faint); }
.logo-card.pending { border-style: dashed; color: var(--ink-faint); }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-card .avatar {
  width: 88px; height: 88px; border-radius: 50%; margin-bottom: 16px;
  display: grid; place-items: center; font-family: var(--serif);
  font-size: 1.5rem; color: #fff; overflow: hidden; background: var(--cream-2);
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .role { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terracotta-d); font-weight: 600; margin-bottom: 10px; }
.team-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.team-card ul li { margin-bottom: 4px; }

/* ---------- Callout ---------- */
.callout {
  background: var(--cream-2); border-left: 4px solid var(--sage);
  border-radius: var(--radius-sm); padding: 24px 28px;
}
.callout.warm { border-left-color: var(--terracotta); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--cream); border-radius: 28px; padding: 56px; text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(251,247,241,0.78); max-width: 52ch; margin-left:auto; margin-right:auto; }
@media (max-width: 600px) { .cta-band { padding: 40px 24px; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; max-width: 620px; }
.form .field { display: grid; gap: 6px; }
.form label { font-size: 0.9rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 1rem; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--terracotta); }
.form textarea { min-height: 130px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 24px; transition: border-color .15s ease; }
.faq details[open] { border-color: var(--terracotta); }
.faq summary { cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta-d); font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); margin: 0 0 18px; font-size: 0.98rem; }

/* ---------- Vision / Mission cards ---------- */
.vm-card + .vm-card { margin-top: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer h4 { font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin-bottom: 14px; }
.footer a { display: block; color: var(--ink-soft); margin-bottom: 8px; font-size: 0.96rem; }
.footer a:hover { color: var(--terracotta-d); }
.footer .small { font-size: 0.85rem; color: var(--ink-faint); margin-top: 28px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.badge { display:inline-flex; align-items:center; gap:8px; background: rgba(110,139,116,0.14); color: var(--sage-d); padding: 9px 20px; border-radius: 999px; font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; }
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
