/* Homepage visual language follows the supplied ETF app screenshots. */
.home-page {
  --ink: #081410;
  --panel: #101f1b;
  --mint: #7dd9b6;
  --gold: #e8c76e;
  --text: #f3f6f1;
  --muted: #a7b8b0;
  background: var(--ink);
}
.home-page:before,
.home-page:after {
  display: none;
}
.home-page .nav {
  background: rgba(8, 20, 16, 0.94);
  border-color: #21352c;
}
.home-page .nav-inner {
  height: 84px;
}
.home-page .brand strong {
  font-family: inherit;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.home-page .brand small {
  font-size: 10px;
}
.home-page .logo {
  background: #143e30;
  color: var(--mint);
  border-color: #315b49;
  font-size: 28px;
}
.home-page .links {
  font-size: 14px;
  color: #c0cec7;
}
.home-page .pill {
  color: var(--text);
  border-color: #4a6658;
}
.home-page .hero {
  padding: 70px 0 45px;
  background: radial-gradient(ellipse at 83% 45%, #143c2b 0, transparent 55%);
}
.home-page .hero-layout {
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  min-height: 670px;
}
.home-page h1,
.home-page h2 {
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -0.05em;
}
.home-page .hero h1 {
  font-size: clamp(44px, 5.1vw, 70px);
  line-height: 1.23;
  margin: 26px 0;
}
.home-page .hero h1 span {
  color: var(--mint);
  white-space: normal;
}
.home-page .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
}
.home-page .lead {
  color: #b6c7bd;
  font-size: 17px;
  line-height: 1.95;
}
.home-page .trust-chips {
  gap: 18px;
  margin-top: 30px;
}
.home-page .trust-chips span {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: #b9cbc0;
  font-size: 13px;
}
.home-page .hero-actions {
  margin-top: 36px;
  gap: 14px;
  flex-wrap: wrap;
}
.home-page .button {
  padding: 15px 23px;
  border-radius: 12px;
  font-size: 15px;
}
.home-page .button.primary {
  background: var(--mint);
  color: #09281b;
  border-color: var(--mint);
}
.home-page .button.secondary {
  background: transparent;
  border-color: #3c5648;
  color: var(--text);
}
.home-page .micro {
  color: #9cafa2;
  font-size: 12px;
}
.app-showcase {
  margin: 0;
  min-width: 0;
}
.screenshot-stage {
  position: relative;
  height: 650px;
  max-width: 530px;
  margin: auto;
}
.screenshot-stage img {
  display: block;
  height: auto;
  border: 5px solid #253d32;
  border-radius: 34px;
  box-shadow: 0 30px 65px #0008;
  background: #081410;
}
.screen-home {
  position: absolute;
  width: 278px;
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(3deg);
}
.screen-calendar {
  position: absolute;
  width: 244px;
  top: 80px;
  left: 0;
  transform: rotate(-7deg);
  opacity: 0.88;
}
.app-showcase figcaption {
  text-align: center;
  color: #9aafa1;
  font-size: 12px;
  margin-top: 12px;
}
.home-page .product-section,
.home-page .history-section,
.home-page .support-section {
  padding: 88px 0;
}
.home-page .section-intro {
  gap: 48px;
  margin-bottom: 38px;
}
.home-page .section-intro h2,
.home-page .history-copy h2 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.4;
}
.home-page .section-intro > p,
.home-page .history-copy > p {
  color: #adbfb3;
  font-size: 16px;
}
.home-page .product-card {
  min-height: 470px;
  border: 1px solid #2a4537;
  border-radius: 24px;
  background: #101f1b;
  padding: 28px;
  box-shadow: none;
}
.home-page .product-card.featured {
  background: #13291f;
  border-color: #42654d;
}
.home-page .product-card h3 {
  font-size: 24px;
  font-family: inherit;
}
.home-page .product-card p,
.home-page .product-card li {
  color: #b5c6bb;
  font-size: 14px;
}
.home-page .tag {
  font-size: 12px;
}
.home-page .card-code {
  color: var(--mint);
}
.home-page .data-showcase strong {
  font-family: inherit;
  font-weight: 750;
  color: var(--mint);
}
.home-page .stat-strip {
  border-color: #2a4537;
  margin-top: 40px;
}
.home-page .stat-strip strong {
  font-family: inherit;
  font-size: 28px;
}
.home-page .stat-strip span {
  color: #adbfb3;
  font-size: 14px;
}
.home-page .history-section {
  background: #0e1d17;
  border-color: #2a4537;
}
.home-page .history-table {
  background: #13261d;
  border-color: #304c3d;
  border-radius: 22px;
}
.home-page .history-copy > p {
  margin-top: 20px;
}
.home-page .support-grid a {
  background: #101f1b;
  border-color: #2a4537;
  border-radius: 18px;
}
.home-page .support-grid small,
.home-page .notice {
  color: #a6b9ac;
  font-size: 13px;
}
.home-page .footer {
  border-color: #2a4537;
  color: #acbeb1;
}
.home-page a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}
@media (max-width: 1050px) {
  .home-page .hero-layout {
    gap: 24px;
  }
  .screenshot-stage {
    height: 580px;
  }
  .screen-home {
    width: 240px;
  }
  .screen-calendar {
    width: 208px;
    top: 80px;
  }
}
@media (max-width: 760px) {
  .home-page .nav-inner {
    height: 72px;
  }
  .home-page .hero {
    padding: 48px 0 35px;
  }
  .home-page .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .home-page .hero-copy {
    max-width: 540px;
  }
  .home-page .hero h1 {
    font-size: 48px;
  }
  .screenshot-stage {
    width: 440px;
    max-width: 100%;
    height: 610px;
  }
  .screen-home {
    width: 255px;
    right: 12px;
  }
  .screen-calendar {
    width: 220px;
    left: 12px;
  }
  .home-page .section-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-page .product-cards {
    grid-template-columns: 1fr;
  }
  .home-page .product-card {
    min-height: 0;
  }
  .home-page .product-section,
  .home-page .history-section,
  .home-page .support-section {
    padding: 60px 0;
  }
}
@media (max-width: 420px) {
  .home-page .hero h1 {
    font-size: 42px;
  }
  .home-page .lead {
    font-size: 16px;
  }
  .home-page .trust-chips {
    gap: 12px;
  }
  .home-page .trust-chips span {
    font-size: 12px;
  }
  .screenshot-stage {
    height: 535px;
  }
  .screen-home {
    width: 222px;
    right: 7px;
  }
  .screen-calendar {
    width: 184px;
    left: 7px;
  }
  .home-page .button {
    padding: 13px 16px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .home-page .button {
    transition: none;
  }
}

.home-page img.logo {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  padding: 0;
  border: 0;
}

.source-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.source-links .text-link {
  margin: 0;
  font-size: 14px;
  width: fit-content;
}

.feature-overview {
  padding: 76px 0 32px;
  scroll-margin-top: 16px;
}
.feature-overview h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  margin: 16px 0 32px;
}
.feature-overview nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #2a4537;
}
.feature-overview a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 16px;
  font-size: 15px;
  color: #c1d4c7;
}
.feature-overview a:hover {
  background: #152b20;
  color: #7dd9b6;
}
.feature-overview a span {
  color: #7dd9b6;
}
.feature-story {
  padding: 80px 0;
  scroll-margin-top: 16px;
}
.feature-story:nth-of-type(even) {
  background: #0c1c14;
}
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.feature-story:nth-of-type(odd) .story-visual {
  order: 2;
}
.story-visual {
  margin: 0;
  padding: 38px 24px 24px;
  border-radius: 32px;
  background: radial-gradient(ellipse at center, #245239, #12251b 72%);
  border: 1px solid #2a4537;
  text-align: center;
}
.story-visual img {
  display: block;
  width: min(100%, 285px);
  height: auto;
  margin: auto;
  border-radius: 28px;
  border: 4px solid #335442;
  box-shadow: 0 24px 48px #0006;
}
.story-visual figcaption {
  color: #a0b7a8;
  font-size: 12px;
  margin-top: 22px;
}
.story-copy h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.4;
  margin: 20px 0 24px;
}
.story-lead {
  font-size: 17px;
  color: #b4c8bb;
  line-height: 1.95;
}
.story-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.story-points li {
  padding: 18px 0;
  border-top: 1px solid #2a4537;
}
.story-points h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #d8ede0;
}
.story-points p {
  margin: 0;
  font-size: 15px;
  color: #aabfb1;
  line-height: 1.85;
}
.feature-closing {
  padding: 80px 0 96px;
  text-align: center;
  border-top: 1px solid #2a4537;
}
.feature-closing img {
  border-radius: 16px;
}
.feature-closing h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.45;
  margin: 22px 0 16px;
}
.feature-closing p {
  color: #b4c8bb;
  margin-bottom: 28px;
}
@media (max-width: 960px) {
  .story-layout {
    gap: 40px;
  }
  .feature-overview nav {
    grid-template-columns: 1fr 1fr;
  }
  .story-visual {
    padding: 28px 18px 20px;
  }
}
@media (max-width: 640px) {
  .feature-overview {
    padding-top: 50px;
  }
  .feature-overview a {
    padding: 18px 8px;
    font-size: 14px;
  }
  .feature-story {
    padding: 48px 0;
  }
  .story-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .story-copy {
    order: 0;
  }
  .story-visual,
  .feature-story:nth-of-type(odd) .story-visual {
    order: 1;
  }
  .story-visual img {
    width: min(100%, 280px);
  }
  .story-copy h2 {
    margin-top: 16px;
  }
  .story-points {
    margin-top: 24px;
  }
}

