/* try.css
 *
 * Page-specific layout for /try. Everything visual that already exists on the site
 * (.seg button, .tint-swatch, .btn, .reveal-frame) is reused from styles.css rather
 * than restated here, so this file is only the arrangement.
 */

.try-hero {
  padding: var(--space-8) 0 var(--space-5);
  background: var(--bg-warm);
  text-align: center;
}

.try-hero h1 {
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  text-wrap: balance;
  margin: 0 0 var(--space-3);
}

.try-lede {
  max-width: 34rem;
  margin: 0 auto var(--space-3);
  color: var(--text-muted);
}

/* The privacy line is the reason this page can be shared without an asterisk, so it
   sits above the fold and reads as a statement rather than smallprint. */
.try-privacy {
  max-width: 34rem;
  margin: 0 auto;
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

.try-stage {
  padding: var(--space-6) 0 var(--space-8);
}

.try-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

/* One column below the point where the phone frame and the controls stop fitting
   side by side. The canvas leads, because it is the thing worth looking at. */
@media (max-width: 860px) {
  .try-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }
  .try-canvas-col {
    max-width: 380px;
    margin: 0 auto;
  }
}

.try-canvas-col .reveal-frame {
  position: relative;
}

/* Sits on the canvas, matching where the app puts it, so the saved image and the
   screen agree. The saved PNG draws its own copy of this text: a DOM overlay cannot
   be captured by toBlob, which is why try.js composes rather than exporting the
   canvas alone. */
.try-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.try-caption-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
  color: #fff;
}

.try-caption-day {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.92);
}

.try-field {
  margin-bottom: var(--space-5);
}

.try-field .field-label,
.try-field > label.field-label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.try-field input[type="text"] {
  width: 100%;
  font: inherit;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
}

.try-field input[type="range"] {
  width: 100%;
}

.try-own {
  margin-top: var(--space-2);
}

.try-note {
  margin: var(--space-2) 0 0;
  font-size: var(--font-size-small);
  color: var(--text-muted);
  min-height: 1.4em;
}

.try-day-value {
  margin: var(--space-2) 0 0;
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

.try-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.try-actions .try-note {
  flex-basis: 100%;
}

.try-after {
  padding: var(--space-7) 0 var(--space-8);
  background: var(--bg-warm);
  text-align: center;
}

.try-after p {
  max-width: 36rem;
  margin: 0 auto var(--space-4);
  color: var(--text-muted);
}

.try-after-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
