/* These styles apply only to the compact App and feature pages.
   The homepage and full privacy policies retain their original layout. */
.compact-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.compact-page .site-header {
  width: 100%;
  height: 82px;
  min-height: 82px;
  padding-top: 0;
  padding-bottom: 0;
  flex-wrap: nowrap;
  align-items: center;
}
.compact-page .site-header nav {
  width: auto;
  gap: 30px;
  font-size: .875rem;
}
.compact-page main {
  display: grid;
  flex: 1;
  align-content: center;
  padding: 36px 32px;
}
.app-sheet {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.app-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.app-identity img {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  box-shadow: 0 8px 20px #242c2312;
}
.app-identity .eyebrow {
  margin: 0 0 6px;
  font-size: .75rem;
  letter-spacing: .12em;
}
.app-identity h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: .02em;
}
.app-headline {
  font: 500 clamp(2rem, 3.3vw, 2.8rem)/1.45 var(--serif);
  letter-spacing: .015em;
}
.app-summary {
  margin-top: 16px;
  max-width: 30em;
  line-height: 1.8;
  color: #58635c;
  font-size: 1rem;
}
.app-highlights {
  list-style: none;
  margin: 25px 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.app-highlights li {
  display: grid;
  grid-template-columns: 17px 4.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.6;
}
.highlight-mark {
  width: 14px;
  height: 14px;
  border: 1px solid #9eaaa0;
  border-radius: 4px;
  position: relative;
  align-self: center;
}
.highlight-mark::after {
  content: "";
  width: 4px;
  height: 4px;
  background: #879d88;
  position: absolute;
  top: 4px;
  left: 4px;
}
.app-highlights strong {
  font-size: 1rem;
  font-weight: 500;
}
.app-highlights li > span:last-child { color: #5e6962; }
.member-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.8;
  color: #5e6962;
}
.member-label { color: #99512f; font-weight: 600; }
.member-summary a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.download-card {
  --card-tone: #eaf0e8;
  background: var(--card-tone);
  border: 1px solid #dce3d9;
  border-radius: 22px;
  padding: 28px 30px 22px;
  text-align: center;
  box-shadow: 0 18px 50px #3f4d3606;
}
.download-card[data-app="tea-leaf"] { --card-tone: #ecf1e5; }
.download-card[data-app="coffee"] { --card-tone: #f0eae2; border-color: #e4dbd0; }
.download-card[data-app="jewelry"] { --card-tone: #efe9ec; border-color: #e4dce0; }
.download-kicker {
  color: #667364;
  font-size: .75rem;
  letter-spacing: .16em;
  margin-bottom: 6px;
}
.download-card h2 {
  font: 500 1.4rem/1.5 var(--sans);
  letter-spacing: .02em;
}
.qr-frame {
  position: relative;
  background: #fff;
  width: 192px;
  aspect-ratio: 1;
  margin: 22px auto 18px;
  border: 1px solid #e1e5de;
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: #5c6c5b;
}
/* Corner brackets reserve a scanning area without imitating a working QR. */
.qr-frame:not(.qr-ready)::before,
.qr-frame:not(.qr-ready)::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: solid #b9c5b7;
  border-width: 1px 0;
  mask: linear-gradient(to right, #000 16px, transparent 16px calc(100% - 16px), #000 calc(100% - 16px));
}
.qr-frame:not(.qr-ready)::after {
  border-width: 0 1px;
  mask: linear-gradient(to bottom, #000 16px, transparent 16px calc(100% - 16px), #000 calc(100% - 16px));
}
.qr-placeholder-icon { font: 2.8rem/1.2 var(--serif); color: #a6b5a0; }
.qr-caption { font-size: .875rem; line-height: 1.4; }
.qr-frame > img { width: 100%; height: 100%; padding: 12px; object-fit: contain; }
.qr-frame.qr-ready { padding: 0; }
.download-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #263b30;
  border-radius: 7px;
  background: #263b30;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 8px 14px;
  font-weight: 500;
}
.download-button:disabled {
  cursor: default;
  color: #52614e;
  border-color: #c7d2c0;
  background: #ffffff70;
}
.download-note { font-size: .875rem; color: #60705c; margin-top: 10px; line-height: 1.7; }
.download-links {
  border-top: 1px solid #cfd8c9;
  padding-top: 16px;
  margin-top: 20px;
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: .875rem;
}
.download-links a { text-underline-offset: 4px; text-decoration: underline; }
.compact-footer {
  width: min(100% - 64px, 1232px);
  margin: 0 auto;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .875rem;
  color: #69746c;
}
.compact-footer > div { display: flex; flex-wrap: wrap; gap: 20px; }
.compact-footer a:hover,
.compact-page a:hover { color: var(--accent); }
.compact-page button:focus-visible { outline: 3px solid #ad552e; outline-offset: 4px; }

/* A short, keyboard-accessible overview replaces the long web feature list.
   The full reference document remains available as an optional download. */
.feature-sheet { width: min(100%, 1080px); margin: 0 auto; }
.feature-sheet > .eyebrow { margin-bottom: 10px; font-size: .75rem; }
.feature-sheet > h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.4; }
.feature-lead { margin-top: 12px; color: #5c685f; font-size: 1rem; }
.app-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.app-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f1f3ed;
  border: 1px solid #e0e4db;
  border-radius: 12px;
  color: #53634f;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 1rem;
}
.app-tab img { width: 42px; height: 42px; border-radius: 10px; }
.app-tab span { max-width: 100%; overflow-wrap: anywhere; }
.app-tab[aria-selected="true"] { background: #e5ecdf; border-color: #8b9e82; color: #26372b; }
.summary-panel { margin-top: 22px; padding: 26px 30px; border: 1px solid #dfe4db; border-radius: 14px; background: #fff; }
.summary-panel[hidden] { display: none; }
.summary-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.summary-columns h2 { font: 600 1rem/1.6 var(--sans); letter-spacing: 0; margin-bottom: 12px; }
.summary-columns ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.summary-columns li { font-size: 1rem; color: #57635a; }
.summary-columns li strong { font-weight: 500; color: #293b2c; margin-right: 15px; }
.member-column { border-left: 1px solid #dfe4db; padding-left: 35px; }
.member-column h2 { color: #99512f; }
.member-column p { font-size: 1rem; color: #57635a; line-height: 1.8; }
.member-column small { display: block; font-size: .875rem; color: #6d766e; margin-top: 15px; }
.summary-panel > a { display: inline-block; font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; margin-top: 23px; }
.guide-download { margin-top: 22px; font-size: .875rem; color: #5b685d; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.guide-download a { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 920px) {
  .compact-page main { padding: 28px; }
  .app-sheet { gap: 36px; grid-template-columns: minmax(0, 1fr) 290px; }
  .download-card { padding: 24px 22px 20px; }
  .app-headline { font-size: 2rem; }
  .app-tabs { gap: 8px; }
  .app-tab { gap: 8px; padding: 12px; }
  .summary-panel { padding: 22px; }
  .summary-columns { gap: 20px; }
  .member-column { padding-left: 22px; }
}
@media (max-width: 700px) {
  .compact-page .site-header { padding: 10px 20px; height: auto; min-height: 64px; gap: 8px 12px; flex-wrap: wrap; }
  .compact-page .wordmark { gap: 8px; font-size: 1rem; }
  .compact-page .wordmark .seal { width: 35px; height: 35px; font-size: 1.5rem; }
  .compact-page .wordmark small { font-size: .6rem; margin-top: 2px; }
  .compact-page .site-header nav { gap: 18px; font-size: .875rem; flex-wrap: nowrap; }
  .compact-page .site-header nav .optional-nav { display: none; }
  .compact-page main { padding: 22px 20px; }
  .app-sheet { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 490px; }
  .app-identity { gap: 14px; margin-bottom: 15px; }
  .app-identity img { width: 58px; height: 58px; border-radius: 14px; }
  .app-identity h1 { font-size: 1.75rem; }
  .app-identity .eyebrow { font-size: .75rem; margin-bottom: 5px; letter-spacing: .07em; }
  .app-headline { font-size: 1.75rem; line-height: 1.4; }
  .app-summary { margin-top: 10px; line-height: 1.65; }
  .app-highlights { margin: 16px 0; gap: 5px; }
  .app-highlights li { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 10px; }
  .highlight-mark { display: none; }
  .member-summary { padding-top: 12px; gap: 2px 10px; }
  .download-card { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 0 18px; text-align: left; padding: 18px; border-radius: 16px; }
  .download-heading { grid-column: 2; grid-row: 1; align-self: end; }
  .download-kicker { display: none; }
  .download-card h2 { font-size: 1.1rem; }
  .qr-frame { grid-column: 1; grid-row: 1 / 4; width: 126px; margin: 0; border-radius: 10px; gap: 3px; }
  .qr-placeholder-icon { font-size: 2rem; }
  .qr-caption { font-size: .875rem; }
  .download-action { grid-column: 2; grid-row: 2; align-self: center; margin-top: 6px; }
  .download-button { min-height: 38px; font-size: .875rem; padding: 6px 8px; }
  .download-note { font-size: .875rem; line-height: 1.5; margin-top: 7px; }
  .download-links { grid-column: 1 / -1; margin-top: 14px; padding-top: 12px; gap: 30px; }
  .compact-footer { width: calc(100% - 40px); padding: 13px 0; font-size: .875rem; }
  .compact-footer > div { gap: 12px; }
  .compact-footer .footer-contact { display: none; }
  .feature-sheet > .eyebrow { margin-bottom: 6px; }
  .feature-sheet > h1 { font-size: 1.8rem; }
  .feature-lead { line-height: 1.65; margin-top: 10px; }
  .app-tabs { gap: 8px; margin-top: 20px; }
  .app-tab { flex-direction: column; gap: 6px; padding: 10px 4px; font-size: .875rem; border-radius: 10px; }
  .app-tab img { width: 38px; height: 38px; border-radius: 9px; }
  .summary-panel { margin-top: 14px; padding: 18px; }
  .summary-columns { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .summary-columns h2 { margin-bottom: 8px; }
  .summary-columns ul { gap: 5px; }
  .summary-columns li strong { margin-right: 10px; }
  .member-column { border-left: 0; border-top: 1px solid #dfe4db; padding: 14px 0 0; }
  .member-column small { margin-top: 5px; }
  .summary-panel > a { margin-top: 14px; }
  .guide-download { margin-top: 14px; }
}
/* Short screens use tighter spacing, while text enlargement can still scroll.
   Never clip content or hide overflow to force a one-screen appearance. */
@media (max-width: 700px) and (max-height: 760px) {
  .compact-page main { padding-top: 12px; padding-bottom: 12px; }
  .app-sheet { gap: 12px; }
  .app-identity { margin-bottom: 10px; }
  .app-identity img { width: 50px; height: 50px; border-radius: 12px; }
  .app-headline { font-size: 1.5rem; line-height: 1.35; }
  .app-summary { margin-top: 8px; }
  .app-highlights { margin: 12px 0; gap: 3px; }
  .app-highlights li { line-height: 1.5; }
  .member-summary { padding-top: 9px; }
  .download-card { padding: 14px; grid-template-columns: 112px minmax(0, 1fr); gap: 0 14px; }
  .qr-frame { width: 112px; }
  .download-links { margin-top: 10px; padding-top: 10px; }
  .compact-footer { padding-top: 10px; padding-bottom: 10px; line-height: 1.5; }
  .feature-lead { margin-top: 6px; }
  .app-tabs { margin-top: 12px; }
  .app-tab { padding-top: 8px; padding-bottom: 8px; }
  .feature-sheet .app-tab img { width: 30px; height: 30px; }
  .summary-panel { padding: 14px 16px; }
  .summary-columns { gap: 12px; }
  .summary-columns li { line-height: 1.5; }
  .member-column { padding-top: 10px; }
  .member-column small { line-height: 1.5; }
  .summary-panel > a { margin-top: 10px; }
  .guide-download { margin-top: 10px; }
}
@media (min-width: 701px) and (max-height: 780px) {
  .compact-page .site-header { height: 70px; min-height: 70px; }
  .compact-page main { padding-top: 20px; padding-bottom: 20px; }
  .app-identity { margin-bottom: 20px; }
  .app-headline { font-size: 2.25rem; }
  .app-highlights { margin-top: 20px; margin-bottom: 16px; }
  .download-card { padding-top: 22px; padding-bottom: 20px; }
  .qr-frame { width: 176px; margin-top: 16px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .compact-page * { scroll-behavior: auto; transition: none; }
}

/* Only the three featured Apps have detail and feature panels. */
.app-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }

/* Direct download code replaces the extra navigation step in the overview. */
.summary-layout { display:grid; grid-template-columns:minmax(0,1fr) 160px; gap:34px; align-items:center; }
.summary-download { display:flex; align-items:center; justify-content:center; }
.summary-download .qr-frame { width:144px; margin:0; }
.summary-download .qr-placeholder-icon { font-size:2.7rem; }
.qr-frame > a { display:block; width:100%; height:100%; }
.qr-frame > a img { display:block; width:100%; height:100%; padding:12px; object-fit:contain; }
@media(max-width:700px) {
 .summary-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
 .summary-download .qr-frame { width:112px; }
 .summary-download .qr-placeholder-icon { font-size:2rem; }
}
@media(max-width:700px) and (max-height:760px) {
 .compact-page main { padding-top:8px; padding-bottom:8px; }
 .summary-panel { margin-top:10px; padding-top:12px; padding-bottom:12px; }
 .summary-layout { gap:12px; }
 .summary-download .qr-frame { width:104px; }
 .summary-columns { gap:10px; }
 .feature-lead { margin-top:4px; }
 .app-tabs { margin-top:10px; }
}
