/* landing.css  (v77, v107) - the public landing page, in English and Spanish.
   v107: rebuilt after the new design: a photo hero with the customer's
   chat and the baker's ticket, a seven-step flow strip, four features,
   the FAQ, and a closing call. Palette and type are the landing's own
   (the workspace keeps styles.css). Nothing here loads from anywhere
   but cakeq.app and Google Fonts. */

:root {
  --bg: #FFF9F9;   /* v147 */
  --surface: #FFFCFD;
  --alt: #FFF0F4;
  --primary: #C8104D;        /* v147: the new CakeQ magenta, 5.8:1 under white text */
  --primary-dark: #A00D3E;   /* v147: hover, 8.0:1 */
  --heading: #4B2E24;
  --text: #625C57;
  --muted: #6B635E;   /* v113: was #7C746E (3.7:1 on the alt band); now 4.8 */
  --border: #F6D8E2;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  --r: 18px;
  --r-pill: 999px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--heading); margin: 0; font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(40px, 4.5vw, 62px); line-height: 1.02; }
h2 { font-size: clamp(32px, 3.6vw, 46px); text-align: center; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.kicker { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary-dark); font-weight: 600; }   /* v123: darker token, 6.7:1 at 13px */
.section-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 44px; }
.muted { color: var(--muted); }
.hand { font-family: var(--font-hand); color: var(--primary-dark); font-size: 30px; line-height: 1.05; font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: var(--r-pill); font-size: 17px; font-weight: 600; border: 1px solid var(--primary); white-space: nowrap; transition: background .15s, color .15s; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-dark); color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--primary-dark); }
.btn-ghost:hover { background: rgba(185, 111, 121, 0.08); color: var(--primary-dark); }

/* icons */
.ico { width: 30px; height: 30px; stroke: var(--primary); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-s { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.circle { width: 64px; height: 64px; border-radius: 50%; background: var(--alt); display: flex; align-items: center; justify-content: center; }
.num { width: 44px; height: 44px; border-radius: 50%; background: var(--alt); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--heading); flex-shrink: 0; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(247, 243, 238, 0.92); backdrop-filter: blur(8px); }
header.site .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header.site .logo { height: 46px; width: auto; }
header.site nav { display: flex; align-items: center; gap: 26px; }
header.site nav a { font-size: 16px; font-weight: 500; color: var(--heading); }
header.site nav a:hover { color: var(--primary-dark); }
header.site nav a.signin { color: var(--primary-dark); font-weight: 600; }
header.site nav .btn { height: 44px; padding: 0 20px; font-size: 15px; color: #FFFFFF; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--alt) 100%); }
.hero-bg { position: absolute; inset: 0; background: url("/landing/hero-bg.jpg") no-repeat right center; background-size: cover; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247, 243, 238, 0.98) 0%, rgba(247, 243, 238, 0.9) 34%, rgba(247, 243, 238, 0.35) 58%, rgba(247, 243, 238, 0) 78%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 40px; align-items: end; padding: 72px 0 0; min-height: 640px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; padding-bottom: 64px; }
.hero-copy .lede { font-size: 19px; line-height: 1.5; max-width: 500px; color: var(--text); }
.ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fine { font-size: 15px; color: var(--muted); }
/* three facts in one line, the Q as the separator */
/* three facts, one under the other, the Q as the bullet, in the heading face */
.facts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 6px; font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--heading); line-height: 1.25; }
.facts .fact { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: center; }
.facts .q { width: 22px; height: 22px; margin: 0; opacity: .9; }
/* v149: a dot in the logo's magenta marks each fact (the small Q pictures counted as images without a description). */
.facts .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); justify-self: center; }
.hero-art { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: 44px; }
.hero-art .screens { display: flex; align-items: flex-end; gap: 18px; }
.art-head { display: none; }
.note-hero { position: absolute; left: 0; top: 56px; transform: rotate(-8deg); }
/* the two screens: a slim phone and a paper-like ticket, each a touch
   tilted, so they sit on the photo like objects on a table */
