/* The home page's compact sections (test layout, 2026-10-19): "Everything Orbit does" in tabs, "Why Orbit" with
   a switch between two comparisons, and the plans. explore.js switches the tabs; without it, everything shows. */
#whole-drive .head, #compare .head, #plans .head { margin-bottom: 28px; }

/* tabs */
.ex-tabs, .cmp-switch { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; }
.ex-tabs::-webkit-scrollbar, .cmp-switch::-webkit-scrollbar { display: none; }
.ex-tabs button, .cmp-switch button {
  flex: none; scroll-snap-align: start; border: 0; cursor: pointer; white-space: nowrap;
  font: 700 15px/1 var(--label); letter-spacing: .04em; text-transform: uppercase;
  padding: 12px 16px; border-radius: 999px; background: var(--surface); color: var(--sub);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, color .2s;
}
.ex-tabs button:hover, .cmp-switch button:hover { color: var(--ink); }
.ex-tabs button[aria-selected="true"], .cmp-switch button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.ex-tabs button:focus-visible, .cmp-switch button:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* a tab's tiles */
.ex-panel { margin-top: 14px; }
.ex-panel[hidden] { display: none; }
html:not(.js) .ex-panel[hidden], html:not(.js) .cmp-panel[hidden] { display: block; }
.ex-lead { font-size: 19px; color: var(--sub); margin: 0 0 18px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ex-t {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border-radius: 16px; padding: 16px 16px 44px; box-shadow: inset 0 0 0 1px var(--line);
}
.ex-t b { font: 700 19px/1.15 var(--label); color: var(--ink); }
.ex-t span { font-size: 15px; line-height: 1.45; color: var(--body-text); }
.pl {
  position: absolute; left: 16px; bottom: 14px; font: 700 11px/1 var(--label); letter-spacing: .08em; text-transform: uppercase;
  font-style: normal; padding: 6px 9px; border-radius: 999px;
}
.pl.f { background: #E7F8F2; color: var(--mint-deep); }
.pl.a { background: #EAF1FD; color: #1F57B8; }
.pl.p { background: #FDEFE6; color: var(--sun-deep); }
.pl.fam { background: #F0EBFF; color: #5B3FD1; }

/* comparison */
.cmp-switch { margin-bottom: 14px; }
.cmp-panel { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: clip; }
.cmp-panel[hidden] { display: none; }
.cmp-tr { display: grid; grid-template-columns: 1fr 110px 130px 130px; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); }
.cmp-th { position: sticky; top: 85px; z-index: 2; }  /* under the site header (84px + its line) */
.cmp-group { padding: 18px 20px 8px; border-top: 1px solid var(--line); font: 800 22px/1 var(--display); text-transform: uppercase; color: var(--ink); background: linear-gradient(var(--surface), var(--surface)); }
.cmp-group + .cmp-tr { border-top: 0; }
.cmp-tr:first-child { border-top: 0; }
.cmp-tr > span:first-child { font-size: 16px; color: var(--body-text); }
.cmp-th { background: var(--surface-2); font: 700 13px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.cmp-th > span:nth-child(2) { color: var(--mint-deep); }
.cmp-tr .y, .cmp-tr .n { text-align: center; font: 700 16px/1.2 var(--label); }
.cmp-th > span:not(:first-child) { text-align: center; }
.cmp-tr .y { color: var(--mint-deep); font-size: 17px; }
.cmp-tr .y.ck { font-size: 0; }
.cmp-tr .y.ck::before { content: ''; display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.cmp-tr .n { color: var(--dim); font-weight: 600; font-size: 14px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { background: var(--surface); border-radius: 20px; padding: 22px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.plan.pro { box-shadow: inset 0 0 0 2px var(--sun); }
.plan.fam { box-shadow: inset 0 0 0 2px #7C5CFF; }
.plan-k { font: 700 14px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.plan-p { font: 700 44px/1 var(--display); margin: 10px 0 14px; color: var(--ink); }
.plan-p small { font: 600 15px/1 var(--body); color: var(--sub); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { font-size: 15px; line-height: 1.4; color: var(--body-text); padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint); transform: rotate(-45deg); }
.plans-note { margin: 16px 0 0; color: var(--dim); font-size: 14px; }

@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .ex-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ex-t { padding: 12px 11px 38px; border-radius: 14px; }
  .ex-t b { font-size: 16px; }
  .ex-t span { font-size: 13.5px; line-height: 1.4; }
  .pl { left: 11px; bottom: 11px; }
  .ex-lead { font-size: 17px; }
  .cmp-tr { grid-template-columns: 1fr 46px 58px 58px; padding: 11px 10px; gap: 5px; }
  .cmp-th { font-size: 10px; letter-spacing: .02em; line-height: 1.15; }
  .cmp-group { padding: 16px 10px 6px; font-size: 19px; }
  .cmp-tr .y.ck::before { width: 22px; height: 22px; background-size: 13px; }
  .cmp-tr .y { font-size: 13px; }
  .cmp-tr .n { font-size: 11.5px; line-height: 1.2; }
  .cmp-tr > span:first-child { font-size: 15px; }
  .cmp-tr .n { font-size: 13px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 330px) { .ex-grid { grid-template-columns: 1fr; } }