/* Progressive enhancement: content remains visible without JavaScript. */
.home-page .hero-copy {
  animation: hero-arrive 0.85s ease-out both;
}
.home-page .app-showcase {
  animation: hero-arrive 1s 0.12s ease-out both;
}
.home-page .screen-home {
  animation: phone-drift 7s ease-in-out infinite;
}
.home-page .screen-calendar {
  animation: calendar-drift 8s ease-in-out infinite;
}
.home-page .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.home-page .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.home-page .story-copy.reveal {
  transition-delay: 0.1s;
}
.home-page .story-visual {
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.35s,
    box-shadow 0.35s;
}
.home-page .story-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 25%,
    #a5f1c80d 45%,
    #a5f1c81c 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 0.9s ease;
}
.home-page .story-visual img {
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}
.home-page .feature-overview a {
  transition:
    background 0.25s,
    color 0.25s;
}
.home-page .feature-overview a span {
  transition: transform 0.25s ease;
}
.home-page .feature-overview a[aria-current="location"] {
  color: var(--mint);
  background: #173526;
  box-shadow: inset 0 -2px var(--mint);
}
.home-page .story-points li {
  transition: border-color 0.3s;
}
.home-page .story-points h3 {
  transition: color 0.3s;
}
.home-page .button {
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
@media (hover: hover) and (pointer: fine) {
  .home-page .story-visual:hover {
    border-color: #639a76;
    box-shadow:
      0 16px 50px #0003,
      0 0 36px #7dd9b60c;
  }
  .home-page .story-visual:hover::before {
    transform: translateX(110%);
  }
  .home-page .story-visual:hover img {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 30px 55px #0008;
  }
  .home-page .feature-overview a:hover span {
    transform: translate(3px, -3px);
  }
  .home-page .story-points li:hover {
    border-color: #609976;
  }
  .home-page .story-points li:hover h3 {
    color: var(--mint);
  }
  .home-page .button:hover {
    box-shadow: 0 8px 26px #7dd9b61a;
  }
}
@keyframes hero-arrive {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes phone-drift {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
@keyframes calendar-drift {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    transform: translateY(7px) rotate(-6deg);
  }
}
@media (max-width: 640px) {
  .home-page .screen-home,
  .home-page .screen-calendar {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .home-page .reveal {
    opacity: 1;
    transform: none;
  }
  .home-page .story-visual:hover img {
    transform: none;
  }
}

/* Unified hero layout and anchor spacing. */
html {
  scroll-padding-top: 104px;
}
.home-page main#top {
  scroll-margin-top: 0;
}
.home-page .hero {
  padding: 64px 0 48px;
  isolation: isolate;
}
.home-page .hero-layout {
  align-items: start;
  min-height: 0;
}
.home-page .hero-copy {
  padding-top: 24px;
}
.home-page .screenshot-stage {
  width: 460px;
  max-width: 100%;
  height: 530px;
}
.home-page .screen-home {
  width: 230px;
  right: 14px;
}
.home-page .screen-calendar {
  width: 198px;
  top: 56px;
  left: 14px;
}
.home-page .screen-home,
.home-page .screen-calendar {
  animation: none;
}
/* Enlarge existing screenshots within focused, responsive windows. */
.home-page .story-visual {
  padding: 24px;
}
.detail-window {
  overflow: hidden;
  aspect-ratio: 1 / 1.12;
  border-radius: 18px;
  background: #081410;
}
.home-page .detail-window img {
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  margin-top: var(--crop-offset);
}
#cashflow {
  --crop-offset: -60%;
}
#calendar {
  --crop-offset: -82%;
}
#watchlist {
  --crop-offset: -91%;
}
#rankings {
  --crop-offset: -66%;
}
.home-page .story-visual:hover .detail-window img {
  transform: none;
}
@media (min-width: 761px) and (max-width: 960px) {
  .home-page .screenshot-stage {
    height: 475px;
  }
  .home-page .screen-home {
    width: 204px;
    right: 5px;
  }
  .home-page .screen-calendar {
    width: 176px;
    left: 5px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 92px;
  }
  .home-page .hero {
    padding: 32px 0 40px;
  }
  .home-page .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .home-page .hero-copy {
    display: contents;
  }
  .home-page .hero-copy > .eyebrow {
    order: 0;
    margin-top: 8px;
    line-height: 1.6;
    justify-content: center;
    width: 100%;
  }
  .home-page .hero-copy > h1 {
    order: 1;
    text-align: center;
    margin: 16px 0 28px;
    width: 100%;
    font-size: clamp(36px, 8vw, 48px);
    line-height: 1.3;
  }
  .home-page .app-showcase {
    order: 2;
    width: 100%;
    margin-bottom: 24px;
  }
  .home-page .screenshot-stage {
    width: 350px;
    height: 425px;
  }
  .home-page .screen-home {
    width: 184px;
    right: 22px;
    top: 0;
  }
  .home-page .screen-calendar {
    width: 162px;
    left: 20px;
    top: 44px;
  }
  .home-page .hero-copy > .lead {
    order: 3;
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .home-page .hero-copy > .trust-chips {
    order: 4;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
  }
  .home-page .hero-copy > .hero-actions {
    order: 5;
    width: 100%;
    justify-content: center;
    margin-top: 24px;
  }
  .home-page .hero-copy > .micro {
    order: 6;
    width: 100%;
    text-align: center;
  }
  .home-page .story-visual {
    padding: 16px;
  }
}
@media (max-width: 360px) {
  .home-page .screenshot-stage {
    height: 382px;
  }
  .home-page .screen-home {
    width: 164px;
    right: 12px;
  }
  .home-page .screen-calendar {
    width: 146px;
    left: 12px;
  }
}

/* Consistent editorial scale without changing section composition. */
.home-page {
  --body-size: 1rem;
  --section-space: 5rem;
}
.home-page .story-copy h2 {
  line-height: 1.4;
  margin-block: 1.25rem 1.5rem;
}
.home-page .story-lead {
  font-size: 1rem;
  line-height: 1.9;
  margin-block: 0 2rem;
}
.home-page .story-points {
  margin-top: 2rem;
}
.home-page .story-points li {
  padding-block: 1.125rem;
}
.home-page .story-points h3 {
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.home-page .story-points p {
  font-size: 1rem;
  line-height: 1.85;
}
.home-page .story-copy .eyebrow,
.home-page .feature-overview .eyebrow {
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.12em;
}
.home-page .story-visual figcaption {
  font-size: 0.75rem;
  line-height: 1.7;
  margin-top: 1.25rem;
}
@media (max-width: 640px) {
  .home-page .story-lead {
    margin-bottom: 1.5rem;
  }
  .home-page .story-points {
    margin-top: 1.5rem;
  }
}

.plan-comparison {
  padding: 100px 0;
  background: #091710;
  border-top: 1px solid #2a4537;
}
.plan-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}
.plan-heading h2 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.3;
  margin: 20px 0 0;
}
.plan-heading > p {
  color: #afc4b6;
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 6px;
}
.plan-deck {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tier {
  padding: 40px;
  border: 1px solid #314b3b;
  border-radius: 26px;
  background: #101f18;
  display: flex;
  flex-direction: column;
}
.tier header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tier-label {
  letter-spacing: 0.2em;
  font-size: 14px;
  font-weight: 750;
  color: #c5d5cb;
}
.tier-chip {
  border: 1px solid #435d4d;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  color: #b8cbbe;
}
.tier h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 650;
  line-height: 1.4;
  margin: 30px 0 10px;
}
.tier-description {
  font-size: 15px;
  line-height: 1.8;
  color: #adc1b4;
  margin: 0;
}
.tier-number {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 30px 0 28px;
}
.tier-number strong {
  font-size: clamp(64px, 7vw, 94px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.06em;
}
.tier-number span {
  color: #afc4b6;
  font-size: 15px;
}
.tier-divider {
  height: 1px;
  background: #334b3c;
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 38px;
  display: grid;
  gap: 25px;
}
.tier-features li {
  display: flex;
  gap: 16px;
}
.tier-features li > span {
  color: #738f7e;
  font-size: 12px;
  line-height: 2.3;
}
.tier-features strong {
  font-size: 17px;
  font-weight: 600;
}
.tier-features p {
  font-size: 14px;
  line-height: 1.85;
  color: #afc4b6;
  margin: 7px 0 0;
}
.tier-action {
  margin-top: auto;
  padding: 16px 20px;
  border: 1px solid #4a6754;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.tier-action:hover {
  background: #244632;
}
.tier-pro {
  background:
    radial-gradient(ellipse at 100% 0, #3b5030, transparent 65%), #173326;
  border-color: #b79f60;
  box-shadow:
    0 20px 65px #0003,
    inset 0 1px #eed79833;
}
.tier-pro .tier-label,
.tier-pro .tier-number strong {
  color: #f0d993;
}
.tier-pro .tier-chip {
  border-color: #b79f6077;
  color: #f0d993;
  background: #e9d2910a;
}
.tier-pro .tier-divider {
  background: #d4bb7040;
}
.tier-pro .tier-features li > span {
  color: #d4bb70;
}
.tier-pro .tier-action {
  background: #ebd18b;
  color: #172b1d;
  border-color: #ebd18b;
}
.tier-pro .tier-action:hover {
  background: #f4dfa5;
}
.plan-bottom {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 26px;
}
.plan-bottom > span {
  font-size: 14px;
  color: #c5d5cb;
}
.plan-bottom p {
  font-size: 12px;
  line-height: 1.8;
  color: #97ad9f;
  max-width: 480px;
  margin: 0;
}
@media (max-width: 760px) {
  .plan-comparison {
    padding: 64px 0;
  }
  .plan-heading {
    display: block;
    margin-bottom: 30px;
  }
  .plan-heading > p {
    margin-top: 20px;
    font-size: 16px;
  }
  .plan-deck {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tier {
    padding: 28px;
  }
  .tier-number {
    padding: 24px 0;
  }
  .plan-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* Consistent focus and touch feedback on interactive elements. */
.home-page a:focus-visible {
  outline: 3px solid #a4e8c8;
  outline-offset: 5px;
  border-radius: 6px;
}
.home-page .tier-action:active,
.home-page a.button:active {
  transform: translateY(1px);
  filter: brightness(0.92);
}
.home-page .feature-overview a {
  min-height: 48px;
  align-items: center;
}
.home-page .feature-overview a:active {
  background: #264d37;
}
.home-page #download,
.home-page #plans {
  scroll-margin-top: 16px;
}
.home-page span.button {
  cursor: default;
  transform: none;
  box-shadow: none;
}
@media (pointer: coarse) {
  .home-page .footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Matching labels and row geometry make the two plans directly comparable. */
.tier-features {
  gap: 0;
  margin: 0 0 28px;
}
.tier-features li {
  padding: 22px 0;
  border-bottom: 1px solid #44614d66;
  min-height: 152px;
}
.comparison-item {
  width: 100%;
}
.comparison-label {
  display: block;
  font-size: 13px;
  color: #a9c0b0;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.tier-features .comparison-item strong {
  display: block;
  font-size: 23px;
  line-height: 1.4;
}
.tier-pro .comparison-item strong {
  color: #f0d993;
}
.tier-features .comparison-item p {
  margin-top: 8px;
}
@media (min-width: 761px) {
  .tier h3 {
    min-height: 84px;
    margin-bottom: 0;
  }
  .tier-description {
    min-height: 54px;
  }
}
@media (max-width: 760px) {
  .tier-features li {
    min-height: 0;
    padding: 20px 0;
  }
  .tier-number strong {
    font-size: 68px;
  }
}

/* One continuous headline, sized to its available column. */
.home-page .hero-copy {
  container-type: inline-size;
}
.home-page .hero h1 {
  font-size: clamp(22px, 3vw, 40px);
  white-space: nowrap;
  letter-spacing: -0.04em;
}
@supports (font-size: 1cqi) {
  .home-page .hero h1 {
    font-size: clamp(20px, 7.2cqi, 40px);
  }
}
@media (max-width: 760px) {
  .home-page .hero-copy > h1 {
    font-size: clamp(20px, 5.7vw, 36px);
    white-space: nowrap;
    letter-spacing: -0.045em;
  }
}

/* Keep the closing statement on one line at each screen size. */
.home-page .feature-closing h2 {
  white-space: nowrap;
  font-size: clamp(16px, 4vw, 44px);
  letter-spacing: -0.04em;
}

/* Real widget screenshots, framed independently of the iPad home screen. */
.widget-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 36px;
}
.widget-heading h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.35;
  margin: 14px 0 0;
  letter-spacing: -0.04em;
}
.widget-heading .story-lead {
  margin: 0;
  max-width: 480px;
}
.widget-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.widget-card {
  margin: 0;
  padding: 30px;
  border: 1px solid #304a3b;
  border-radius: 28px;
  background: radial-gradient(ellipse at 65% 85%, #204734 0%, #10251b 65%);
  min-width: 0;
  overflow: hidden;
}
.widget-card-large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.widget-size {
  color: #88d8b7;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.widget-card h3 {
  font-size: clamp(20px, 2.1vw, 26px);
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 10px 0 8px;
}
.widget-card figcaption p {
  font-size: 14px;
  line-height: 1.7;
  color: #a6bcad;
  margin: 0;
}
.widget-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 26px;
}
.widget-card-large .widget-stage {
  flex: 1;
  padding: 32px 0 16px;
}
.widget-crop {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 20px 38px #0005;
  isolation: isolate;
}
.widget-crop img {
  position: absolute;
  max-width: none;
  height: auto;
  display: block;
}
.widget-crop-large {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 390 / 390;
  border-radius: 11%;
}
.widget-crop-large img {
  width: 273.589744%;
  left: -141.538462%;
  top: -19.487179%;
}
.widget-crop-medium {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 390 / 177;
  border-radius: 9% / 20%;
}
.widget-crop-medium img {
  width: 273.589744%;
  left: -32.051282%;
  top: -42.937853%;
}
.widget-card-small {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 20px;
  align-items: center;
}
.widget-card-small .widget-stage {
  padding: 0;
}
.widget-crop-small {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 19%;
}
.widget-crop-small img {
  width: 602.824859%;
  left: -70.621469%;
  top: -162.711864%;
}
.widget-footnote {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
}
.widget-footnote p {
  margin: 0;
  font-size: 14px;
  color: #b7d1bf;
  line-height: 1.8;
}
.widget-footnote span {
  font-size: 12px;
  color: #8ba394;
  line-height: 1.8;
}
@media (max-width: 960px) {
  .widget-card {
    padding: 24px;
  }
  .widget-card-small {
    grid-template-columns: 1fr 112px;
    gap: 12px;
  }
  .widget-crop-small {
    width: 112px;
  }
}
@media (max-width: 700px) {
  .widget-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }
  .widget-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .widget-card-large {
    grid-row: auto;
  }
  .widget-card-large .widget-stage {
    padding: 26px 0 4px;
  }
  .widget-crop-large {
    max-width: 350px;
  }
  .widget-card-small {
    grid-template-columns: 1fr 112px;
  }
  .widget-footnote {
    gap: 8px;
  }
}

/* Live text keeps the widget demonstration crisp on Retina screens. */
.widget-ui {
  width: 100%;
  max-width: 390px;
  padding: 22px;
  border-radius: 32px;
  background: linear-gradient(155deg, #303032, #1c1c1e 75%);
  color: #f5f5f7;
  box-shadow: 0 20px 38px #0005;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  border: 1px solid #ffffff12;
}
.widget-ui-brand,
.widget-ui-event {
  color: #79c9bc;
  font-weight: 500;
}
.widget-ui-top {
  display: flex;
  justify-content: space-between;
}
.widget-ui-title {
  display: block;
  font-size: 24px;
  line-height: 1.3;
  margin: 3px 0 5px;
}
.widget-ui-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 0;
}
.widget-ui-row + .widget-ui-row {
  border-top: 1px solid #ffffff12;
}
.widget-ui-row strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
}
.widget-ui-name,
.widget-ui-muted {
  display: block;
  color: #a5a5aa;
  font-size: 14px;
  min-height: 1em;
}
.widget-ui-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.widget-ui-date {
  text-align: right;
  align-self: center;
}
.widget-ui-medium {
  padding: 20px 22px;
}
.widget-ui-small {
  width: 150px;
  padding: 16px;
  border-radius: 25px;
}
.widget-ui-small .widget-ui-brand {
  font-size: 13px;
}
.widget-ui-symbol {
  display: block;
  font-size: 25px;
  font-weight: 600;
  margin: 10px 0 3px;
}
.widget-ui-small .widget-ui-event {
  display: block;
  font-size: 14px;
  margin-top: 12px;
}
.widget-ui-small .widget-ui-muted,
.widget-ui-small .widget-ui-name {
  font-size: 12px;
}
.widget-card {
  position: relative;
  transition:
    border-color 0.35s,
    box-shadow 0.35s;
}
.widget-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 25%,
    #a5f1c80d 45%,
    #a5f1c818 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 0.9s ease;
}
.home-page .widget-card.reveal.is-visible {
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .widget-card:hover {
    border-color: #76b596;
    box-shadow: 0 14px 35px #0003;
  }
  .widget-card:hover::before {
    transform: translateX(110%);
  }
}
@media (max-width: 960px) {
  .widget-ui-small {
    width: 112px;
    padding: 12px;
    border-radius: 22px;
  }
  .widget-ui-small .widget-ui-brand {
    font-size: 11px;
  }
  .widget-ui-symbol {
    font-size: 22px;
  }
}
@media (max-width: 420px) {
  .widget-ui {
    padding: 16px;
    font-size: 14px;
    border-radius: 26px;
  }
  .widget-ui-title {
    font-size: 21px;
  }
  .widget-ui-row {
    gap: 6px;
  }
  .widget-ui-row strong {
    font-size: 17px;
  }
  .widget-ui-name,
  .widget-ui-muted {
    font-size: 11px;
  }
  .widget-ui-small {
    padding: 12px;
    border-radius: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .widget-card::before {
    display: none;
  }
}

.feature-overview nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.widget-tabs[hidden],
.widget-card[hidden] {
  display: none !important;
}
.widget-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 20px;
  border: 1px solid #304a3b;
  border-radius: 16px;
  background: #0b1b13;
}
.widget-tabs button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  padding: 10px 8px;
  color: #abc6b7;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}
