/* Page sections: hero, showcase, bento, price statement, steps, CTA, and the inner pages */

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--slate-deep);
  color: var(--color-on-dark);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 7.5rem);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-12); }
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: var(--space-6);
}

.hero__title em { font-style: normal; color: var(--mustard); }

.hero__lead {
  max-width: 52ch;
  font-size: var(--text-lg);
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-8);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero__note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-on-dark-muted);
}

/* The toucan arrives piece by piece, then keeps gliding */

.hero__bird {
  width: min(100%, 520px);
  margin-inline: auto;
  order: -1;
  max-width: 230px;
}

@media (min-width: 900px) { .hero__bird { order: 0; max-width: 520px; } }

.bird { animation: glide 7s ease-in-out 1.4s infinite alternate; transform-origin: center; }

.bird__piece {
  transform-box: fill-box;
  transform-origin: center;
  animation: fly-in 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}

.bird__piece:nth-child(1) { --from: -120px, -80px; animation-delay: 0.05s; }
.bird__piece:nth-child(2) { --from: 120px, -120px; animation-delay: 0.15s; }
.bird__piece:nth-child(3) { --from: -140px, 120px; animation-delay: 0.25s; }
.bird__piece:nth-child(4) { --from: 160px, 60px; animation-delay: 0.35s; }
.bird__piece:nth-child(5) { --from: 40px, 160px; animation-delay: 0.45s; }
.bird__piece:nth-child(6) { --from: 0, 0; animation-delay: 0.75s; animation-name: blink-in; }

@keyframes fly-in {
  from { opacity: 0; transform: translate(var(--from)) rotate(-90deg) scale(0.4); }
  to { opacity: 1; transform: none; }
}

@keyframes blink-in {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: none; }
}

@keyframes glide {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-14px) rotate(-2deg); }
}

/* Loose quarter circles floating behind the hero */

.hero__shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  width: var(--size, 80px);
  height: var(--size, 80px);
  background: var(--fill, var(--mustard));
  opacity: var(--alpha, 0.14);
  animation: drift var(--speed, 14s) ease-in-out infinite alternate;
}

.shape--tl { border-radius: 100% 0 0 0; }
.shape--tr { border-radius: 0 100% 0 0; }
.shape--br { border-radius: 0 0 100% 0; }
.shape--bl { border-radius: 0 0 0 100%; }

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(var(--dx, 30px), var(--dy, -40px)) rotate(var(--turn, 90deg)); }
}

/* Inner page heroes */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 3vw, 4rem);
}

.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; }
.page-hero__lead { max-width: 60ch; font-size: var(--text-lg); color: var(--color-text-muted); }

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 30px;
  width: 220px;
  height: 220px;
  background: var(--mustard);
  border-radius: 100% 0 0 0;
  opacity: 0.35;
  z-index: -1;
}

@media (max-width: 719px) { .page-hero::after { width: 120px; height: 120px; right: -40px; } }

/* Showcase: a browser frame around the app screenshot */

.browser {
  border-radius: var(--radius-lg);
  background: var(--eye);
  padding: 0 10px 10px;
  box-shadow: 0 40px 80px rgb(0 0 0 / 0.35);
}

.browser__bar { display: flex; align-items: center; gap: 8px; height: 38px; padding-inline: 8px; }
.browser__dot { width: 12px; height: 12px; }
.browser__dot:nth-child(1) { background: var(--rust); border-radius: 100% 0 0 0; }
.browser__dot:nth-child(2) { background: var(--mustard); border-radius: 0 100% 0 0; }
.browser__dot:nth-child(3) { background: var(--mint); border-radius: 0 0 100% 0; }

.browser__url {
  margin-left: var(--space-3);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.08);
  color: var(--color-on-dark-muted);
  font-size: 0.75rem;
}

.browser .shot { border-radius: 18px; border-style: solid; }

.showcase { display: grid; gap: var(--space-10); align-items: center; }

@media (min-width: 1000px) {
  .showcase { grid-template-columns: 1fr 260px; }
}