.phone { width: 232px; flex-shrink: 0; border-radius: 40px; padding: 7px; background: linear-gradient(160deg, #3A2F31 0%, #211B1D 100%); box-shadow: 0 30px 50px rgba(59, 40, 34, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transform: rotate(-3deg) translateY(6px); }
.phone .screen { border-radius: 33px; overflow: hidden; background: #FFFFFF; aspect-ratio: 9 / 17; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* v123: the baker's screen is a phone too (it was a flat card, which read as a loose photo once the screenshot started with the tabs) */
.ticket { width: 248px; flex-shrink: 0; border-radius: 40px; padding: 7px; background: linear-gradient(160deg, #3A2F31 0%, #211B1D 100%); box-shadow: 0 30px 50px rgba(59, 40, 34, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.06); transform: rotate(2deg) translateY(-22px); }
.ticket .screen { border-radius: 33px; overflow: hidden; background: #FFFFFF; aspect-ratio: 9 / 17; }
.ticket .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* sections */
section { padding: 80px 0; }
section.alt { background: var(--alt); }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step3 { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 0 24px; border-right: 1px solid var(--border); }
.step3:last-child { border-right: 0; }
.step3 .head { display: flex; align-items: center; gap: 18px; }
.step3 p { font-size: 16px; }

/* v132: each step explains itself (Luis: "le falta más información a
   cada paso"), so the strip becomes a grid of numbered cards on a
   desk, and stays a column with arrows on the phone. */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; counter-reset: step; }
.flow .arrow { display: none; width: 16px; height: 16px; }
.flow-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; text-align: left; counter-increment: step; transition: transform .2s ease, box-shadow .2s ease; }
.flow-step:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(59, 40, 34, .35); }
.flow-step::before { content: counter(step); position: absolute; top: 14px; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--alt); color: var(--primary-dark); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-step div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.flow-step em { font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark); font-weight: 600; }
.flow-step strong { font-weight: 600; font-size: 16px; color: var(--heading); }
.flow-step span { font-size: 14px; color: var(--text); line-height: 1.45; }
.flow-wrap { position: relative; padding-bottom: 36px; }
.note-flow { position: absolute; right: 8px; bottom: -14px; transform: rotate(-10deg); }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.feature { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 12px; }
.feature p { font-size: 15.5px; }

.faq { width: min(820px, 100%); margin: 0 auto; border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--heading); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 24px; color: var(--primary); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-top: 10px; font-size: 16px; }

/* closing */
.closing { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--alt) 100%); }
.closing-bg { position: absolute; inset: 0; background: url("/landing/cta-bg.jpg") no-repeat left bottom; background-size: auto 100%; }
.closing-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247, 243, 238, 0) 0%, rgba(247, 243, 238, 0.55) 22%, rgba(247, 243, 238, 0.95) 42%, rgba(247, 243, 238, 0.95) 100%); }
.closing .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 24px 0; }
.note-close { position: absolute; right: 40px; top: 0; transform: rotate(-10deg); text-align: center; }
.closing .signin { font-size: 15px; }
.closing .signin a { font-weight: 600; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .logo { height: 36px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }   /* v123: the Spanish row wraps at 375 instead of pushing the page sideways */
footer nav a { color: var(--text); font-size: 15px; }
footer nav a:hover { color: var(--primary-dark); }

/* phone: the same composition as the desktop, stacked. The photo is
   the background of the art zone (phone and ticket sit on it, as they
   do on a wide screen) and of the closing; the text zones sit on the
   plain gradient, so nothing fights the photo for attention. */
/* v123: between a full desktop and the phone layout the two screens
   (232 + 18 + 248 px, rotated) are wider than their column and slid
   over the copy. They scale down with the window until the 900px
   breakpoint stacks the hero. */
@media (max-width: 1180px) {
  .hero-art .screens { transform: scale(0.82); transform-origin: bottom right; }
}
@media (max-width: 1040px) {
  .hero-art .screens { transform: scale(0.68); transform-origin: bottom right; }
}
@media (max-width: 900px) {
  header.site .wrap { height: 68px; }
  header.site .logo { height: 40px; }
  header.site nav { gap: 14px; }
  .hide-m { display: none; }
  h2 { font-size: 34px; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }
  /* hero: the photo behind the text, the cake on the right, a veil
     on the left so the words read; three facts in a row at the foot */
  .hero { background: var(--bg); padding: 0; }
  .hero-bg { display: none; }
  .hero .wrap { display: block; width: 100%; padding: 0; min-height: 0; }
  .hero-copy { position: relative; padding: 22px 20px 22px; gap: 14px;
    background:
      linear-gradient(180deg, rgba(247, 243, 238, 0) 0%, rgba(247, 243, 238, 0) 64%, rgba(247, 243, 238, 0.9) 80%, rgba(247, 243, 238, 0.97) 100%),
      linear-gradient(90deg, rgba(247, 243, 238, 0.98) 0%, rgba(247, 243, 238, 0.96) 56%, rgba(247, 243, 238, 0.7) 72%, rgba(247, 243, 238, 0.15) 90%, rgba(247, 243, 238, 0) 100%),
      url("/landing/hero-bg.jpg") no-repeat 100% 30% / cover; }
  .hero-copy .kicker { font-size: 12px; max-width: 74%; }
  .hero-copy h1 { font-size: clamp(38px, 11.2vw, 46px); line-height: 0.98; font-weight: 700; max-width: 76%; }
  .hero-copy .lede { font-size: clamp(16px, 4.4vw, 17.5px); line-height: 1.45; font-weight: 500; color: var(--heading); max-width: 74%; }
  .ctas { flex-direction: column; align-items: stretch; gap: 10px; max-width: 74%; }
  .ctas .btn { min-height: 52px; font-size: 16px; }
  .fine { font-size: 13.5px; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 12px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(222, 214, 206, 0.7); font-family: var(--font-body); font-size: 13.5px; font-weight: 500; line-height: 1.2; }
  .facts .fact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 6px; border-right: 1px solid rgba(222, 214, 206, 0.7); }
  .facts .fact:last-child { border-right: 0; }
  .facts .q { width: 26px; height: 26px; margin: 0; }
  /* the screens: their own block on the photo, two phones side by side */
  .hero-art { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 16px 44px; background: url("/landing/hero-phone.jpg") no-repeat 50% 30%; background-size: cover; }
  .hero-art::before { content: ""; position: absolute; inset: 0; background: rgba(247, 243, 238, 0.55); pointer-events: none; }
  .art-head { display: block; position: relative; text-align: center; }
  .art-head h2 { font-size: 30px; }
  .art-head p { font-size: 15px; color: var(--text); margin-top: 4px; }
  .note-hero { position: relative; top: auto; left: auto; transform: rotate(-4deg); text-align: center; font-size: 26px; margin: 4px 0 6px; }
  /* two screens at 55% each, so they overlap a little in the middle, as in the mockup */
  .hero-art .screens { position: relative; width: 100%; max-width: 390px; height: 460px; }
  .phone, .ticket { position: absolute; width: 51%; max-width: 200px; margin: 0; border-radius: 30px; padding: 6px; background: linear-gradient(160deg, #3A2F31 0%, #211B1D 100%); box-shadow: 0 22px 40px rgba(59, 40, 34, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
  .phone { left: 0; top: 16px; transform: rotate(-3deg); }
  .ticket { right: 0; top: 40px; transform: rotate(3deg); }
  .phone .screen, .ticket .screen { border-radius: 24px; aspect-ratio: 9 / 17; background: #FFFFFF; }
  .ticket .screen img { object-position: top; }
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .step3 { padding: 0 8px; gap: 8px; }
  .step3 .head { flex-direction: column; gap: 6px; }
  .step3 .num { width: 36px; height: 36px; font-size: 18px; }
  .step3 .ico { width: 26px; height: 26px; }
  .step3 h3 { font-size: 18px; }
  .step3 p { font-size: 13.5px; line-height: 1.4; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow .arrow { display: block; justify-self: center; transform: rotate(90deg); margin: 6px 0; }
  .flow-step { flex-direction: row; gap: 14px; padding: 16px 44px 16px 16px; }
  .flow-step::before { top: 16px; right: 14px; }
  .note-flow { position: static; transform: rotate(-4deg); text-align: center; margin-top: 22px; font-size: 28px; }
  .features { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .feature { padding: 0; gap: 10px; }
  .feature .circle { width: 52px; height: 52px; }
  .feature .ico { width: 24px; height: 24px; }
  .feature h3 { font-size: 20px; }
  .feature p { font-size: 14.5px; line-height: 1.45; }
  .faq summary { font-size: 20px; }
  .closing { padding: 56px 0 236px; background: url("/landing/cta-bg.jpg") no-repeat left bottom; background-size: 130% auto; }
  .closing-bg { display: none; }
  .closing::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 52%, rgba(247, 243, 238, .55) 74%, rgba(247, 243, 238, 0) 100%); pointer-events: none; }
  .closing .wrap { padding: 0; gap: 14px; }
  .note-close { position: static; transform: rotate(-4deg); font-size: 30px; }
  .closing .wrap .btn { width: 100%; }
  footer .wrap { flex-direction: column; text-align: center; gap: 14px; }
}

/* v154: the legal pages (Terms, in English and Spanish) on a phone: a
   readable column with margins, headings aligned with the text, and a
   comfortable size (on 7 October the text touched the screen's edges and
   the section titles were centered and very large). */
main.doc { max-width: 720px; margin: 0 auto; padding: 28px 20px 64px; box-sizing: border-box; color: var(--text); }
main.doc h1 { font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.15; margin: 0 0 6px; text-align: left; }
main.doc .updated { margin: 0 0 24px; font-size: .9rem; color: var(--muted, #6B635E); }
main.doc h2 { font-size: clamp(1.25rem, 4.6vw, 1.55rem); line-height: 1.25; margin: 30px 0 8px; text-align: left; }
main.doc p, main.doc li { font-size: 1rem; line-height: 1.6; margin: 0 0 12px; text-align: left; }
main.doc ul, main.doc ol { padding-left: 1.2em; margin: 0 0 12px; }
main.doc a { color: var(--primary); word-break: break-word; }
