/* ==========================================================
   IDEAS FOR YOUR BUSINESS (component "ideas", prefix ix-)
   Four small working demos for made-up businesses.
   Every selector is ix- scoped. Uses the v3 tokens, with fallbacks.
   ========================================================== */

.ix-section {
  --ix-ink: var(--ink, #10271f);
  --ix-green: var(--green, #153d30);
  --ix-green-2: var(--green-2, #1e5341);
  --ix-lime: var(--lime, #d6ea68);
  --ix-mute: var(--mute, #4c5a52);
  --ix-paper: var(--paper, #fffdf8);
  --ix-sand: var(--sand, #ece7d8);
  --ix-line: var(--line, rgba(16, 39, 31, .14));
  --ix-line-2: var(--line-2, rgba(16, 39, 31, .26));
  --ix-tint: #f1f6d8;
  background: var(--bone, #f6f3ea);
  border-top: 1px solid var(--ix-line);
}

/* visually hidden, still read and focusable */
.ix-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- tabs ---------- */
.ix-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ix-tab {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-width: 0; min-height: 60px; padding: 10px 14px;
  border: 1.5px solid var(--ix-line-2); border-radius: 14px;
  background: var(--ix-paper); color: var(--ix-ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.ix-tab b { font-size: .98rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.ix-tab span { font-size: .8rem; line-height: 1.25; color: var(--ix-mute); }
.ix-tab:hover { border-color: var(--ix-green); }
.ix-tab[aria-selected="true"] { background: var(--ix-green); border-color: var(--ix-green); color: #fff; }
.ix-tab[aria-selected="true"] span { color: var(--ix-lime); }
.ix-tab:focus-visible { outline: 3px solid var(--ix-green-2); outline-offset: 3px; border-radius: 14px; }

/* ---------- panel frame ---------- */
.ix-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "site" "app" "out" "foot";
  background: var(--ix-paper);
  border: 1px solid var(--ix-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px -40px rgba(16, 39, 31, .5);
}
.ix-panel[hidden] { display: none; }
.ix-panel:focus-visible { outline: 3px solid var(--ix-green-2); outline-offset: 4px; border-radius: 22px; }

/* brand colors for each made-up business */
.ix-b-build { --ix-brand: #4a3527; --ix-acc: #ecca8f; --ix-on-brand: #fff; --ix-art-h: 64px; }
.ix-b-auto  { --ix-brand: #17212e; --ix-acc: #a9d8f5; --ix-on-brand: #fff; --ix-art-h: 80px; }
.ix-b-food  { --ix-brand: #8f3419; --ix-acc: #ffd27a; --ix-on-brand: #fff; --ix-art-h: 0px; }
.ix-b-fit   { --ix-brand: #121a16; --ix-acc: var(--ix-lime); --ix-on-brand: var(--ix-lime); --ix-art-h: 56px; }

/* ---------- the "mini site" ---------- */
.ix-site {
  --ix-pad: 18px;
  grid-area: site;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
  padding: var(--ix-pad) var(--ix-pad) calc(var(--ix-art-h) + var(--ix-pad));
  background: var(--ix-brand);
  color: #fff;
}
.ix-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.ix-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1rem; letter-spacing: -.01em; }
.ix-mark {
  display: inline-grid; place-items: center; flex: none;
  min-width: 30px; height: 30px; padding: 0 5px; border-radius: 8px;
  background: var(--ix-acc); color: var(--ix-brand);
  font-size: .72rem; font-weight: 800; letter-spacing: 0;
}
.ix-badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3em .75em; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .55); color: #fff;
}
.ix-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ix-acc); }
.ix-hero { font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.02; font-weight: 750; letter-spacing: -.03em; font-stretch: 88%; text-wrap: balance; max-width: 15ch; }
.ix-pitch { font-size: .98rem; line-height: 1.45; color: rgba(255, 255, 255, .88); max-width: 32ch; }
.ix-facts { display: none; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.ix-facts li { font-size: .8rem; font-weight: 600; padding: .3em .75em; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.ix-art { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: var(--ix-art-h); color: var(--ix-acc); opacity: .55; pointer-events: none; }

/* per-brand type */
.ix-b-auto .ix-hero,
.ix-b-fit .ix-hero { text-transform: uppercase; font-weight: 800; font-stretch: 75%; letter-spacing: -.02em; line-height: .95; }
.ix-b-fit .ix-hero em { font-style: normal; color: var(--ix-acc); }
.ix-b-food .ix-hero { font-family: var(--serif, Georgia, serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.01em; line-height: 1; font-size: clamp(2rem, 7vw, 2.7rem); }

/* APEX: chrome ring (tilts with the mouse) */
.ix-ring {
  position: absolute; z-index: -1; right: -60px; bottom: -175px;
  width: 260px; height: 260px; border-radius: 50%;
  background: conic-gradient(from calc(200deg + var(--ix-mx, .5) * 90deg), #17212e, #4a5b77 10%, #d4deee 18%, #5d6c88 28%, #17212e 44%, #26334a 60%, #b7c5da 72%, #17212e);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%);
  mask: radial-gradient(circle, transparent 54%, #000 55%);
  opacity: .85;
  pointer-events: none;
}

/* Rio: paper flags */
.ix-bunting {
  height: 22px;
  margin: -4px calc(-1 * var(--ix-pad)) 2px;
  border-top: 2px solid rgba(255, 255, 255, .55);
  background:
    conic-gradient(from 150deg at 14px 0, #ffd27a 0 60deg, transparent 0) 0 0 / 112px 22px repeat-x,
    conic-gradient(from 150deg at 14px 0, #ffa9bd 0 60deg, transparent 0) 28px 0 / 112px 22px repeat-x,
    conic-gradient(from 150deg at 14px 0, #86d6cb 0 60deg, transparent 0) 56px 0 / 112px 22px repeat-x,
    conic-gradient(from 150deg at 14px 0, #fff3de 0 60deg, transparent 0) 84px 0 / 112px 22px repeat-x;
}
.ix-b-food .ix-art { display: none; }

/* Pulse: heartbeat line (moves only while on screen, never with reduced motion) */
.ix-ecg { opacity: .9; }
.ix-ecg path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ix-motion .ix-ecg path { stroke-dasharray: .35 1; animation: ix-ecg 3.4s linear infinite; animation-play-state: paused; }
.ix-live .ix-ecg path { animation-play-state: running; }
@keyframes ix-ecg { from { stroke-dashoffset: .35; } to { stroke-dashoffset: -1; } }

/* ---------- interactive side ---------- */
.ix-app {
  grid-area: app;
  container: ix-app / inline-size;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
  padding: 20px 18px 6px;
}
.ix-out { grid-area: out; min-width: 0; padding: 14px 18px 20px; }
.ix-h { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; color: var(--ix-ink); }
.ix-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.ix-legend { display: block; padding: 0 0 7px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ix-green-2); }

/* chips (radio + checkbox) */
.ix-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ix-chip { position: relative; display: inline-flex; min-width: 0; }
.ix-chip > span {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 40px; padding: .4em .95em;
  border: 1.5px solid var(--ix-line-2); border-radius: 999px;
  background: var(--ix-paper); color: var(--ix-ink);
  font-size: .92rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.ix-chip > span:hover { border-color: var(--ix-green); }
.ix-chip em { font-style: normal; font-weight: 500; color: var(--ix-mute); }
.ix-chip input:checked + span { background: var(--ix-green); border-color: var(--ix-green); color: #fff; }
.ix-chip input:checked + span em { color: var(--ix-lime); }
.ix-chip input[type="checkbox"]:checked + span::before {
  content: ""; flex: none; width: .7em; height: .38em; margin-right: .1em;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-.12em) rotate(-45deg);
}
.ix-chip input:focus-visible + span { outline: 3px solid var(--ix-green-2); outline-offset: 2px; }

/* package options (APEX) */
.ix-opts { display: grid; gap: 8px; }
.ix-opt { position: relative; display: block; min-width: 0; }
.ix-opt-box {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--ix-line-2); border-radius: 14px;
  background: var(--ix-paper);
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.ix-opt-box::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ix-line-2); background: #fff; transition: border-width .15s, border-color .15s; }
.ix-opt-box:hover { border-color: var(--ix-green); }
.ix-opt-t b { display: block; font-weight: 700; line-height: 1.25; }
.ix-opt-t i { display: block; font-style: normal; font-size: .84rem; line-height: 1.35; color: var(--ix-mute); }
.ix-opt-box em { font-style: normal; font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ix-opt input:checked + .ix-opt-box { border-color: var(--ix-green); background: var(--ix-tint); box-shadow: inset 0 0 0 1px var(--ix-green); }
.ix-opt input:checked + .ix-opt-box::before { border: 6px solid var(--ix-green); }
.ix-opt input:focus-visible + .ix-opt-box { outline: 3px solid var(--ix-green-2); outline-offset: 2px; }

/* photos (Hill & Timber) */
.ix-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ix-pill {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 40px; padding: .4em 1em;
  border: 1.5px dashed var(--ix-green); border-radius: 999px;
  background: transparent; color: var(--ix-green);
  font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer;
  transition: background-color .15s;
}
.ix-pill:hover { background: var(--ix-tint); }
.ix-pill:focus-visible { outline: 3px solid var(--ix-green-2); outline-offset: 2px; border-radius: 999px; }
.ix-ico { width: 1.1em; height: 1.1em; flex: none; }
.ix-thumbs { display: flex; align-items: center; gap: 8px; }
.ix-thumbs[hidden] { display: none; }
.ix-thumb { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ix-line-2); }
.ix-thumb-a { background: linear-gradient(135deg, #c9b99a 0 40%, #8a6f4e 40% 55%, #d9cdb3 55%); }
.ix-thumb-b { background: linear-gradient(160deg, #9fc3a8 0 45%, #d8d2c0 45% 70%, #6e8f7a 70%); }
.ix-thumbs small { font-size: .8rem; color: var(--ix-mute); }

/* menu (Rio) */
.ix-menu { display: grid; margin: 0; padding: 0; list-style: none; }
.ix-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "t s" "p s";
  align-items: center; gap: 2px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ix-line);
}
.ix-item:last-child { border-bottom: 0; }
.ix-item-t { grid-area: t; min-width: 0; }
.ix-item-t b { display: block; font-size: .96rem; font-weight: 650; line-height: 1.25; }
.ix-item-t span { display: block; font-size: .8rem; line-height: 1.3; color: var(--ix-mute); }
.ix-price { grid-area: p; font-size: .9rem; font-weight: 650; color: var(--ix-green-2); font-variant-numeric: tabular-nums; }
.ix-step {
  grid-area: s;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px; border: 1.5px solid var(--ix-line-2); border-radius: 999px;
  background: var(--ix-paper);
  transition: border-color .15s, background-color .15s;
}
.ix-step button {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ix-green);
  font: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.ix-step button:hover { background: var(--ix-sand); }
.ix-step button[aria-disabled="true"] { color: var(--ix-mute); opacity: .45; cursor: default; background: transparent; }
.ix-step button:focus-visible { outline: 3px solid var(--ix-green-2); outline-offset: 1px; border-radius: 50%; }
.ix-qty { min-width: 1.5em; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.ix-item.ix-in .ix-step { border-color: var(--ix-green); background: var(--ix-tint); }

@container ix-app (min-width: 330px) {
  .ix-item { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "t p s"; padding: 4px 0; }
  .ix-step button { width: 32px; height: 32px; }
}

/* other class times (Pulse) */
.ix-alt { min-width: 0; }
.ix-alt-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ix-alt-b {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px;
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--ix-line-2); border-radius: 12px;
  background: var(--ix-paper); color: var(--ix-ink);
  font: inherit; font-size: .92rem; text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.ix-alt-b:hover { border-color: var(--ix-green); background: var(--ix-tint); }
.ix-alt-b b { font-weight: 650; }
.ix-alt-b span { color: var(--ix-mute); white-space: nowrap; }
.ix-alt-b:focus-visible { outline: 3px solid var(--ix-green-2); outline-offset: 2px; border-radius: 12px; }

/* ---------- result card (belongs to the made-up business) ---------- */
.ix-card {
  display: flow-root;
  padding: 16px;
  border: 1px solid var(--ix-line); border-top: 4px solid var(--ix-brand); border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 32px -26px rgba(16, 39, 31, .55);
}
.ix-card > * + * { margin-top: 12px; }
.ix-card-h { font-weight: 750; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ix-ink); }

.ix-dl { margin: 0; }
.ix-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--ix-line-2); }
.ix-dl > div:first-child { padding-top: 0; }
.ix-dl dt { font-size: .9rem; color: var(--ix-mute); }
.ix-dl dd { margin: 0; min-width: 0; font-size: .95rem; font-weight: 650; text-align: right; }

.ix-lines { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.ix-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ix-lines li > span:first-child { min-width: 0; }
.ix-lines li > span:last-child { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ix-lines .ix-empty,
.ix-lines .ix-more { color: var(--ix-mute); }

.ix-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding-top: 12px; border-top: 1px solid var(--ix-line); }
.ix-total span { flex-basis: 100%; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ix-mute); }
.ix-total b { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-stretch: 88%; font-variant-numeric: tabular-nums; color: var(--ix-ink); }
.ix-total i { font-style: normal; font-size: .92rem; color: var(--ix-mute); }

.ix-class-t { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ix-green-2); }
.ix-card > .ix-class-n { margin-top: 4px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-stretch: 85%; color: var(--ix-ink); }
.ix-card > .ix-class-m { margin-top: 4px; font-size: .95rem; color: var(--ix-mute); }

/* the made-up business's own button, in its brand color */
.ix-go {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%; min-height: 46px; padding: .7em 1.1em;
  border: 2px solid var(--ix-brand); border-radius: 999px;
  background: var(--ix-brand); color: var(--ix-on-brand);
  font: inherit; font-size: .98rem; font-weight: 700; line-height: 1.1;
  cursor: pointer;
  transition: filter .15s, background-color .15s, color .15s;
}
.ix-go:hover { filter: brightness(1.15); }
.ix-go:focus-visible { outline: 3px solid var(--ix-green-2); outline-offset: 3px; border-radius: 999px; }
.ix-go[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: none; }
.ix-hold[aria-pressed="false"] { background: transparent; color: var(--ix-brand); }
.ix-hold[aria-pressed="false"]:hover { background: var(--ix-tint); filter: none; }
.ix-hold .ix-check { display: none; }
.ix-hold[aria-pressed="true"] .ix-check { display: block; }

/* "just a demo" note. Always rendered (live region), styled only when filled. */
.ix-card > .ix-sent:not(.ix-show) { margin-top: 0; }
.ix-sent.ix-show {
  display: grid; gap: 8px;
  padding: 11px 13px; border-radius: 12px;
  background: var(--ix-tint); border: 1px solid rgba(30, 83, 65, .25);
  font-size: .9rem; line-height: 1.45; color: var(--ix-ink);
}
.ix-sent b { color: var(--ix-green-2); }
.ix-bubble {
  justify-self: start; max-width: 100%;
  padding: 8px 12px; border-radius: 14px 14px 14px 4px;
  background: #fff; border: 1px solid var(--ix-line);
  font-size: .86rem; line-height: 1.4;
}

/* ---------- Brazos footer inside each panel ---------- */
.ix-foot {
  grid-area: foot;
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 16px 18px;
  background: var(--ix-sand);
  border-top: 1px solid var(--ix-line);
}
.ix-foot p { font-size: .95rem; line-height: 1.45; color: var(--ix-ink); max-width: 64ch; }
.ix-foot p b { color: var(--ix-green-2); }
.ix-cta { flex: none; white-space: nowrap; }

.ix-honest { margin-top: 14px; font-size: .9rem; color: var(--ix-mute); }

/* ---------- tablet: brand band on top, demo in two columns ---------- */
@media (min-width: 720px) {
  .ix-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .ix-tab { padding: 12px 16px; }
  .ix-tab b { font-size: 1.04rem; }
  .ix-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "site site" "app out" "foot foot";
  }
  .ix-site { --ix-pad: 24px; padding-bottom: var(--ix-pad); }
  .ix-art { left: auto; width: 42%; height: calc(var(--ix-art-h) + 36px); }
  .ix-facts { display: flex; }
  .ix-app { padding: 24px 12px 24px 24px; }
  .ix-out { padding: 24px 24px 24px 12px; }
  .ix-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
}

/* ---------- desktop: mini site | demo | result, one row ---------- */
@media (min-width: 1080px) {
  .ix-panel {
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.1fr) minmax(0, .95fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "site app out" "foot foot foot";
    min-height: 540px;
  }
  .ix-b-build { --ix-art-h: 118px; }
  .ix-b-auto  { --ix-art-h: 150px; }
  .ix-b-food  { --ix-art-h: 120px; }
  .ix-b-fit   { --ix-art-h: 104px; }
  .ix-site { padding-bottom: calc(var(--ix-art-h) + var(--ix-pad)); }
  .ix-art { left: 0; width: 100%; height: var(--ix-art-h); }
  .ix-b-food .ix-art { display: block; }
  .ix-hero { font-size: clamp(2rem, 2.6vw, 2.5rem); }
  .ix-b-food .ix-hero { font-size: clamp(2.3rem, 3vw, 2.9rem); }
  .ix-ring { width: 340px; height: 340px; right: -90px; bottom: -190px; }
  .ix-out { align-self: start; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .ix-motion .ix-ecg path { animation: none; stroke-dasharray: none; }
  .ix-tab, .ix-chip > span, .ix-opt-box, .ix-step, .ix-go, .ix-alt-b, .ix-pill { transition: none; }
}