.showcase__phone { justify-self: center; width: 100%; max-width: 220px; }
@media (min-width: 1000px) { .showcase__phone { max-width: 260px; } }
.showcase__phone .shot { width: 100%; }

/* Bento: the feature grid on the home page */

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

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento__item { grid-column: span 3; }
}

@media (min-width: 1000px) {
  .bento__item { grid-column: span 2; }
  .bento__item--wide { grid-column: span 4; }
}

.bento__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.bento__item h3 { margin: var(--space-3) 0 0; }
.bento__item p { margin: 0; color: var(--color-text-muted); }
.bento__item .shot { margin-top: auto; aspect-ratio: 16 / 7; }

.bento__item--mustard { background: var(--mustard); border-color: transparent; }
.bento__item--mint { background: var(--mint); border-color: transparent; }
.bento__item--mustard p, .bento__item--mint p { color: rgb(35 33 26 / 0.8); }
.bento__item--slate { background: var(--slate); border-color: transparent; color: var(--color-on-dark); }
.bento__item--rust { background: var(--rust); border-color: transparent; color: var(--white); }
.bento__item--slate p, .bento__item--rust p { color: rgb(255 255 255 / 0.85); }
.bento__item--slate .shot, .bento__item--rust .shot { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.25); }

/* Split rows: text beside an image */

.split { display: grid; gap: var(--space-8); align-items: center; }
.split + .split { margin-top: var(--space-section); }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .split--reverse > :first-child { order: 2; }
}

.split h2 { font-size: var(--text-2xl); }
.split p { color: var(--color-text-muted); font-size: var(--text-lg); }

/* The price statement: one giant zero */

.zero {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) { .zero { grid-template-columns: auto 1fr; gap: var(--space-16); } }

.zero__figure {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(8rem, 4rem + 18vw, 17rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: var(--mustard);
}

.zero__figure small { font-size: 0.35em; letter-spacing: -0.03em; color: var(--color-on-dark); }

.zero__figure::before {
  content: "";
  position: absolute;
  left: -0.1em;
  bottom: -0.12em;
  width: 0.45em;
  height: 0.45em;
  background: var(--rust);
  border-radius: 0 0 0 100%;
  z-index: -1;
}

.zero h2 { font-size: var(--text-3xl); }
.zero div p { color: var(--color-on-dark-muted); font-size: var(--text-lg); }

/* Reasons: numbered differentiators */

.reasons { display: grid; gap: var(--space-4); counter-reset: reason; }

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

.reason {
  counter-increment: reason;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 2px solid var(--eye);
  background: var(--cream);
}

.reason::before {
  content: "0" counter(reason);
  display: block;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--rust);
}

.reason p { color: var(--color-text-muted); margin: 0; }

/* Steps */

.steps { display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; counter-reset: step; }

@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { counter-increment: step; }

.step::before {
  content: counter(step);
  display: grid;
  place-items: end start;
  width: 72px;
  height: 72px;
  padding: 0 0 10px 14px;
  margin-bottom: var(--space-5);
  background: var(--mustard);
  border-radius: 100% 0 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.step:nth-child(2)::before { background: var(--mint); border-radius: 0 100% 0 0; place-items: end start; }
.step:nth-child(3)::before { background: var(--rust); color: var(--white); border-radius: 0 0 100% 0; place-items: start; padding: 12px 0 0 14px; }
.step p { color: var(--color-text-muted); }

/* Final call to action */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem);
  border-radius: var(--radius-lg);
  background: var(--rust);
  color: var(--white);
}

.cta-band h2 { font-size: var(--text-3xl); max-width: 16ch; }
.cta-band p { max-width: 50ch; font-size: var(--text-lg); color: rgb(255 255 255 / 0.9); }
.cta-band .btn--ghost { color: var(--white); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); position: relative; }

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -40px;
  bottom: -40px;
  background: var(--mustard);
  border-radius: 100% 0 0 0;
}

.cta-band::after { width: 130px; height: 130px; right: 220px; bottom: -40px; background: var(--slate); border-radius: 0 100% 0 0; }

@media (max-width: 719px) {
  .cta-band::before { width: 140px; height: 140px; }
  .cta-band::after { display: none; }
}

