/* Hallmark · shape: kept · genre: modern-minimal · theme: brand · redesign: full
 * paper: #f6f8fb · accent: #1c69b5 · display: League Spartan · body: system sans · hero: kept · nav: kept · footer: kept · signature: the widget specimen settling into place
 * axes: light/geometric-sans/cool · posture: left-aligned · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, section rails repeat down the page; the specimen, the size row and the accordion keep each section's object different */
/* Hallmark · copy: verbatim · the owner asked to keep every heading and line as written */

/* Hero */
.ib-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: var(--space-7) var(--space-8);
  padding-block: var(--pad-hero-end);
}

.app-identity {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  color: var(--text-color);
  font-weight: 600;
}

.app-identity img {
  display: block;
  border-radius: var(--radius-lg);
}

.byline {
  display: block;
  margin-top: 2px;
  color: var(--muted-text-color);
  font-size: 0.875rem;
  font-weight: 400;
}

.ib-hero h1 {
  margin-bottom: var(--space-5);
  font-size: clamp(2.5rem, 5.4vw + 0.5rem, 4.5rem);
}

.hero-description {
  max-width: 48ch;
  margin-bottom: 0;
  font-size: 1.125rem;
}

.availability {
  margin: var(--space-5) 0 0;
  color: var(--muted-text-color);
  font-size: 0.875rem;
}

/* Widget specimen: the widgets sit straight on the page, no frame around them */
.widget-preview {
  margin: 0;
}

.preview-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4);
}

.sample-widget {
  position: relative;
  min-width: 0;
  padding: var(--space-5);
  border-radius: var(--radius-widget);
}

.sample-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.85;
}

.time-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 156px;
  background-color: var(--widget-time-bg);
  color: var(--widget-time-fg);
}

.sample-time {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.sample-date {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  opacity: 0.9;
}

.reminder-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--widget-note-bg);
  color: var(--widget-note-fg);
}

.sample-heading {
  display: block;
  margin: var(--space-3) 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sample-task-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.sample-task-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sample-check {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.sample-check::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 1px;
  background-color: currentColor;
  transform: scale(0);
  transition: transform var(--dur-short) var(--ease-out);
}

.is-in .sample-task-list li:first-child .sample-check::after {
  transform: scale(1);
  transition-delay: 900ms;
}

.agenda-widget {
  grid-column: 1 / -1;
  background-color: var(--widget-agenda-bg);
  color: var(--widget-agenda-fg);
}

.agenda-header {
  margin-bottom: var(--space-3);
}

.sample-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--widget-agenda-rule);
  font-size: 0.875rem;
  line-height: 1.5;
}

.sample-event-time {
  color: var(--accent-color);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sample-event-details strong {
  display: block;
  font-weight: 600;
}

.sample-event-details span {
  font-size: 0.8125rem;
  opacity: 0.8;
}

.widget-preview figcaption {
  max-width: 52ch;
  margin-top: var(--space-4);
  color: var(--muted-text-color);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Sections: the opening line sits in the left margin, the section's object on the right */
.ib-section {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  column-gap: var(--grid-gap);
  padding-block: var(--pad-section);
  border-top: 1px solid var(--border-color);
}

.margin-note {
  position: sticky;
  top: var(--space-5);
  align-self: start;
  max-width: 24ch;
  margin: 0;
  color: var(--muted-text-color);
  font-size: 1rem;
  line-height: 1.4;
}

.section-body h2 {
  margin-bottom: var(--space-4);
}

.support-details {
  margin-top: var(--space-5);
}

.section-body > p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6) var(--grid-gap);
  margin-top: var(--space-7);
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-strong);
  transition: border-color var(--dur-short) var(--ease-out);
}

.feature-card:hover {
  border-top-color: var(--accent-color);
}

.feature-card h3 {
  margin-bottom: var(--space-2);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
}

.feature-index {
  margin-top: auto;
  padding-top: var(--space-5);
  color: var(--accent-color);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.customize-panel .section-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-6) var(--grid-gap);
}

