@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700&family=Work+Sans:wght@300;400;600;700&display=swap');

:root {
  --bg-1: #f5efe2;
  --bg-2: #efe7d5;
  --ink: #1e1b16;
  --muted: #6a6256;
  --accent: #c36a2d;
  --accent-2: #2a7b61;
  --card: #fffaf1;
  --line: #e2d7c2;
  --shadow: rgba(30, 20, 10, 0.15);
  --android-green: #2e7d32;
  --android-green-2: #43a047;
  --android-surface: #f4f8f4;
  --android-ink: #1c2a1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #f7f9fc;
  min-height: 100vh;
}

.ios-landing {
  background: #f7f9fc;
  border: none;
  border-radius: 0;
  padding: 16px 16px 24px;
  box-shadow: none;
  color: #1d2433;
}

.ios-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 4px 0;
  gap: 8px;
}

.ios-appbar-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5568;
}


.menu-btn {
  border: none;
  background: #e8edf4;
  color: #3a4659;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.ios-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ios-title {
  font-size: 2rem;
  margin: 0;
}

.ios-subtitle {
  color: #4c5566;
  margin: 0;
}

.ios-card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: none;
}

.disease-spotlight {
  margin-top: 12px;
  overflow: hidden;
  position: relative;
  border-top: 1px solid #eef0f4;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 0 0;
  background: transparent;
}

.disease-spotlight .spotlight-content {
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform: translateX(0);
  opacity: 1;
}

.disease-spotlight.slide-out .spotlight-content {
  transform: translateX(-28px);
  opacity: 0;
}

.disease-spotlight.pre-enter .spotlight-content {
  transform: translateX(28px);
  opacity: 0;
}

.spotlight-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 107, 255, 0.12);
  color: #2f5aa8;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.disease-spotlight h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
}

.disease-spotlight p {
  margin: 0;
  color: #4c5566;
}

.ios-card-primary {
  border-radius: 16px;
}

.ios-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.ios-actions .btn.primary {
  background: linear-gradient(135deg, #2f6bff, #6aa6ff);
  box-shadow: 0 12px 26px rgba(47, 107, 255, 0.3);
}

.ios-actions .btn.secondary {
  background: #eef2ff;
  color: #1d2433;
}

/* ── AI Screening Beta button ── */
.ios-actions .btn.btn-ai {
  background: linear-gradient(135deg, #f59e0b, #10b981);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: ai-pulse 2.6s ease-in-out infinite;
}

@keyframes ai-pulse {

  0%,
  100% {
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
  }

  50% {
    box-shadow: 0 10px 32px rgba(16, 185, 129, 0.50);
  }
}

.beta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  vertical-align: middle;
  line-height: 1.6;
}

/* Menu link variant */
.menu-ai-link {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.12)) !important;
  color: #b45309 !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
}

.menu-ai-link .beta-badge {
  background: linear-gradient(135deg, #f59e0b, #10b981);
  color: #fff;
  border: none;
}

.ios-image {
  width: 100%;
  border-radius: 16px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.ios-shell {
  max-width: 100%;
  margin: 0 auto;
}

.ios-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.ios-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.ios-menu-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(420px, 96%);
  background: #f9fbff;
  border: 1px solid rgba(120, 140, 170, 0.2);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 40px rgba(20, 30, 50, 0.2);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ios-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ios-menu-panel h3 {
  margin: 0;
  font-size: 1rem;
  color: #334155;
}

.menu-close {
  border: none;
  background: #e8edf5;
  color: #1d2433;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.ios-menu-links {
  display: grid;
  gap: 10px;
}

.ios-menu-links a {
  background: #eef3ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  color: #1d2433;
}

.ios-menu-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: #4b5568;
  background: #eef2f8;
  border-radius: 12px;
  padding: 12px;
}

.ios-menu-footer strong {
  color: #1f2937;
}

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

a:hover {
  text-decoration: underline;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--android-green);
  font-weight: 600;
}

.breadcrumb span {
  color: var(--muted);
}

.step-indicator {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5568;
  background: rgba(120, 140, 170, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}

.page {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  animation: fadeIn 0.6s ease-out;
}

.android-landing {
  color: var(--android-ink);
  background: #f7f9fc;
  border: none;
  border-radius: 0;
  padding: 16px 16px 24px;
  box-shadow: none;
}

.android-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.android-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 125, 50, 0.12);
  color: var(--android-green);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.android-title {
  font-size: 1.9rem;
}

.android-subtitle {
  color: #3c4a3c;
  margin: 0;
}

.android-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.android-cta .btn.primary {
  background: linear-gradient(135deg, var(--android-green), var(--android-green-2));
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.25);
}

.android-cta .btn.secondary {
  background: #e7f2e7;
  color: var(--android-ink);
}

