/* Landing page only. The signature is the app's own storage bar: three
   segments that pull apart on load, under a line that corrects itself. */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px; align-items: center;
  padding-top: 36px; padding-bottom: 72px;
}
.eyebrow {
  font: 600 13px/1 var(--data); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--emerald-deep); margin: 0 0 18px;
}
.hero h1 {
  font: 800 clamp(40px, 6.2vw, 68px)/1.02 var(--display);
  letter-spacing: -0.035em; margin: 0 0 22px; color: var(--ink);
}
.hero h1 .quiet { color: var(--faint); }
.lede { font-size: 19px; line-height: 1.55; margin: 0 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { font-size: 14px; color: var(--faint); margin: 0; }

.phone {
  justify-self: center; width: min(330px, 100%);
  border-radius: 46px; overflow: hidden;
  background: var(--card);
  box-shadow: 0 40px 80px rgba(22, 32, 46, 0.16), 0 0 0 10px var(--card), 0 0 0 11px var(--hairline);
  transform: rotate(2deg);
}
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 10px #1d2733, 0 0 0 11px var(--hairline); }
}

/* Signature: the correcting line and the bar */
.split { padding-top: 24px; padding-bottom: 96px; }
.correct {
  font: 700 clamp(28px, 4.4vw, 46px)/1.15 var(--display);
  letter-spacing: -0.025em; margin: 0 0 34px; color: var(--ink); max-width: 18em;
}
.correct del {
  color: var(--faint); text-decoration: none; position: relative; white-space: nowrap;
}
.correct del::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 54%;
  height: 0.09em; background: var(--ink); border-radius: 2px;
  transform-origin: left; transform: scaleX(0);
  animation: strike 0.5s 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
}
.correct ins {
  text-decoration: none; color: var(--amber-deep); white-space: nowrap;
  opacity: 0; display: inline-block;
  animation: arrive 0.5s 1.35s ease-out forwards;
}
@keyframes strike { to { transform: scaleX(1); } }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.meter {
  display: flex; gap: 6px; height: 22px; margin-bottom: 26px;
}
.meter span {
  border-radius: 999px; flex-basis: 0;
  animation: grow 1.1s 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}
.meter .in-use { background: var(--slate); flex-grow: 96.9; }
.meter .held { background: var(--amber); flex-grow: 24; animation-delay: 0.35s; }
.meter .usable { background: var(--emerald); flex-grow: 7.1; animation-delay: 0.5s; }
@keyframes grow { from { flex-grow: 0.001; opacity: 0.3; } }

.legend {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  margin: 0; padding: 0; list-style: none;
}
.legend li { margin: 0; }
.legend .figure {
  display: flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--data); color: var(--ink); margin-bottom: 10px;
}
.legend .figure::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot);
}
.legend .label { font: 700 20px/1.2 var(--display); color: var(--ink); display: block; margin-bottom: 6px; }
.legend p { margin: 0; font-size: 16px; }
.legend .in-use { --dot: var(--slate); }
.legend .held { --dot: var(--amber); }
.legend .usable { --dot: var(--emerald); }
.caption { font: 13px/1.4 var(--data); color: var(--faint); margin: 26px 0 0; }

/* Two ways */
.section-title {
  font: 800 clamp(30px, 4vw, 42px)/1.1 var(--display); letter-spacing: -0.03em;
  margin: 0 0 14px; color: var(--ink);
}
.section-lede { font-size: 18px; margin: 0 0 36px; max-width: 36em; }
.ways { padding-bottom: 96px; }
.ways-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.way {
  background: var(--card); border-radius: 30px; padding: 34px 32px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
@media (prefers-color-scheme: dark) { .way { border: 1px solid var(--hairline); } }
.way .tag {
  align-self: flex-start; font: 600 12px/1 var(--data); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; margin-bottom: 20px;
}
.way.settings .tag { background: rgba(14, 158, 102, 0.12); color: var(--emerald-deep); }
.way.held-space .tag { background: rgba(242, 154, 14, 0.14); color: var(--amber-deep); }
.way h3 { font: 700 26px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 12px; color: var(--ink); }
.way p { margin: 0 0 16px; }
.way ul { margin: 0 0 18px; padding-left: 20px; }
.way li { margin-bottom: 8px; }
.way .fine { font-size: 15px; color: var(--faint); margin-top: auto; margin-bottom: 0; }
.run {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center;
  margin: 6px 0 20px;
}
.run img { border-radius: 18px; box-shadow: 0 0 0 1px var(--hairline); }
.run dl { margin: 0; font-family: var(--data); }
.run dt { font-size: 13px; color: var(--faint); }
.run dd { margin: 2px 0 12px; font-size: 22px; font-weight: 600; color: var(--ink); }
.run dd.up { color: var(--emerald-deep); }

/* Honest limits, on the night ground of the app icon */
.limits { background: var(--night); color: #e8eef3; padding: 88px 0; }
.limits .section-title { color: #fff; }
.limits .section-lede { color: #a9b6c3; margin-bottom: 44px; }
.limits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.limits h3 { font: 700 20px/1.25 var(--display); color: #fff; margin: 0 0 8px; }
.limits p { color: #a9b6c3; margin: 0; font-size: 16px; }

/* FAQ */
.faq { padding-top: 88px; padding-bottom: 40px; }
.faq details, .faq > p { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--hairline); padding: 20px 0;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  font: 700 19px/1.35 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }

.closing { text-align: center; padding-top: 64px; padding-bottom: 32px; }
.closing img { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 20px; }
.closing .section-title { margin-bottom: 10px; }
.closing p { margin: 0 auto 26px; max-width: 30em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 16px; }
  .phone { transform: none; width: min(300px, 86%); }
  .ways-grid, .limits-grid { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 480px) {
  .way { padding: 28px 22px; border-radius: 26px; }
  .run { grid-template-columns: 96px minmax(0, 1fr); }
  .correct del, .correct ins { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .correct del::after { transform: scaleX(1); }
  .correct ins { opacity: 1; }
}
