/* Reusable pieces. Each block is documented in .claude/skills/daisy-ui/references/components.md. */

/* ---------- Icon: a Lucide SVG at text size, decorative unless labelled ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.icon-badge .icon {
  width: 22px;
  height: 22px;
}

/* ---------- Kicker: a small tracked label above a heading ---------- */
.kicker {
  color: var(--brand-ink);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.accent-text {
  color: var(--brand-ink);
}

/* ---------- Buttons: a 48px pill; .btn-primary is the one accent action per view ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 1.35rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background-image: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn[hidden] {
  display: none;
}

.btn-lg {
  min-height: 54px;
  padding: 0 1.6rem;
}

.btn-sm {
  padding: 0 1.1rem;
  font-size: var(--step--1);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--accent) 30%, transparent),
    0 8px 22px color-mix(in srgb, var(--accent) 26%, transparent);
}

/* Secondary on light surfaces: no outline, just text weight and a soft hover fill. */
.btn-ghost {
  border-color: transparent;
  color: var(--brand-ink);
}

/* An interactive control that is not the primary action: a violet fill. */
.btn-soft {
  border-color: transparent;
  background: var(--bg-raised);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn-help .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--brand-ink);
}

.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: var(--ink);
  }

  .btn-primary:hover {
    border-color: color-mix(in srgb, var(--accent) 86%, var(--ink));
    background: color-mix(in srgb, var(--accent) 86%, var(--ink));
  }

  .btn-ghost:hover,
  .btn-soft:hover {
    border-color: transparent;
    background: var(--brand-soft);
  }

  .btn-on-dark:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }
}

/* ---------- More buttons: soft violet, and the calm lane's quiet button ---------- */
.btn-primary-soft {
  border-color: var(--selected);
  background: var(--selected);
  color: var(--on-selected);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--selected) 50%, transparent);
}

.btn-calm {
  border-color: transparent;
  background: color-mix(in srgb, var(--bg-raised) 80%, transparent);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(35, 27, 46, 0.06), 0 10px 24px -10px rgba(46, 34, 92, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary-soft:hover {
    border-color: var(--selected);
    background: color-mix(in srgb, var(--selected) 88%, var(--ink));
    color: var(--on-selected);
  }

  .btn-calm:hover {
    border-color: transparent;
    background: var(--bg-raised);
  }
}

/* ---------- Drops pill: the soft currency's counter, in the header ---------- */
.drops-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: var(--control);
  padding: 0 1rem 0 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(35, 27, 46, 0.06);
}

.drops-pill[hidden] {
  display: none;
}

/* ---------- Icon button: a round button the height of every header control (the theme switch) ---------- */
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--control);
  height: var(--control);
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), scale var(--dur-fast) var(--ease-out);
}

.icon-btn[hidden] {
  display: none;
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.icon-btn:active {
  scale: 0.97;
}

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    border-color: var(--ink);
  }
}

/* The switch shows where it will take you: a moon in light mode, a sun in dark mode. */
.theme-toggle .icon-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-moon {
    display: none;
  }

  :root:not([data-theme='light']) .theme-toggle .icon-sun {
    display: block;
  }
}

:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

.drops-pill .icon,
.drop-chip .icon {
  width: 18px;
  height: 18px;
  fill: #5bb8f0;
  stroke: #2e8fd0;
}