.android-image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(46, 125, 50, 0.2);
  box-shadow: 0 18px 40px rgba(20, 40, 20, 0.2);
}

.android-section {
  margin-top: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 0;
}

.android-section h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(46, 125, 50, 0.16);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(20, 40, 20, 0.08);
}

.team-head-text {
  margin-top: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.team-card {
  background: #fff;
  border: 1px solid rgba(46, 125, 50, 0.16);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(20, 40, 20, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-image-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(46, 125, 50, 0.2);
  background: #f4f9f4;
}

.team-member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  margin: 8px 0 2px;
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.1rem;
}

.team-position {
  margin: 0;
  font-weight: 700;
  color: var(--android-green);
}

.team-position.muted-role {
  font-weight: 600;
  color: #496149;
}

.team-feature-text {
  margin: 2px 0 0;
  color: #415541;
}

.team-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.team-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf6ed;
  border: 1px solid rgba(46, 125, 50, 0.18);
}

.team-footer-note {
  margin-top: 18px;
  background: #f4faf4;
  border: 1px solid rgba(46, 125, 50, 0.16);
  border-radius: 14px;
  padding: 14px;
}

.team-footer-note p {
  margin: 6px 0;
  color: #344a34;
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
  margin: 0;
}

h1 {
  font-size: 2.3rem;
}

p.lead {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}

.card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  animation: floatIn 0.5s ease-out;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.95rem;
  color: var(--muted);
}

input,
select,
textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #d62828;
  box-shadow: 0 0 0 2px rgba(214, 40, 40, 0.15);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(195, 106, 45, 0.25);
}

.btn.secondary {
  background: #f0e7d6;
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
}

.banner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  background: rgba(42, 123, 97, 0.08);
  border: 1px solid rgba(42, 123, 97, 0.2);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.banner strong {
  font-weight: 600;
}

.symptom-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.symptom-panel {
  background: #fff7e7;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.symptom-panel.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.category {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.category:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.category-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 4px;
}

.category-carousel {
  position: relative;
}

.category.hidden {
  display: none;
}

.nav-btn {
  padding: 10px 14px;
}

.symptom-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.symptom-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.symptom-item input {
  accent-color: var(--accent-2);
}

.none-item {
  font-weight: 600;
  color: var(--accent-2);
}

.muted {
  color: var(--muted);
}

.results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.chart-wrap {
  height: 260px;
  margin-top: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
}

.bar {
  height: 14px;
  background: #efe6d4;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 999px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(195, 106, 45, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 6px;
}

.error {
  background: rgba(200, 60, 40, 0.12);
  border: 1px solid rgba(200, 60, 40, 0.3);
  color: #7a1b10;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes floatIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 960px) {

  .grid,
  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bar-row {
    grid-template-columns: 160px 1fr 60px;
    align-items: center;
  }

  .bar-row span {
    font-size: 0.9rem;
  }

  .symptom-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .banner {
    flex-direction: row;
    align-items: center;
  }

  .category-nav {
    display: none;
  }

  .category.hidden {
    display: block;
  }

  .android-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ios-hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .ios-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Landscape / rotation responsive fix ──────────────────────────────────── */
@media (orientation: landscape) and (max-width: 959px) {

  /* Expand the shell to fill full screen width — no more narrow column */
  .ios-shell {
    max-width: 100%;
    padding: 0 8px;
  }

  .page {
    padding: 0;
  }

  .ios-landing {
    border-radius: 0;
    padding: 10px 16px;
    min-height: 100vh;
  }

  /* Side-by-side: image left, content right */
  .ios-hero {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }

  /* Shrink image so it doesn't dominate */
  .ios-image {
    max-height: 200px;
    object-fit: cover;
  }

  /* Smaller title in landscape */
  .ios-title {
    font-size: 1.2rem;
    margin: 6px 0 4px;
  }

  .ios-subtitle {
    font-size: 0.85rem;
    margin: 0 0 8px;
  }

  /* 2-column button grid in landscape */
  .ios-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  /* Compact buttons */
  .btn {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  /* Disease spotlight below */
  .disease-spotlight {
    margin-top: 10px;
  }

  /* Menu panel: full-height side drawer from the right in landscape */
  .ios-menu-panel {
    left: auto;
    right: 0;
    bottom: 0;
    top: 0;
    width: min(280px, 72%);
    border-radius: 24px 0 0 24px;
    transform: none;
    overflow-y: auto;
  }

  /* Compact appbar */
  .ios-appbar {
    margin-bottom: 8px;
  }

  /* Forms / other pages fill full width */
  .card,
  .form-card,
  .container {
    max-width: 100%;
  }

  /* Results bars in landscape show properly */
  .bar-row {
    grid-template-columns: 130px 1fr 55px;
  }

  /* Symptom grid — 3 columns in landscape */
  .symptom-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}