/* Pricing */

.plans { display: grid; gap: var(--space-5); align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
}

.plan--featured { background: var(--slate-deep); color: var(--color-on-dark); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--featured .plan__desc { color: var(--color-on-dark-muted); }
.plan__name { margin: 0; font-size: var(--text-xl); }
.plan__price { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.plan__price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; opacity: 0.75; }
.plan__desc { color: var(--color-text-muted); margin: 0; }
.plan .ticks { margin-bottom: var(--space-4); }
.plan .btn { margin-top: auto; }

/* Contact */

.contact-grid { display: grid; gap: var(--space-10); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--space-16); } }

.contact-panel {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
}

.whatsapp-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--slate-deep);
  color: var(--color-on-dark);
}

.whatsapp-card p { color: var(--color-on-dark-muted); }

/* Blog */

.post-list { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .post-list { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card h2, .post-card h3 { font-size: var(--text-xl); margin: 0; }
.post-card p { color: var(--color-text-muted); margin: 0; }
.post-card .shot { aspect-ratio: 16 / 9; margin-bottom: var(--space-2); }

.meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }

.article-header { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) var(--space-8); }
.article-header h1 { font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
.article-header .shot { margin-top: var(--space-8); }

/* Security page: the roadmap of what's coming */

.soon { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .soon { grid-template-columns: repeat(2, 1fr); } }

.soon li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 2px dashed var(--sand-deep);
  font-weight: 600;
}

/* 404 */

.not-found { text-align: center; padding-block: var(--space-section); }
.not-found__code { font-family: var(--font-display); font-size: clamp(6rem, 3rem + 14vw, 12rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; color: var(--rust); }
.not-found .btn { margin-top: var(--space-6); }

.hero__shape--1 { --size: 180px; --fill: var(--mustard); --dx: 40px; --dy: 30px; top: 8%; left: -60px; }
.hero__shape--2 { --size: 90px; --fill: var(--rust); --speed: 11s; --alpha: 0.22; top: 70%; left: 40%; }
.hero__shape--3 { --size: 240px; --fill: var(--mint); --speed: 17s; --turn: -60deg; bottom: -90px; right: -60px; }
.hero__shape--4 { --size: 60px; --fill: var(--mustard); --speed: 9s; --alpha: 0.3; --dx: -40px; top: 14%; right: 38%; }

.section-more { margin: var(--space-10) 0 0; text-align: center; }

.split .glyph { margin-bottom: var(--space-5); }
.split { scroll-margin-top: 90px; }

/* Comparison table (Por qué Tuka) */

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

.compare__row {
  display: grid;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background: var(--cream);
}

.compare__row--head { display: none; }
.compare__aspect { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.compare__tuka { font-weight: 600; }
.compare__tuka::before { content: "Tuka · "; color: var(--rust); font-weight: 700; }
.compare__others { color: var(--color-text-muted); }
.compare__others::before { content: "Otros · "; font-weight: 600; }

@media (min-width: 800px) {
  .compare__row { grid-template-columns: 1fr 1.3fr 1.3fr; align-items: center; }
  .compare__row--head { display: grid; background: transparent; font-weight: 700; padding-block: 0; }
  .compare__row--head .compare__tuka { color: var(--rust); font-family: var(--font-display); font-size: var(--text-xl); }
  .compare__tuka::before, .compare__others::before { content: none; }
  .compare__row:not(.compare__row--head) .compare__tuka { position: relative; padding-left: 30px; }
  .compare__row:not(.compare__row--head) .compare__tuka::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    background: var(--mint);
    border-radius: 0 100% 0 0;
  }
}

.section--dark .split p { color: var(--color-on-dark-muted); }

.contact-aside { display: grid; gap: var(--space-6); align-content: start; }
.contact-aside h2 { font-size: var(--text-xl); }
.whatsapp-card .glyph { margin-bottom: var(--space-4); }
.contact-aside__more { padding-inline: var(--space-2); }
.not-found .glyph { margin: 0 auto var(--space-6); }
.thanks__actions { justify-content: center; margin-top: var(--space-6); }

.page-hero + .section--tight { padding-top: 0; }