/* ---------- Effects layer: drop chips, sparkles, petals and confetti (js/fx.js) ---------- */
.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.drop-chip {
  position: fixed;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.65rem 0.3rem 0.45rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 18px -4px rgba(46, 90, 140, 0.45);
  color: #2e8fd0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fx-spark {
  position: fixed;
  width: 14px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.fx-petal {
  position: fixed;
  width: 14px;
  height: 10px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 1px 3px rgba(46, 34, 92, 0.15);
}

.fx-confetti {
  position: fixed;
  width: 8px;
  height: 12px;
  border-radius: 2px;
}

.fx-confetti.is-round {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

/* ---------- Seed mound: the garden's waiting seed ---------- */
.mound {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(var(--soil), var(--soil-shade));
}

.mound::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  width: 6px;
  height: 10px;
  border-radius: 6px 6px 2px 2px;
  background: #3dbb7c;
  translate: -50% 0;
  rotate: 18deg;
}

/* ---------- Card: a raised surface ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--space-m);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--ink);
}

.grid {
  display: grid;
  gap: var(--space-s);
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-m);
  }
}

/* ---------- Surfaces: the widgets and notifications, drawn small ---------- */
.surfaces {
  display: grid;
  gap: var(--space-m);
  padding: 0;
  list-style: none;
}

.surface {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.surface h3 {
  margin-top: var(--space-s);
}

.surface-demo {
  display: grid;
  place-items: center;
  height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.demo-home {
  background:
    radial-gradient(80% 90% at 20% 10%, #b9aef5, transparent 60%),
    radial-gradient(80% 90% at 90% 100%, #f9c7a8, transparent 60%),
    #d9cff4;
}

/* The medium Home Screen widget: her own Daisy (sleepy after 8 PM) and a peek at the garden. */
.widget-medium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100% - 2rem, 300px);
  height: 142px;
  padding: 12px;
  border-radius: 28px;
  background: #fff3e4;
  box-shadow: 0 12px 28px -8px rgba(46, 34, 92, 0.4);
  color: #231b2e;
  font-family: var(--font-display);
}

.wm-daisy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.wm-art {
  width: 78px;
}

.wm-garden {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.wm-plot {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(#dff0fb, #f2f9f3 70%);
}

.wm-plot::after {
  content: '';
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -46px;
  height: 70px;
  border-radius: 50%;
  background: #d6eedc;
}

.wm-plot .plant {
  z-index: 1;
}

.wm-plot .plant-1 {
  left: 18%;
  bottom: 30px;
}

.wm-plot .plant-2 {
  left: 48%;
  bottom: 36px;
}

.wm-plot .plant-3 {
  left: 76%;
  bottom: 28px;
}

/* The Lock Screen with the Pause Live Activity, and its countdown in the Dynamic Island. */
.demo-lock {
  position: relative;
  align-content: center;
  gap: 0.5rem;
  padding: 34px var(--space-s) 0;
  background:
    radial-gradient(70% 80% at 30% 0%, var(--indigo-2), transparent 70%),
    var(--indigo);
  color: #ffffff;
}

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px 0 5px;
  border-radius: 999px;
  background: #000000;
  translate: -50% 0;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.island img {
  border-radius: 7px;
}

/* A ring that drains around a breathing leaf (drawn still here; on the phone it moves natively). */
.island-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 40px;
}

.island-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(#6fd9a0 0 70%, rgba(255, 255, 255, 0.2) 0);
  -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 64%);
  mask: radial-gradient(circle, transparent 0 62%, #000 64%);
}

.island-ring .icon {
  width: 11px;
  height: 11px;
  color: #6fd9a0;
  stroke-width: 2.6;
}

.activity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  max-width: 320px;
  padding: 0.7rem 0.8rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.activity img {
  border-radius: 10px;
}

.activity-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 0.85rem;
}

.activity-text small {
  overflow: hidden;
  opacity: 0.75;
  font-size: 0.72rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.activity-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.activity-bar i {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: #6fd9a0;
}

.activity-time {
  align-self: start;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lock-time {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
}

.demo-note {
  padding: 0 var(--space-s);
  background:
    radial-gradient(80% 90% at 80% 0%, #f9c7a8, transparent 60%),
    radial-gradient(80% 90% at 0% 100%, #b9aef5, transparent 60%),
    #e9e2f2;
}

.note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: start;
  width: 100%;
  max-width: 320px;
  padding: 0.8rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 26px -8px rgba(46, 34, 92, 0.3);
  color: #231b2e;
  font-size: 0.88rem;
  line-height: 1.35;
}

.note img {
  border-radius: 9px;
}

.note b {
  display: block;
  font-weight: 700;
}

.note small {
  color: #6f6480;
  font-size: 0.75rem;
}

/* Two notes, newest first: the one before the hard time, then a small idea from research. */
.notes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.notes .note-back {
  opacity: 0.9;
}

@media (min-width: 860px) {
  .surfaces {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .surfaces-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Band: a full-width deep indigo block for one promise ---------- */
.band {
  position: relative;
  margin-block: var(--space-l);
  padding-block: var(--space-xl);
  background:
    radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--indigo-2) 90%, transparent), transparent 75%),
    radial-gradient(30% 40% at 85% 90%, rgba(142, 125, 234, 0.25), transparent 70%),
    var(--indigo);
  color: #e7e1f7;
  overflow: hidden;
}

.band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  text-align: center;
}

.band .kicker {
  color: #b9aef5;
}

.band h2 {
  max-width: 16ch;
  color: #ffffff;
}

.band-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-xs);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04);
  color: #b9aef5;
}

.band-badge .icon {
  width: 28px;
  height: 28px;
}

.band-list {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  max-width: 62rem;
  margin: var(--space-m) 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.band-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 500;
}

.band-list .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(111, 217, 160, 0.16);
  color: #6fd9a0;
  stroke-width: 2.5;
}