.customize-panel .section-body > div:first-child p:last-child {
  margin-bottom: 0;
}

.size-options {
  display: flex;
  align-items: flex-end;
  gap: var(--space-5);
}

.size-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--secondary-text-color);
  font-size: 0.875rem;
}

.size-shape {
  display: block;
  background-color: var(--accent-soft);
  border: 1.5px solid var(--accent-color);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}

.size-option:hover .size-shape {
  background-color: var(--accent-border);
  transform: translateY(-4px);
}

.size-small {
  width: 64px;
  height: 64px;
}

.size-medium {
  width: 128px;
  height: 64px;
}

.size-large {
  width: 128px;
  height: 128px;
}

.privacy-panel {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  padding: var(--pad-panel);
  background-color: var(--accent-soft);
  border-radius: var(--radius-lg);
}

.privacy-panel h2 {
  margin-bottom: 0;
}

.privacy-panel p {
  margin: 0;
}

.support-details details {
  border-bottom: 1px solid var(--border-color);
}

.support-details details:first-child {
  border-top: 1px solid var(--border-color);
}

.support-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.support-details summary::-webkit-details-marker {
  display: none;
}

.support-details summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--accent-color);
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform var(--dur-short) var(--ease-out);
}

.support-details details[open] summary::after {
  transform: rotate(45deg);
}

.support-details details p {
  margin: 0 0 var(--space-4);
  font-size: 0.9375rem;
  animation: answer-in var(--dur-long) var(--ease-out) both;
}

@keyframes answer-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.contact-line {
  margin: var(--space-5) 0 0;
  font-size: 0.9375rem;
}

.contact-line a {
  color: var(--accent-color);
  font-weight: 600;
  text-underline-offset: 4px;
}

/* Privacy and support pages: the title rides along in the left column while the text scrolls */
.policy-main {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  column-gap: var(--space-8);
  padding-block: clamp(40px, 7vh, 80px);
}

.policy-main > header {
  position: sticky;
  top: var(--space-5);
  grid-column: 1;
  grid-row: 1 / span 40;
  align-self: start;
}

.policy-main > :not(header) {
  grid-column: 2;
  max-width: 68ch;
}

.policy-main h1 {
  margin-bottom: var(--space-4);
  font-size: clamp(2.25rem, 3.6vw + 1rem, 3.5rem);
}

.policy-lede {
  margin-bottom: 0;
  font-size: 1.0625rem;
}

.policy-meta {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-5);
  color: var(--muted-text-color);
  font-size: 0.875rem;
}

.policy-summary {
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  background-color: var(--accent-soft);
  border-radius: var(--radius-lg);
}

.policy-summary p {
  margin: 0;
  color: var(--text-color);
}

.policy-main section {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-color);
}

.policy-main h2 {
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
  line-height: 1.2;
}

.policy-main li {
  color: var(--secondary-text-color);
  line-height: 1.65;
}

.policy-main ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

.policy-main li + li {
  margin-top: var(--space-3);
}

.policy-main strong {
  color: var(--text-color);
  font-weight: 600;
}

.policy-main p a,
.policy-main li a {
  color: var(--accent-color);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.policy-main > .text-link {
  justify-self: start;
  margin-top: var(--space-6);
}

@media (max-width: 900px) {
  .ib-section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-3);
  }

  .margin-note {
    position: static;
  }

  .policy-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy-main > header {
    position: static;
    grid-column: 1;
    grid-row: auto;
    margin-bottom: var(--space-6);
  }

  .policy-main > :not(header) {
    grid-column: 1;
  }
}

@media (max-width: 820px) {
  .ib-hero,
  .feature-grid,
  .customize-panel .section-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .preview-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .size-options {
    gap: var(--space-4);
  }

  .size-small {
    width: 56px;
    height: 56px;
  }

  .size-medium {
    width: 108px;
    height: 56px;
  }

  .size-large {
    width: 108px;
    height: 108px;
  }
}
