/* Glint areas of friendscorp.eu (glint.html and the Glint panel on index.html).
   Every rule is scoped under .glint so nothing here can restyle the rest of the
   site. Colours, sizes and copy follow the Glint website design: warm neutrals,
   graphite #2f2e2b as the only accent, Onest for text, Gabarito for headings.
   Both typefaces are self-hosted (SIL OFL 1.1, see fonts/LICENSE-glint-fonts.md). */

@font-face {
  font-family: 'Onest';
  src: url(fonts/onest.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gabarito';
  src: url(fonts/gabarito.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.glint {
  font-family: 'Onest', system-ui, sans-serif;
  color: #2f2e2b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.glint ::selection { background: #e8e4dc; }
.glint a:where(:not(.btn):not(.btn-outline)),
.glint a:where(:not(.btn):not(.btn-outline)):hover { color: inherit; }
.glint button { font-family: inherit; }
.glint input::placeholder { color: #a5a4a0; }
.glint [hidden] { display: none !important; }
.glint .g-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.glint .g-narrow-only { display: none; }
/* controls that only work with glint.js stay out of the way without it */
.glint:not(.g-js) .g-seg,
.glint:not(.g-js) .g-examples,
.glint:not(.g-js) .g-ask button,
.glint:not(.g-js) .g-plabels,
.glint:not(.g-js) .g-cchips { display: none; }
/* no keyboard shortcut to point at on a touch screen */
@media (hover: none), (pointer: coarse) {
  .glint .g-kbd-only { display: none; }
}
/* shell pieces used inside a Glint area keep the site's own type */
.glint .pill,
.glint .btn { font-family: 'Instrument Sans', sans-serif; }

/* the mark: new Glint logo, inline <svg><use href="#g-mark"></svg> */
.glint .g-mark { display: block; flex: none; fill: #2f2e2b; }
.glint .g-mark-light { fill: #f4f2ee; }

/* ---------- panels ---------- */

.glint .g-panel {
  background: #fff;
  border-radius: 16px;
  padding: 96px 56px;
  margin-bottom: 16px;
  scroll-margin-top: 84px;
}
.glint .g-alt { background: #f7f6f3; box-shadow: inset 0 0 0 1px #eceae5; }
.glint .g-dark { background: #151413; color: #f4f2ee; }
.glint .g-anchor { scroll-margin-top: 84px; }

.glint .g-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.glint .g-eyebrow { font-size: 15px; font-weight: 600; color: #6f6d68; }
.glint .g-dark .g-eyebrow { color: #8f8a82; }

.glint .g-h1,
.glint .g-h2,
.glint .g-h2b,
.glint .g-h2dl {
  margin: 0;
  font-family: 'Gabarito', sans-serif;
  font-weight: 800;
  color: #1d1c1a;
  overflow-wrap: break-word;
}
.glint .g-h1 { font-size: clamp(46px, 7.6vw, 96px); line-height: .98; letter-spacing: -.04em; }
.glint .g-h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.035em; }
.glint .g-h2b { font-size: clamp(38px, 5.4vw, 66px); line-height: 1; letter-spacing: -.035em; }
.glint .g-h2dl { font-size: clamp(44px, 6.4vw, 80px); line-height: .98; letter-spacing: -.04em; }
.glint .g-dark .g-h2b { color: #f4f2ee; }

.glint .g-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #6b6963;
  text-wrap: pretty;
}
.glint .g-dark .g-lead { color: #a8a39b; }
.glint .g-hero-lead { max-width: 620px; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.45; }

/* buttons */
.glint .g-btn,
.glint .g-btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}
.glint .g-btn { background: #1d1c1a; color: #fff; }
.glint a.g-btn:hover,
.glint .g-btn:hover { background: #000; color: #fff; }
.glint .g-btn2 { padding: 13px 22px; background: transparent; color: #1d1c1a; box-shadow: inset 0 0 0 1.5px #dedcd7; }
.glint a.g-btn2:hover,
.glint .g-btn2:hover { box-shadow: inset 0 0 0 1.5px #1d1c1a; color: #1d1c1a; }
.glint .g-btn:focus-visible,
.glint .g-btn2:focus-visible,
.glint button:focus-visible,
.glint a:focus-visible,
.glint input:focus-visible { outline: 2px solid #2f2e2b; outline-offset: 2px; }
/* a graphite ring disappears on the dark panels, so they get a light one */
.glint .g-dark :focus-visible,
.glint .is-pro :focus-visible,
.glint .g-ecard.is-dark :focus-visible { outline-color: #f4f2ee; }

/* ---------- in-page sub-nav ---------- */

.glint .g-subnav {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
  padding: 0 12px 0 22px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04);
}
.glint .g-subnav-brand { display: flex; align-items: center; gap: 8px; }
.glint .g-word { font-family: 'Gabarito', sans-serif; font-weight: 700; letter-spacing: -.02em; color: #1d1c1a; }
.glint .g-subnav-brand .g-word { font-size: 19px; }
.glint .g-subnav-links { display: flex; gap: 22px; margin-left: auto; font-size: 13px; white-space: nowrap; }
.glint .g-subnav-links a:not(.btn) { color: #55534e; transition: color .15s ease; }
.glint .g-subnav-links a:not(.btn):hover { color: #000; }
.glint .g-subnav-dl {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: #1d1c1a;
  white-space: nowrap;
}
.glint a.g-subnav-dl,
.glint a.g-subnav-dl:hover { color: #fff; }
.glint a.g-subnav-dl:hover { background: #000; }

/* ---------- hero ---------- */

.glint .g-hero { gap: 24px; padding-bottom: 44px; }
.glint .g-announce {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  background: #f4f3f0;
  transition: background .15s ease;
}
.glint a.g-announce,
.glint a.g-announce:hover { color: #55534e; }
.glint a.g-announce:hover { background: #ecebe7; }
.glint .g-announce span { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: #fff; color: #1d1c1a; }
.glint .g-btnrow { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.glint .g-note { font-size: 13px; color: #6f6d68; }

/* ---------- try: the live search demo ---------- */

.glint .g-try { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }

.glint .g-wall {
  background-color: #e4e1dc;
  background-image: radial-gradient(60% 70% at 18% 20%, #ece6dc 0, transparent 70%),
                    radial-gradient(50% 60% at 85% 80%, #dcdfda 0, transparent 70%);
}
.glint .g-stage {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 40px 80px -40px rgba(40, 30, 20, .35);
  transition: background-color .6s;
}
.glint .g-stage.is-dark {
  background-color: #2a292d;
  background-image: radial-gradient(60% 70% at 18% 20%, #3a3538 0, transparent 70%),
                    radial-gradient(50% 60% at 85% 80%, #2f3634 0, transparent 70%);
}

/* the collapsed pill (shown while the island is tucked away) */
.glint .g-pill {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: #fff;
  color: #2f2e2b;
  box-shadow: 0 0 0 1px rgba(15, 15, 15, .08), 0 4px 14px -4px rgba(15, 15, 15, .25);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.glint .g-pill-undo { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: #f1f0ed; }
.glint .g-stage > .g-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, visibility 0s .2s;
  border: none;
  cursor: pointer;
}
.glint .g-stage.is-glance > .g-pill { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s, visibility 0s; }

.glint .g-island {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 820px;
  max-width: calc(100% - 28px);
  height: 540px;
  transform: translateX(-50%) scale(1);
  transform-origin: top center;
  transition: transform .34s cubic-bezier(.2, .9, .25, 1.1), opacity .18s;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 15, 15, .08), 0 2px 4px rgba(15, 15, 15, .04), 0 28px 60px -16px rgba(15, 15, 15, .34);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}
.glint .g-stage.is-glance .g-island { transform: translateX(-50%) scale(.3, .06); opacity: 0; pointer-events: none; }

.glint .g-ihead {
  height: 54px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid #ecebe8;
}
.glint .g-q {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  color: #2f2e2b;
  caret-color: #2f2e2b;
  padding: 0;
}
.glint .g-q:focus-visible { outline: none; }
.glint .g-auto {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f0ed;
  color: #2f2e2b;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.glint .g-auto i { width: 6px; height: 6px; border-radius: 50%; background: #2f2e2b; animation: gBlink 1.4s steps(1) infinite; }
@keyframes gBlink { 0% { opacity: 1; } 50% { opacity: .25; } }
.glint .g-stage.is-auto .g-auto { display: flex; }
.glint .g-stage.is-auto .g-count { display: none; }
.glint .g-count { font-size: 12px; color: #6f6d68; white-space: nowrap; }

.glint .g-states { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.glint .g-state { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.glint .g-qchips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 18px;
  border-bottom: 1px solid #ecebe8;
  font-size: 12.5px;
  color: #787774;
}
.glint .g-qchips b { font-size: 12.5px; font-weight: 500; padding: 2px 8px; border-radius: 5px; background: #f1f0ed; color: #2f2e2b; }

.glint .g-ibody { flex: 1; display: flex; min-height: 0; }
.glint .g-list {
  width: 290px;
  flex: none;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-right: 1px solid #ecebe8;
  overflow: hidden;
}
.glint .g-gh { font-size: 12px; font-weight: 500; color: #6f6d68; padding: 12px 8px 4px; }
.glint .g-gh:first-child { padding-top: 6px; }
.glint .g-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #2f2e2b;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}
.glint .g-row:hover { background: rgba(55, 53, 47, .05); }
.glint .g-row.is-sel { background: rgba(55, 53, 47, .075); }
.glint .g-tile {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}
.glint .g-tile.s2 { font-size: 11px; }
.glint .g-tile.s3 { font-size: 8px; }
.glint .g-tile.round { border-radius: 50%; }
.glint .g-rt { flex: 1; min-width: 0; display: block; }
.glint .g-rt > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glint .g-rt-t { font-size: 14px; font-weight: 400; }
.glint .g-row.is-sel .g-rt-t { font-weight: 500; }
.glint .g-rt-t b { font-weight: 600; }
.glint .g-rt-s { font-size: 12px; color: #787774; }

/* tile colours (content colours from the design, not accents) */
.glint .t-pdf { background: #fde4e1; color: #b2382a; }
.glint .t-doc { background: #e2eaf8; color: #2b5fa8; }
.glint .t-xls { background: #e2f0e4; color: #2f7a3a; }
.glint .t-img { background: #f4e7da; color: #8a5a2a; }
.glint .t-dir { background: #f6ecd6; color: #8a6a1f; }
.glint .t-cal { background: #ede6f8; color: #5a3a90; }
.glint .t-note { background: #fbf0cf; color: #7a5a10; }
.glint .t-gray { background: #ecebe8; color: #4a4843; }
.glint .t-ink2 { background: #ecebe8; color: #2f2e2b; }
.glint .t-person { background: #e8e4dc; color: #4a4843; }
.glint .t-thing { background: #2f2e2b; color: #fff; }
.glint .t-thing svg { display: block; }
.glint .im0 { background: repeating-linear-gradient(135deg, #d8c2a4 0 10px, #cfb795 10px 20px); }
.glint .im1 { background: repeating-linear-gradient(135deg, #b7c7d3 0 10px, #aabcc9 10px 20px); }
.glint .im2 { background: repeating-linear-gradient(135deg, #c6cfb1 0 10px, #bac4a3 10px 20px); }
.glint .im3 { background: repeating-linear-gradient(135deg, #dcc8c0 0 10px, #d2bbb2 10px 20px); }

/* right-hand preview */
.glint .g-pv { flex: 1; min-width: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; }
.glint .g-pvbars {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 84px;
  padding: 12px 12px 8px;
  border-radius: 8px;
  background: #f7f6f3;
}
.glint .g-pvbars > span,
.glint .g-bars > span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.glint .g-pvbars i,
.glint .g-bars i { display: block; width: 100%; border-radius: 3px; background: #dcdad5; }
.glint .g-pvbars i.on,
.glint .g-bars i.on { background: #2f2e2b; }
.glint .g-pvbars em { font-style: normal; font-size: 10px; color: #9b9a97; }
.glint .g-pvhead { display: flex; align-items: center; gap: 10px; }
.glint .g-pvhead .g-tile { width: 32px; height: 32px; border-radius: 7px; font-size: 9px; }
.glint .g-pvhead .g-rt { min-width: 0; }
.glint .g-pvt { font-size: 19px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glint .g-pvs { font-size: 12px; color: #787774; }
.glint .g-props { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.glint .g-props > div { display: flex; gap: 8px; }
.glint .g-props dt,
.glint .g-props .k { width: 96px; flex: none; color: #6f6d68; }
.glint .g-acts { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.glint .g-act {
  font-size: 13px;
  font-weight: 400;
  padding: 6px 13px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #2f2e2b;
  box-shadow: inset 0 0 0 1px #e1dfda;
  cursor: pointer;
}
.glint .g-act.is-primary { font-weight: 500; background: #2f2e2b; color: #fff; box-shadow: none; }
.glint .g-act:hover { background: #f7f6f3; }
.glint .g-act.is-primary:hover { background: #1d1c1a; }

.glint .g-imgs { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.glint .g-imgs span {
  height: 78px;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  padding: 5px;
  font-size: 9.5px;
  color: rgba(0, 0, 0, .5);
  font-family: ui-monospace, Menlo, monospace;
  overflow: hidden;
  white-space: nowrap;
}

.glint .g-answer { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 4px; }
.glint .g-answer-e { font-size: 15px; color: #787774; }
.glint .g-answer-v { font-family: 'Gabarito', sans-serif; font-size: 56px; font-weight: 700; letter-spacing: -.02em; line-height: 1; word-break: break-all; }
.glint .g-answer-n { font-size: 13px; color: #6f6d68; }

.glint .g-setting { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 0 4px; }
.glint .g-bigsw { width: 64px; height: 36px; border-radius: 18px; background: #dcdad5; position: relative; transition: background .2s; }
.glint .g-bigsw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; }
.glint .g-bigsw.on { background: #2f2e2b; }
.glint .g-bigsw.on::after { left: 31px; }
.glint .g-setting-t { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.glint .g-setting-s { font-size: 13.5px; color: #787774; }

.glint .g-statement { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 4px; }
.glint .g-kicker { font-size: 13px; color: #6f6d68; }
.glint .g-bigt { font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; text-wrap: pretty; overflow-wrap: anywhere; }
.glint .g-body { font-size: 13.5px; color: #787774; line-height: 1.5; }

.glint .g-plan { display: flex; flex-direction: column; gap: 10px; }
.glint .g-plan-t { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.glint .g-plan-rows { border-radius: 8px; box-shadow: inset 0 0 0 1px #ecebe8; overflow: hidden; }
.glint .g-plan-rows > div { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 13px; }
.glint .g-plan-rows > div + div { border-top: 1px solid #ecebe8; }
.glint .g-plan-rows b { font-weight: 600; width: 34px; flex: none; }
.glint .g-plan-rows span { flex: 1; }
.glint .g-plan-rows em { font-style: normal; color: #787774; font-size: 12px; }

.glint .g-homepv { flex: 1; padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.glint .g-greet { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.glint .g-date { font-size: 13px; color: #787774; margin-top: 4px; min-height: 1em; }
.glint .g-hint { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; background: #f7f6f3; font-size: 13px; line-height: 1.5; color: #55534e; }
.glint .g-hint .g-mark { margin-top: 2px; }
.glint .g-trylist { display: flex; flex-direction: column; margin: -6px -8px 0; }
.glint .g-tryrow-i {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #2f2e2b;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.glint .g-tryrow-i:hover { background: rgba(55, 53, 47, .05); }
.glint .g-tryrow-i span { flex: 1; }
.glint .g-tryrow-i em { font-style: normal; font-size: 12px; color: #6f6d68; }
.glint .g-tlabel { font-size: 12px; font-weight: 500; color: #6f6d68; padding-top: 2px; }

.glint .g-empty { flex: 1; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.glint .g-empty-disc { width: 64px; height: 64px; border-radius: 50%; background: #f1f0ed; display: grid; place-items: center; }
.glint .g-empty-t { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.glint .g-empty-s { font-size: 13.5px; color: #787774; max-width: 320px; line-height: 1.5; text-wrap: pretty; }

.glint .g-ifoot {
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-top: 1px solid #ecebe8;
  font-size: 12px;
  color: #787774;
}
.glint .g-ifoot .g-word { font-size: 13px; color: #2f2e2b; }
.glint .g-ifoot > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.glint .g-ifoot > span:nth-child(2) { margin-left: auto; }
.glint .g-kbd {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #dedcd7, inset 0 -1px 0 #dedcd7;
  color: #37352f;
  font-style: normal;
}

.glint .g-examples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: #787774; }
.glint .g-ex {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: #f1f0ed;
  color: #2f2e2b;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.glint .g-ex:hover { background: #e8e6e1; }
.glint .g-ex[aria-pressed="true"] { background: #2f2e2b; color: #fff; }
.glint .g-trynote { font-size: 12px; color: #6f6d68; text-align: center; }

/* ---------- things ---------- */

.glint .g-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.glint .g-stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.glint .g-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #ecebe7; }
.glint .g-seg button {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #787774;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.glint .g-seg button[aria-pressed="true"] { background: #fff; color: #2f2e2b; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.glint .g-thdemo { position: relative; height: 460px; }
.glint .g-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 15, 15, .06), 0 30px 60px -30px rgba(40, 30, 20, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.glint .g-thdemo .g-card {
  position: absolute;
  inset: 0;
  transition: opacity .45s, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.glint .g-thdemo .g-raw { padding: 18px; gap: 2px; opacity: 0; transform: scale(.94) translateY(10px); pointer-events: none; }
.glint .g-thdemo .g-thing { padding: 22px; gap: 16px; }
.glint .g-thdemo.is-raw .g-raw { opacity: 1; transform: none; pointer-events: auto; }
.glint .g-thdemo.is-raw .g-thing { opacity: 0; transform: scale(1.04) translateY(-8px); pointer-events: none; }

.glint .g-chead { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.glint .g-chead em { margin-left: auto; font-style: normal; font-size: 12px; color: #6f6d68; }
.glint .g-raw .g-chead { padding: 0 6px 12px; border-bottom: 1px solid #ecebe8; margin-bottom: 6px; }
.glint .g-rawrow { display: flex; align-items: center; gap: 10px; padding: 7px 6px; font-size: 13.5px; }
.glint .g-rawrow .g-tile { width: 24px; height: 24px; border-radius: 5px; font-size: 7.5px; }
.glint .g-rawrow span:not(.g-tile) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glint .g-rawrow em { font-style: normal; font-size: 12px; color: #6f6d68; white-space: nowrap; }
.glint .g-rawfade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
  font-size: 13px;
  color: #6f6d68;
}

.glint .g-thtitle { display: flex; align-items: center; gap: 14px; }
.glint .g-thtile { width: 48px; height: 48px; border-radius: 11px; background: #2f2e2b; display: grid; place-items: center; flex: none; }
.glint .g-tht { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.glint .g-ths { font-size: 13px; color: #787774; }
.glint .g-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  padding: 14px 14px 8px;
  border-radius: 10px;
  background: #f7f6f3;
  flex: none;
}
.glint .g-bars i { height: var(--h); transition: height .7s ease; }
.glint .g-bars em { font-style: normal; font-size: 10.5px; color: #9b9a97; }
.glint .g-thdemo.is-raw .g-bars i { height: 2px; }
.glint .g-thprops { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; margin: 0; }
.glint .g-thprops > div { display: flex; gap: 8px; }
.glint .g-thprops dt { width: 100px; flex: none; color: #6f6d68; }
.glint .g-thprops dd { margin: 0; min-width: 0; }
.glint .g-ask {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f6f3;
  font-size: 13.5px;
}
.glint .g-ask span { flex: 1; }
.glint .g-ask button {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #2f2e2b;
  box-shadow: inset 0 0 0 1px #e1dfda;
}
.glint .g-ask button.is-primary { background: #2f2e2b; color: #fff; box-shadow: none; }
.glint .g-ask .g-ask-done { display: none; }
.glint .g-ask.is-answered .g-ask-q,
.glint .g-ask.is-answered button { display: none; }
.glint .g-ask.is-answered .g-ask-done { display: block; }

/* ---------- tidy ---------- */

.glint .g-tidy { display: flex; flex-direction: column; gap: 44px; }
.glint .g-tidy-head { gap: 18px; }
.glint .g-tidy-head .g-lead { max-width: 600px; }
.glint .g-tstage {
  position: relative;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
}
.glint .g-twin {
  position: absolute;
  left: 3%;
  top: 24px;
  bottom: 24px;
  width: 56%;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 15, 15, .07), 0 20px 40px -20px rgba(15, 15, 15, .3);
  overflow: hidden;
}
.glint .g-twin-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 12.5px;
  border-bottom: 1px solid #ecebe8;
}
.glint .g-twin-bar i { width: 16px; height: 13px; border-radius: 2px; background: #e8dcb8; flex: none; }
.glint .g-twin-bar b { font-weight: 600; }
.glint .g-twin-bar em { font-style: normal; color: #6f6d68; }
.glint .g-tc1,
.glint .g-tc2 { display: none; }
.glint .g-tstage.is-tidy .g-tc0 { display: none; }
.glint .g-tstage.is-tidy .g-tc1 { display: inline; }
.glint .g-tstage.is-done .g-tc1 { display: none; }
.glint .g-tstage.is-done .g-tc2 { display: inline; }
.glint .g-tdone {
  position: absolute;
  inset: 34px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .5s;
}
.glint .g-tstage.is-done .g-tdone { opacity: 1; }
.glint .g-tdone-c { width: 44px; height: 44px; border-radius: 50%; background: #2f2e2b; display: grid; place-items: center; }
.glint .g-tdone b { font-size: 17px; font-weight: 600; }
.glint .g-tdone span { font-size: 13px; color: #787774; }

.glint .g-folders { position: absolute; inset: 0; pointer-events: none; }
.glint .g-fold {
  position: absolute;
  left: 63%;
  width: 34%;
  height: 66px;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 0 1px rgba(15, 15, 15, .07), 0 10px 24px -14px rgba(15, 15, 15, .3);
  transition: box-shadow .3s;
}
.glint .g-tstage.is-tidy:not(.is-done) .g-fold { box-shadow: 0 0 0 1.5px #2f2e2b, 0 10px 24px -12px rgba(15, 15, 15, .35); }
.glint .g-fglyph { position: relative; width: 34px; height: 28px; border-radius: 4px; background: #f0e3bd; flex: none; }
.glint .g-fglyph::before { content: ''; position: absolute; left: 0; top: -4px; width: 14px; height: 6px; border-radius: 2px 2px 0 0; background: #e8d7a4; }
.glint .g-fname { flex: 1; min-width: 0; }
.glint .g-fname b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glint .g-fname span { display: block; font-size: 11.5px; color: #787774; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glint .g-fcount { font-family: 'Gabarito', sans-serif; font-size: 20px; font-weight: 700; color: #d4d1cb; transition: color .3s; }
.glint .g-fcount .n1 { display: none; }
.glint .g-tstage.is-done .g-fcount { color: #2f2e2b; }
.glint .g-tstage.is-done .g-fcount .n0 { display: none; }
.glint .g-tstage.is-done .g-fcount .n1 { display: inline; }

.glint .g-tiles { position: absolute; inset: 0; pointer-events: none; }
.glint .g-tf {
  position: absolute;
  left: var(--x0);
  top: var(--y0);
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: rotate(var(--r));
  opacity: 1;
  transition: opacity .2s var(--d),
              left .8s cubic-bezier(.65, 0, .25, 1) calc(var(--d) + 60ms),
              top .8s cubic-bezier(.65, 0, .25, 1) calc(var(--d) + 60ms),
              transform .8s cubic-bezier(.65, 0, .25, 1) calc(var(--d) + 60ms);
}
.glint .g-tstage.is-tidy .g-tf {
  left: var(--x1);
  top: var(--y1);
  transform: scale(.45);
  opacity: 0;
  transition: left .85s cubic-bezier(.65, 0, .25, 1) var(--d),
              top .85s cubic-bezier(.65, 0, .25, 1) var(--d),
              transform .85s cubic-bezier(.65, 0, .25, 1) var(--d),
              opacity .25s calc(var(--d) + 650ms);
}
.glint .g-tf i {
  width: 36px;
  height: 44px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.glint .g-tf span { max-width: 58px; font-size: 9.5px; color: #55534e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.glint .g-tidy-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.glint .g-tidy-btn { display: none; padding: 12px 24px; min-width: 116px; }
.glint.g-js .g-tidy-btn { display: inline-flex; }
.glint .g-bullets { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; font-size: 14px; color: #55534e; list-style: none; margin: 0; padding: 0; }
.glint .g-bullets li { display: flex; align-items: center; gap: 8px; }
.glint .g-bullets li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2f2e2b; flex: none; }

/* ---------- quiet ---------- */

.glint .g-quiet { gap: 48px; padding-top: 110px; padding-bottom: 110px; }
.glint .g-quiet-head { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.glint .g-quiet-head .g-lead { max-width: 560px; }
.glint .g-pstage { position: relative; height: 140px; width: 100%; display: flex; align-items: center; justify-content: center; }
.glint .g-pstage::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  max-width: 100%;
  height: 120px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent);
}
.glint .g-bigpill {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #2f2e2b;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 100%;
}
.glint .g-bp-in { display: flex; align-items: center; gap: 12px; min-width: 0; transition: opacity .19s, transform .19s; }
.glint .g-bp-in.is-out { opacity: 0; transform: translateY(4px); }
.glint .g-bp-t { overflow: hidden; text-overflow: ellipsis; }
.glint .g-bp-t.nob { padding-right: 8px; }
.glint .g-bp-b { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: #f1f0ed; flex: none; }
.glint .g-plabels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; }
.glint .g-plabels button {
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .07);
  color: #c9c4bc;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.glint .g-plabels button:hover { background: rgba(255, 255, 255, .12); }
.glint .g-plabels button[aria-pressed="true"] { background: #f4f2ee; color: #151413; }

/* ---------- everyday ---------- */

.glint .g-every { display: flex; flex-direction: column; gap: 48px; }
.glint .g-every-head { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.glint .g-ecards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.glint .g-ecard {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 340px;
  transition: background .5s, color .5s;
}
.glint .g-ce { font-size: 13px; font-weight: 600; color: #6f6d68; }
.glint .g-ct { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.glint .g-in {
  width: 100%;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  color: #2f2e2b;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #f4f3f0;
}
.glint .g-in:focus-visible { outline: 2px solid #2f2e2b; outline-offset: 0; }
.glint .g-cres { min-height: 90px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.glint .g-cans { font-family: 'Gabarito', sans-serif; font-size: 52px; font-weight: 700; letter-spacing: -.02em; line-height: 1; overflow-wrap: anywhere; }
.glint .g-cexp { font-size: 13px; color: #6f6d68; }
.glint .g-cnone { font-size: 14px; color: #6f6d68; }
.glint .g-cchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.glint .g-cchips button {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: none;
  background: #f4f3f0;
  color: #2f2e2b;
  cursor: pointer;
  transition: background .15s;
}
.glint .g-cchips button:hover { background: #ebe9e4; }
.glint .g-rres { display: flex; flex-direction: column; gap: 10px; }
.glint .g-rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.glint .g-rchips div { padding: 8px 12px; border-radius: 10px; background: #f4f3f0; }
.glint .g-rchips span { display: block; font-size: 11px; color: #6f6d68; }
.glint .g-rchips b { display: block; font-size: 14px; font-weight: 500; }
.glint .g-rnext { font-size: 13px; color: #787774; }

.glint .g-toggles { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.glint .g-trow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: #f4f3f0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .5s;
}
.glint .g-trow > span:first-child { flex: 1; }
.glint .g-trow b { display: block; font-size: 14px; font-weight: 500; }
.glint .g-trow em { display: block; font-style: normal; font-size: 12px; color: #6f6d68; transition: color .5s; }
.glint .g-sw { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #dcdad5; flex: none; transition: background .2s; }
.glint .g-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .2s cubic-bezier(.3, .7, .3, 1.3); }
.glint .g-trow[aria-checked="true"] .g-sw { background: #2f2e2b; }
.glint .g-trow[aria-checked="true"] .g-sw::after { left: 19px; }
.glint .g-sfoot { font-size: 12.5px; color: #787774; transition: color .5s; }
.glint .g-ecard.is-dark { background: #1d1c1a; color: #f4f2ee; }
.glint .g-ecard.is-dark .g-ce,
.glint .g-ecard.is-dark .g-trow em,
.glint .g-ecard.is-dark .g-sfoot { color: #a8a39b; }
.glint .g-ecard.is-dark .g-trow { background: #2a2927; }
.glint .g-ecard.is-dark .g-sw { background: #4a4845; }
.glint .g-ecard.is-dark .g-trow[aria-checked="true"] .g-sw { background: #f4f2ee; }
.glint .g-ecard.is-dark .g-trow[aria-checked="true"] .g-sw::after { background: #1d1c1a; }

.glint .g-notes { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.glint .g-notes li { display: flex; gap: 12px; align-items: baseline; padding: 11px 14px; border-radius: 10px; background: #fbf6e4; font-size: 14px; line-height: 1.4; }
.glint .g-notes li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.glint .g-notes li em { font-style: normal; font-size: 11.5px; color: #9b8a5a; white-space: nowrap; }

/* ---------- private ---------- */

.glint .g-private { display: flex; flex-direction: column; gap: 56px; }
.glint .g-private-head { gap: 18px; }
.glint .g-private-head .g-lead { max-width: 580px; }
.glint .g-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 32px; }
.glint .g-pgrid > div { border-top: 1.5px solid #1d1c1a; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.glint .g-pgrid h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.glint .g-pgrid p { margin: 0; font-size: 15px; line-height: 1.5; color: #6b6963; }

/* ---------- pricing ---------- */

.glint .g-pricing { display: flex; flex-direction: column; gap: 48px; }
.glint .g-pricing-head { gap: 16px; }
.glint .g-pricing-head .g-lead { max-width: 520px; }
.glint .g-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; width: 100%; margin: 0 auto; }
.glint .g-plan-card { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: #fff; }
.glint .g-plan-card.is-pro { background: #1d1c1a; color: #f4f2ee; }
.glint .g-plan-e { font-size: 15px; font-weight: 600; color: #6f6d68; }
.glint .is-pro .g-plan-e { color: #a8a39b; }
.glint .g-plan-p { margin-top: 6px; font-family: 'Gabarito', sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.glint .g-plan-s { font-size: 14px; color: #787774; margin-top: 4px; }
.glint .is-pro .g-plan-s { color: #a8a39b; }
.glint .g-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.glint .g-checks li { display: flex; align-items: center; gap: 12px; }
.glint .g-checks svg { flex: none; stroke: #2f2e2b; }
.glint .is-pro .g-checks svg { stroke: #f4f2ee; }
.glint .g-plan-btn { margin-top: auto; width: 100%; font-size: 15px; padding: 12px 20px; }
.glint .is-pro .g-plan-btn { background: #fff; color: #1d1c1a; }
.glint .is-pro .g-plan-btn:hover { background: #ecebe7; color: #1d1c1a; }

/* ---------- download ---------- */

.glint .g-download { gap: 26px; padding-top: 120px; padding-bottom: 110px; }
.glint .g-plats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.glint .g-plat {
  min-width: 170px;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  background: #fff;
  color: #1d1c1a;
  box-shadow: inset 0 0 0 1.5px #dedcd7;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.glint .g-plat:hover { box-shadow: inset 0 0 0 1.5px #1d1c1a; }
.glint .g-plat[aria-current="true"] { background: #1d1c1a; color: #fff; box-shadow: none; }
.glint .g-plat[aria-current="true"]:hover { background: #000; }

/* ---------- index.html: the Glint product panel ---------- */

.glint .g-brandrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.glint .g-brandrow .g-word { font-size: 24px; }
.glint .g-home-h { margin: 0; font-family: 'Gabarito', sans-serif; font-weight: 800; font-size: 50px; line-height: 1; letter-spacing: -.035em; color: #1d1c1a; }
.glint .g-home-lead { margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: #6b6963; }
.glint .g-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.glint .g-chips span { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: #f1f0ed; color: #2f2e2b; }
.glint .grid-split > * { min-width: 0; }
.glint .g-home-demo {
  border-radius: 16px;
  min-height: 520px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
}
.glint .g-home-demo .g-card { width: 100%; max-width: 420px; padding: 20px; gap: 14px; }
.glint .g-home-demo .g-tht { font-size: 22px; }
.glint .g-home-demo .g-thtile { width: 42px; height: 42px; border-radius: 10px; }
.glint .g-home-demo .g-bars { height: 84px; gap: 6px; padding: 12px 12px 8px; }
.glint .g-home-demo .g-thprops { font-size: 13px; gap: 7px; }
.glint .g-home-demo .g-thprops dt { width: 92px; }
.glint .g-home-cap { font-size: 13px; color: #6b6963; text-align: center; }
.glint .g-home-demo .g-pill { max-width: 100%; }
.glint .g-home-demo .g-pill > span:not(.g-pill-undo) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.glint .g-home-demo .g-pill-undo { flex: none; }
.glint .g-home-demo .g-chips { margin-top: 0; justify-content: center; }
.glint .g-home-demo .g-chips span { background: rgba(255, 255, 255, .7); }

/* ---------- responsive (site breakpoints: 900px and 560px) ---------- */

@media (max-width: 1100px) {
  .glint .g-subnav-links { gap: 16px; }
}

@media (max-width: 900px) {
  .glint .g-panel { padding: 64px 28px; }
  .glint .g-subnav { padding: 0 8px 0 16px; }
  .glint .g-subnav-links { display: none; }
  .glint .g-subnav-dl { margin-left: auto; }

  .glint .g-stage { height: auto; padding: 14px; border-radius: 20px; }
  .glint .g-stage > .g-pill { top: 22px; }
  .glint .g-island { position: relative; top: 0; left: 0; width: 100%; max-width: none; height: 520px; transform: none; }
  .glint .g-stage.is-glance .g-island { transform: scale(.3, .06); }
  .glint .g-list { width: 44%; }

  .glint .g-split { grid-template-columns: 1fr; gap: 40px; }
  /* both cards share one grid cell, so the box is as tall as the taller card */
  .glint .g-thdemo { height: auto; display: grid; }
  .glint .g-thdemo .g-card { position: relative; inset: auto; grid-area: 1 / 1; }
  .glint .g-thdemo .g-thing .g-ask { margin-top: 8px; }

  .glint .g-pgrid { grid-template-columns: 1fr 1fr; }
  .glint .g-ecards { grid-template-columns: 1fr; }
  .glint .g-plans { grid-template-columns: 1fr; max-width: 520px; }

  .glint .g-home-h { font-size: 40px; }
  .glint .g-home-demo { min-height: 0; padding: 28px 18px; }
}

@media (max-width: 1000px) {
  /* The tidy stage is laid out in percentages of a wide box; below this the
     tiles collide, so the window and the folders stack and the tiles sit in
     a grid inside the window. */
  .glint .g-tstage { height: auto; padding: 14px; display: grid; gap: 12px; }
  .glint .g-twin { position: relative; left: auto; top: auto; bottom: auto; width: auto; grid-area: 1 / 1; min-height: 330px; }
  .glint .g-tiles {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 4px;
    padding: 48px 10px 16px;
    align-content: start;
    justify-items: center;
  }
  .glint .g-tiles .g-tf:nth-child(n+17) { display: none; }
  .glint .g-tf,
  .glint .g-tstage.is-tidy .g-tf { position: static; transform: rotate(calc(var(--r) * .4)); }
  .glint .g-tf { transition: opacity .25s var(--d), transform .6s var(--d); }
  .glint .g-tstage.is-tidy .g-tf { transform: scale(.6); opacity: 0; transition: opacity .3s calc(var(--d) + 200ms), transform .6s var(--d); }
  .glint .g-folders { position: static; display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
  .glint .g-fold { position: static; width: auto; height: 58px; }
}

@media (max-width: 760px) {
  .glint .g-tidy-ctl { flex-direction: column; }
  .glint .g-bullets { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .glint .g-panel { padding: 44px 22px; border-radius: 16px; }
  .glint .g-subnav { top: 6px; }
  .glint .g-announce { font-size: 12px; }
  .glint .g-lead { font-size: 16.5px; }

  .glint .g-stage { padding: 10px; border-radius: 16px; }
  /* one fixed height for every state, so the page below does not jump while
     the demo plays; the list and preview scroll inside it */
  .glint .g-island { height: 600px; }
  .glint .g-ibody {
    flex-direction: column;
    overflow-y: auto;
    /* a soft edge says there is more below */
    -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
  }
  .glint .g-list,
  .glint .g-pv,
  .glint .g-homepv,
  .glint .g-empty { flex: none; }
  .glint .g-wide-only { display: none; }
  .glint .g-narrow-only { display: inline; }
  .glint .g-list { width: 100%; border-right: 0; border-bottom: 1px solid #ecebe8; padding-bottom: 8px; }
  .glint .g-pv { padding: 16px; min-height: 260px; }
  .glint .g-homepv { padding: 18px 16px; }
  .glint .g-answer-v { font-size: 44px; }
  .glint .g-ifoot > span:nth-child(2),
  .glint .g-ifoot > span:nth-child(4) { display: none; }
  .glint .g-ifoot > span:nth-child(3) { margin-left: auto; }
  .glint .g-ihead { padding: 0 14px; gap: 10px; }
  .glint .g-auto { font-size: 11px; padding: 4px 8px; }
  .glint .g-auto .g-auto-long { display: none; }

  .glint .g-h2b { font-size: 34px; }
  .glint .g-h2b br { display: none; }
  .glint .g-thdemo .g-thing { padding: 18px; }
  .glint .g-rawrow em { display: none; }
  .glint .g-tht { font-size: 22px; }
  .glint .g-bars { gap: 5px; padding: 12px 10px 8px; }
  .glint .g-bars em { font-size: 9.5px; }
  .glint .g-thprops dt { width: 84px; }
  .glint .g-ask { flex-wrap: wrap; }
  .glint .g-ask span { flex-basis: 100%; }

  /* the pill may take two lines here rather than cut its message short */
  .glint .g-bigpill { font-size: 14px; gap: 10px; height: auto; min-height: 48px; padding: 7px 8px 7px 12px; border-radius: 24px; white-space: normal; line-height: 1.3; }
  .glint .g-bigpill .g-mark { width: 20px; height: 20px; }
  .glint .g-bp-in { gap: 10px; }
  .glint .g-bp-t { overflow: visible; }
  .glint .g-bp-b { font-size: 12px; padding: 4px 10px; white-space: nowrap; }
  .glint .g-plabels button { font-size: 13px; padding: 8px 13px; }

  .glint .g-ecard { padding: 22px; min-height: 0; }
  /* stays 16px: iOS zooms into any smaller text field on focus */
  .glint .g-in { padding: 12px; }
  .glint .g-ct { font-size: 23px; }
  .glint .g-cans { font-size: 44px; }

  .glint .g-pgrid { grid-template-columns: 1fr; gap: 28px; }
  .glint .g-plan-card { padding: 26px 22px; }
  .glint .g-plan-p { font-size: 38px; }
  .glint .g-plats { flex-direction: column; width: 100%; }
  .glint .g-plat { width: 100%; }

  .glint .g-home-h { font-size: 34px; }
  .glint .g-home-demo { padding: 22px 12px; }
  .glint .g-home-demo .g-card { padding: 16px; }
  .glint .g-home-demo .g-thprops dt { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .glint .g-auto i { animation: none; }
  .glint .g-island,
  .glint .g-thdemo .g-card,
  .glint .g-bars i,
  .glint .g-tf,
  .glint .g-tstage.is-tidy .g-tf,
  .glint .g-tdone,
  .glint .g-bp-in,
  .glint .g-ecard,
  .glint .g-sw::after { transition: none !important; }
}
