/* TeleDoctorSA Patient Portal: clean, accessible product marketing.
   Sharp edges, real information, no invented product screenshots. */

:root {
  --app-ink: #172b3e;
  --app-muted: #536477;
  --app-accent: #b96135;
  --app-line: #d7dfe4;
  --app-paper: #f6f8f8;
}
.app-arrival, .app-chapters, .app-device-section, .app-journey-section {
  color: var(--app-ink);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-style: normal;
}
.app-arrival *, .app-chapters *, .app-device-section *, .app-journey-section *,
.app-arrival *::before, .app-chapters *::before { box-sizing: border-box; }
.app-arrival .app-sales-shell,
.app-chapters .app-sales-shell,
.app-device-section .app-sales-shell,
.app-journey-section .app-sales-shell {
  width: min(1180px, calc(100% - clamp(36px, 7vw, 104px)));
  max-width: 1180px;
}
.app-arrival a:focus-visible,
.app-chapters a:focus-visible,
.app-device-section a:focus-visible,
.app-journey-section a:focus-visible {
  outline: 3px solid #b96135;
  outline-offset: 4px;
}

/* Hero: typography and a useful overview, not a fake app screen. */
body > section.app-sales-hero.app-arrival {
  background: var(--app-paper) !important;
  color: var(--app-ink) !important;
  min-height: 0 !important;
  height: auto !important;
  padding: clamp(116px, 9vw, 148px) 0 0 !important;
  margin: 0;
  overflow: hidden;
}
.app-arrival-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  padding-bottom: clamp(62px, 7vw, 105px);
}
.app-arrival-primary, .app-arrival-overview { min-width: 0; }
.app-kicker {
  color: var(--app-accent);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .085em;
  font-size: .77rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 22px;
}
.app-arrival h1 {
  max-width: 11.5ch;
  margin: 0 0 25px;
  color: var(--app-ink) !important;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  font-style: normal !important;
  font-size: clamp(3.1rem, 5.4vw, 5.7rem) !important;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.08 !important;
  text-wrap: balance;
}
.app-arrival-lead {
  max-width: 55ch;
  margin: 0 0 28px;
  color: #43576a;
  font-size: clamp(1.03rem, 1.15vw, 1.14rem);
  line-height: 1.77;
}
.app-arrival-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}
.app-arrival-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 50px;
  padding: 13px 18px;
  text-align: left;
  font-size: .92rem;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #152b40;
  border-radius: 0;
  transition: background-color .15s ease, border-color .15s ease;
}
.app-arrival-button-primary { background: #152b40; color: #fff; }
.app-arrival-button-primary:hover { background: #28445e; color: #fff; }
.app-arrival-button-secondary { background: transparent; color: #152b40; border-color: #8d9ba8; }
.app-arrival-button-secondary:hover { background: #fff; color: #152b40; border-color: #152b40; }
.app-arrival-signin {
  color: #586c7e;
  font-size: .85rem;
  line-height: 1.7;
  margin: 20px 0 0;
}
.app-arrival-signin a { color: #934927; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Light right column, designed as useful text rather than fictional UI. */
.app-arrival-overview {
  border-top: 3px solid #c87b4c;
  padding: 29px clamp(25px, 3vw, 44px) 30px;
  background: #fff;
  border-left: 1px solid #dde4e7;
  border-right: 1px solid #dde4e7;
  border-bottom: 1px solid #dde4e7;
}
.app-arrival-overview .app-kicker { margin-bottom: 12px; }
.app-arrival-overview h2 {
  margin: 0 0 30px;
  max-width: 25ch;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  font-size: clamp(1.7rem, 2.3vw, 2.45rem) !important;
  font-weight: 700;
  line-height: 1.2 !important;
  letter-spacing: -.035em;
  color: var(--app-ink) !important;
  text-wrap: balance;
}
.app-overview-list { border-top: 1px solid #dce3e7; }
.app-overview-item {
  padding: 19px 0 20px;
  border-bottom: 1px solid #dce3e7;
}
.app-overview-item strong { display: block; font-size: 1rem; font-weight: 800; color: #1d3348; margin-bottom: 7px; }
.app-overview-item p { margin: 0; color: #5b6b79; font-size: .94rem; line-height: 1.68; }
.app-overview-note { margin: 18px 0 0; color: #697987; font-size: .78rem; line-height: 1.7; }
.app-arrival-bottom {
  width: 100%;
  background: #eaf0f2;
  border-top: 1px solid #d6e0e3;
  border-bottom: 1px solid #d6e0e3;
}
.app-arrival-bottom > .app-sales-shell {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
}
.app-arrival-bottom a {
  color: #1c394f;
  font-size: .86rem;
  line-height: 1.5;
  font-weight: 700;
  text-decoration: none;
}
.app-arrival-bottom a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Feature explanation: three rows, six unboxed details. */
body > section.app-story.app-chapters {
  background: #fff !important;
  padding: clamp(76px, 8vw, 113px) 0 clamp(75px, 8vw, 115px) !important;
  min-height: 0 !important;
}
.app-chapters-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(270px, .88fr);
  gap: 24px clamp(38px, 7vw, 97px);
  align-items: end;
  margin-bottom: 43px;
}
.app-chapters-intro h2 {
  color: var(--app-ink) !important;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  font-size: clamp(2.1rem, 3.3vw, 3.35rem) !important;
  letter-spacing: -.047em;
  font-weight: 700;
  line-height: 1.18 !important;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.app-chapters-intro > p {
  margin: 0 0 3px;
  max-width: 52ch;
  color: var(--app-muted);
  font-size: 1.02rem;
  line-height: 1.78;
}
.app-chapter-list { border-top: 1px solid #becbd2; }
.app-chapter {
  display: grid;
  grid-template-columns: minmax(225px, .73fr) minmax(0, 1.27fr);
  gap: clamp(32px, 6vw, 82px);
  padding: clamp(38px, 4.5vw, 57px) 0;
  min-width: 0;
  border-bottom: 1px solid #cdd8de;
}
.app-chapter-heading { min-width: 0; }
.app-chapter-label {
  font-weight: 800;
  font-size: .77rem;
  letter-spacing: .065em;
  text-transform: uppercase;
  color: #a55b35;
  line-height: 1.5;
  margin: 0 0 15px;
}
.app-chapter-heading h3 {
  color: #1a3145 !important;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  font-size: clamp(1.52rem, 2.15vw, 2.28rem) !important;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2 !important;
  margin: 0;
  text-wrap: balance;
}
.app-chapter-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.app-chapter-features .app-capability {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}
.app-chapter-features .app-capability h4 {
  color: #1b3448;
  margin: 0 0 10px;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.35;
}
.app-chapter-features .app-capability p {
  color: #526579;
  margin: 0;
  font-size: .96rem;
  line-height: 1.76;
}
.app-chapters-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px 36px;
  padding-top: 24px;
}
.app-chapters-footer p {
  max-width: 56ch;
  margin: 0;
  color: #677b8c;
  font-size: .85rem;
  line-height: 1.7;
}
.app-chapters-footer a {
  color: #a04c28;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Supporting information stays quiet and clearly structured. */
body > section.app-device-section {
  background: #f7f9f9 !important;
  padding: clamp(72px, 7.7vw, 108px) 0 !important;
}
body > section.app-journey-section {
  background: #fff !important;
  padding: clamp(72px, 7.7vw, 105px) 0 !important;
}
.app-secondary-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .8fr);
  gap: 24px clamp(40px, 6vw, 85px);
  align-items: end;
  margin-bottom: 40px;
}
.app-secondary-intro h2 {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  margin: 0;
  color: var(--app-ink) !important;
  font-size: clamp(2.1rem, 3.1vw, 3.1rem) !important;
  font-weight: 700;
  letter-spacing: -.044em;
  line-height: 1.2 !important;
  max-width: 18ch;
}
.app-secondary-intro h2 span { color: var(--app-ink); }
.app-secondary-intro > p {
  margin: 0;
  color: var(--app-muted);
  font-size: 1.01rem;
  line-height: 1.77;
}
.app-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #c8d3d8;
}
.app-device-item {
  display: flex;
  align-items: start;
  gap: 16px;
  min-height: 120px;
  margin: 0;
  padding: 26px 25px 24px 0;
  border-bottom: 1px solid #c8d3d8;
}
.app-device-item:not(:nth-child(3n+1)) { padding-left: 23px; border-left: 1px solid #c8d3d8; }
.app-device-symbol {
  flex: 0 0 26px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 27px;
  background: transparent !important;
  border: 0 !important;
  color: #a8613a;
}
.app-device-symbol svg { width: 22px; height: 22px; stroke-width: 1.7; }
.app-device-item h3 { margin: 0 0 7px; font-size: 1.04rem; font-weight: 800; line-height: 1.35; color: #182f44; }
.app-device-item p { margin: 0; font-size: .9rem; line-height: 1.73; color: #617383; }
.app-journey-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(19px, 2.4vw, 32px);
}
.app-journey-list li {
  min-width: 0;
  padding: 22px 18px 16px 0;
  border-top: 1px solid #c9d4da;
}
.app-journey-number {
  display: block;
  color: #a65e37;
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .05em;
  margin-bottom: 23px;
  line-height: 1.4;
}
.app-journey-list h3 { color: #1b3448; font-size: 1.07rem; line-height: 1.35; font-weight: 800; margin: 0 0 9px; }
.app-journey-list p { color: #5a6e81; font-size: .94rem; line-height: 1.74; margin: 0; }

/* Demo form retains the existing functional lead flow. */
body > section.app-sales-book { background: #f3f6f7 !important; padding: clamp(76px, 8vw, 110px) 0 !important; }
.app-sales-book-copy h2 {
  color: #1b3145 !important;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  font-weight: 700;
  font-size: clamp(2.05rem, 3vw, 3.1rem) !important;
  letter-spacing: -.045em;
  line-height: 1.17 !important;
}
.app-sales-form { border-radius: 0 !important; }

/* The overview becomes a simple full-width section on tablet and mobile. */
@media (max-width: 980px) {
  .app-arrival-layout { grid-template-columns: 1fr; gap: 37px; }
  .app-arrival h1 { max-width: 14ch; font-size: clamp(3.15rem, 7vw, 5rem) !important; }
  .app-arrival-overview { max-width: 720px; }
  .app-chapter { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .app-secondary-intro, .app-chapters-intro { grid-template-columns: 1fr; gap: 19px; }
  .app-secondary-intro h2 { max-width: 24ch; }
  .app-chapters-intro h2 { max-width: 23ch; }
  .app-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-device-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .app-device-item:nth-child(even) { padding-left: 23px; border-left: 1px solid #c8d3d8; }
  .app-journey-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .app-arrival .app-sales-shell,
  .app-chapters .app-sales-shell,
  .app-device-section .app-sales-shell,
  .app-journey-section .app-sales-shell { width: calc(100% - 36px); }
  body > section.app-sales-hero.app-arrival { padding-top: 94px !important; }
  .app-arrival-layout { gap: 36px; padding-bottom: 52px; }
  .app-arrival h1 { font-size: clamp(2.85rem, 11vw, 4.1rem) !important; max-width: 13ch; }
  .app-arrival-lead { font-size: .99rem; line-height: 1.72; }
  .app-arrival-actions { flex-direction: column; }
  .app-arrival-button { width: 100%; }
  /* The same features are explained in full just below: avoid repeating the overview on phones. */
  .app-arrival-overview { display: none; }
  .app-arrival-overview h2 { font-size: 1.74rem !important; }
  .app-arrival-bottom > .app-sales-shell { flex-direction: column; align-items: flex-start; justify-content: center; padding: 19px 0; }
  body > section.app-story.app-chapters, body > section.app-device-section, body > section.app-journey-section { padding: 64px 0 !important; }
  .app-chapters-intro { margin-bottom: 30px; }
  .app-chapters-intro h2, .app-secondary-intro h2 { font-size: clamp(2rem, 8vw, 2.7rem) !important; }
  .app-chapter { padding: 30px 0 34px; gap: 22px; }
  .app-chapter-heading h3 { font-size: 1.7rem !important; }
  .app-chapter-features { grid-template-columns: 1fr; gap: 22px; }
  .app-chapter-features .app-capability { padding: 0 0 0 14px !important; border-left: 2px solid #d6e0e4 !important; }
  .app-chapters-footer { flex-direction: column; align-items: flex-start; }
  .app-secondary-intro { margin-bottom: 25px; }
  .app-device-grid, .app-journey-list { grid-template-columns: 1fr; }
  .app-device-item, .app-device-item:nth-child(even) { padding: 21px 0 !important; border-left: 0 !important; min-height: 0; }
  .app-journey-list { gap: 0; }
  .app-journey-list li { padding: 24px 0; }
  .app-journey-number { margin-bottom: 11px; }
  body > section.app-sales-book { padding: 65px 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .app-arrival *,
  .app-chapters *,
  .app-device-section *,
  .app-journey-section * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