@media (min-width: 860px) {
  .band-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Closing: the last view on the home page ---------- */
.closing-section {
  position: relative;
}

.closing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 60% at 50% 45%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
  pointer-events: none;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  text-align: center;
}

.closing img {
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-xs);
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(35, 27, 46, 0.08),
    0 18px 40px -10px rgba(46, 34, 92, 0.35);
}

.closing h1 {
  font-size: var(--step-3);
}

.closing .lede {
  max-width: 40ch;
}

/* Any other line in the closing (the subscription note) keeps a readable measure on wide screens. */
.closing p {
  max-width: 52ch;
}

/* ---------- App Store badge: Apple's own artwork, unmodified, as the link to Daisy's listing ----------
   Black on light pages, Apple's white version on dark ones. 40px tall everywhere: the artwork's own size and Apple's
   minimum on screen (owner, 2026-11-19: bigger reads as too heavy beside the type). The link pads it to a 48px tap
   target. No underline, no hover effect on the art itself (Apple's badge rules). */
.store-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding-block: 4px;
  border-radius: 10px;
  background-image: none;
  line-height: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}

.store-badge:active {
  transform: scale(0.97);
}

.store-badge img,
.closing .store-badge img {
  width: auto;
  height: 40px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.store-badge .badge-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .store-badge .badge-light {
    display: none;
  }

  :root:not([data-theme='light']) .store-badge .badge-dark {
    display: block;
  }
}

:root[data-theme='dark'] .store-badge .badge-light {
  display: none;
}

:root[data-theme='dark'] .store-badge .badge-dark {
  display: block;
}

/* ---------- Prose: long-form text for Privacy and Help ---------- */
.prose {
  max-width: 62ch;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: var(--space-l);
  font-size: var(--step-2);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--space-m);
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6em;
}

.prose ul {
  display: grid;
  gap: 0.4em;
  padding-left: 1.2em;
}

.prose li::marker {
  color: var(--brand);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg-raised);
}

.table-wrap table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.table-wrap th,
.table-wrap td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap th {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- FAQ: native details and summary ---------- */
.faq {
  display: grid;
  gap: var(--space-xs);
  max-width: 62ch;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg-raised);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 56px;
  padding: 0.75rem 1.1rem;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  color: var(--muted);
  transition: transform var(--dur) var(--ease-out);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq .answer {
  display: grid;
  gap: 0.75em;
  padding: 0 1.1rem 1.1rem;
}

/* ---------- Contact: a card with one way to reach a person ---------- */
.contact {
  flex-direction: row;
  align-items: center;
  gap: var(--space-s);
  max-width: 62ch;
}

.contact a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Help: crisis lines by region ---------- */
.alert {
  display: flex;
  gap: var(--space-s);
  align-items: flex-start;
  max-width: 62ch;
  padding: var(--space-m);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--blush) 26%, var(--bg-raised));
  color: var(--ink);
}

.alert .icon-badge {
  background: var(--bg-raised);
  color: var(--ink);
}

.alert p + p {
  margin-top: 0.35rem;
}

.lines {
  display: grid;
  gap: var(--space-s);
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .lines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Help by country: a jump list, then one section per country (written by scripts/site-help.mjs). */
.country-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
}

.country-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-s);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background-image: none;
}

.country {
  scroll-margin-top: 6rem;
  padding-top: var(--space-m);
}

.country + .country {
  margin-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.country h3 {
  margin-bottom: var(--space-xs);
  font-size: var(--step-2);
  font-weight: 600;
}

.emergency-line {
  margin-bottom: var(--space-s);
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 600;
}

.emergency-line a {
  white-space: nowrap;
}

.lines .card h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.25;
}

.line-region {
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-xs);
}