.widget-tabs button[aria-pressed="true"] {
  background: #28503c;
  color: #effff5;
  box-shadow: 0 2px 8px #0002;
}
.widget-tabs button:focus-visible {
  outline: 3px solid #a4e8c8;
  outline-offset: 2px;
}
.home-page .download-qr {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 20px;
  margin: 32px auto 0;
  padding: 16px 24px 16px 16px;
  border: 1px solid #304a3b;
  border-radius: 22px;
  background: #10251b;
  text-align: left;
  color: #d7eadd;
}
.home-page .download-qr img {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 10px;
  margin: 0;
}
.download-qr strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.download-qr span span {
  display: block;
  font-size: 13px;
  color: #a6bcad;
}
/* Release the compositing transform after reveal for sharp screenshot text. */
.home-page .story-visual.reveal.is-visible {
  transform: none;
}
@media (max-width: 960px) {
  .feature-overview nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-overview nav a:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .home-page .download-qr {
    display: none;
  }
  .widget-gallery {
    align-items: start;
  }
}

/* 1.0.7 product screenshots: preserve the complete interface. */
.home-page .detail-window {
  width: min(100%, 300px);
  margin: 0 auto;
  aspect-ratio: 390 / 844;
  border: 1px solid #3a5e48;
  border-radius: 22px;
}
.home-page .detail-window img {
  width: 100%;
  margin: 0;
}
.feature-overview nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-overview nav a:last-child {
  grid-column: auto;
}
.feature-overview nav a:nth-child(n + 5) {
  border-top: 1px solid #2a4537;
}
@media (max-width: 960px) {
  .feature-overview nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-overview nav a:nth-child(n + 3) {
    border-top: 1px solid #2a4537;
  }
}
#backup .detail-window {
  width: min(100%, 390px);
  aspect-ratio: 390 / 258;
}
#backup .story-visual {
  align-self: center;
}
.purchase-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.purchase-options article { border: 1px solid #35534b; border-radius: 18px; padding: 22px; background: #10231f; }
.purchase-options h3 { margin: 0 0 12px; color: #eff8f4; }
.purchase-options p { color: #e5c778; line-height: 1.7; }
.purchase-options small { color: #b4c9c0; line-height: 1.8; }
@media (max-width: 700px) { .purchase-options { grid-template-columns: 1fr; } }
