/* ===========================================================
   Build Your App With Us — page-specific styles
   Reuses the Sakura tokens/buttons/nav/footer from styles.css
   =========================================================== */

/* ---------- HERO ---------- */
.bya-hero {
  background: var(--hero-grad);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.bya-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}
.bya-title {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 16px 0 18px;
}
.bya-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 26px;
}
.bya-sub strong { color: var(--text); }
.bya-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.bya-hero-points { list-style: none; display: grid; gap: 10px; }
.bya-hero-points li { font-weight: 600; font-size: 15px; color: var(--text-secondary); }

/* Portfolio stack visual */
.bya-hero-visual { display: flex; justify-content: center; }
.bya-portfolio-stack {
  position: relative;
  width: 300px;
  height: 340px;
}
.bya-pf-card {
  position: absolute;
  width: 200px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
}
.bya-pf-card img { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; }
.bya-pf-card span { font-weight: 700; font-size: 14px; }
.bya-pf-card:nth-child(1) { top: 0; left: 0; transform: rotate(-7deg); z-index: 1; }
.bya-pf-card:nth-child(2) { top: 70px; left: 90px; transform: rotate(4deg); z-index: 3; }
.bya-pf-card:nth-child(3) { top: 180px; left: 10px; transform: rotate(-3deg); z-index: 2; }
.bya-pf-badge {
  position: absolute;
  bottom: 6px; right: -6px;
  background: var(--primary-grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(255, 92, 159, .4);
  z-index: 4;
}

/* ---------- ENGAGEMENT MODELS ---------- */
.bya-models {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}
.bya-model {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bya-model:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.bya-model-featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.bya-model-badge {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--primary-grad);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 92, 159, .36);
}
.bya-model-icon { font-size: 38px; margin-bottom: 12px; }
.bya-model h3 { font-size: 23px; letter-spacing: -.4px; }
.bya-model-tag { color: var(--primary-dark); font-weight: 700; font-size: 14px; margin: 4px 0 14px; }
.bya-model-desc { color: var(--text-secondary); font-size: 15px; margin-bottom: 18px; }
.bya-model-feats { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.bya-model-feats li { position: relative; padding-left: 26px; font-size: 14.5px; font-weight: 500; }
.bya-model-feats li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  background: var(--surface-alt);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.bya-model-best {
  font-size: 13.5px; color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

/* ---------- PROCESS STEPS ---------- */
.bya-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bya-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
}
.bya-step-num {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-grad);
  color: #fff; font-weight: 800; font-size: 18px;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(255, 92, 159, .3);
}
.bya-step h3 { font-size: 17px; margin-bottom: 6px; }
.bya-step p { font-size: 14px; color: var(--text-secondary); }

/* ---------- START / FORM ---------- */
.bya-start-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.bya-start-copy h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 14px; }
.bya-start-copy > p { color: var(--text-secondary); font-size: 16px; margin-bottom: 22px; }
.bya-trust { list-style: none; display: grid; gap: 12px; }
.bya-trust li { font-size: 14.5px; font-weight: 500; color: var(--text-secondary); }

/* Card */
.bya-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
}

/* Progress header */
.bya-progress { display: flex; align-items: center; margin-bottom: 26px; }
.bya-progress-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  white-space: nowrap;
}
.bya-progress-step span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-alt); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background .3s, color .3s;
}
.bya-progress-step.is-active { color: var(--primary-dark); }
.bya-progress-step.is-active span { background: var(--primary-grad); color: #fff; }
.bya-progress-step.is-done span { background: var(--primary-dark); color: #fff; }
.bya-progress-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; border-radius: 2px; }

/* Panels */
.bya-step-panel { display: none; animation: byaFade .35s ease; }
.bya-step-panel.is-active { display: block; }
@keyframes byaFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bya-step-panel h3 { font-size: 21px; letter-spacing: -.3px; }
.bya-panel-sub { color: var(--text-secondary); font-size: 14.5px; margin: 6px 0 18px; }
.bya-verified-note { color: var(--primary-dark); font-weight: 600; }

/* Inputs */
.bya-label { display: block; font-weight: 700; font-size: 13.5px; margin: 14px 0 7px; }
.bya-label:first-of-type { margin-top: 0; }
.req { color: var(--primary); }
.bya-input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.bya-input::placeholder { color: var(--text-muted); }
.bya-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(255, 92, 159, .12);
}
.bya-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.bya-otp-input { letter-spacing: 10px; text-align: center; font-size: 24px; font-weight: 800; }
.bya-count { text-align: right; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.bya-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bya-field { min-width: 0; }

.bya-block-btn { width: 100%; justify-content: center; margin-top: 20px; }
.bya-block-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* Messages */
.bya-msg { font-size: 13.5px; font-weight: 600; margin-top: 12px; min-height: 18px; }
.bya-msg.is-error { color: #D92D5E; }
.bya-msg.is-ok { color: #1f9d55; }

/* OTP secondary actions */
.bya-otp-actions { display: flex; justify-content: space-between; margin-top: 14px; }
.bya-link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--primary-dark); font-weight: 700; font-size: 13.5px;
  font-family: inherit; padding: 4px;
}
.bya-link-btn:hover { text-decoration: underline; }
.bya-link-btn[disabled] { color: var(--text-muted); cursor: not-allowed; text-decoration: none; }

/* Model choice radios */
.bya-model-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.bya-choice { cursor: pointer; }
.bya-choice input { position: absolute; opacity: 0; pointer-events: none; }
.bya-choice-box {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  height: 100%;
}
.bya-choice-box strong { font-size: 14.5px; }
.bya-choice-box small { font-size: 12px; color: var(--text-muted); }
.bya-choice input:checked + .bya-choice-box {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(255, 92, 159, .12);
}
.bya-choice input:focus-visible + .bya-choice-box { border-color: var(--primary); }

/* Success */
.bya-success { text-align: center; padding: 12px 0; }
.bya-success-icon { font-size: 52px; margin-bottom: 8px; }
.bya-success h3 { font-size: 24px; }
.bya-success .btn { margin-top: 18px; }

/* Spinner in buttons */
.bya-block-btn.is-loading .btn-label { visibility: hidden; }
.bya-block-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: byaSpin .7s linear infinite;
}
.bya-block-btn { position: relative; }
@keyframes byaSpin { to { transform: rotate(360deg); } }

/* ---------- HOMEPAGE "Work With Us" premium highlight card ---------- */
.workwithus-section { padding: 54px 0 6px; }
.workwithus-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, #FFFFFF 0%, #FFF3F8 60%, #FFE9F1 100%) padding-box,
    linear-gradient(135deg, #FF7DB4 0%, #FF5C9F 50%, #E75480 100%) border-box;
  border-radius: 26px;
  padding: 34px 38px;
  box-shadow: 0 18px 44px rgba(231, 84, 128, .20);
}
.workwithus-card-glow {
  position: absolute;
  top: -70px; right: -50px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255, 92, 159, .20), transparent 70%);
  pointer-events: none;
}
.workwithus-content { position: relative; z-index: 1; min-width: 0; }
.workwithus-badge {
  display: inline-block;
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 700; font-size: 12.5px;
  padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 13px;
}
.workwithus-card h2 {
  font-size: clamp(21px, 2.6vw, 29px);
  letter-spacing: -.5px;
  line-height: 1.18;
  margin-bottom: 9px;
}
.workwithus-card p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 580px;
  margin-bottom: 16px;
}
.workwithus-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.workwithus-tags span {
  background: var(--surface-alt);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px; font-weight: 600;
}
.workwithus-cta {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.workwithus-cta .btn { white-space: nowrap; }
.workwithus-note { font-size: 12.5px; color: var(--text-muted); }

/* ---------- HERO highlighted "we build apps" banner ---------- */
.hero-build-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  max-width: 560px;
  background: var(--primary-grad);
  color: #fff;
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(255, 92, 159, .34);
  font-size: 14.5px;
  line-height: 1.35;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-build-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 92, 159, .46);
}
.hero-build-banner .hbb-icon { font-size: 22px; flex-shrink: 0; }
.hero-build-banner .hbb-text { flex: 1; }
.hero-build-banner .hbb-text strong { font-weight: 800; }
.hero-build-banner .hbb-arrow { font-weight: 800; font-size: 20px; flex-shrink: 0; }
@media (max-width: 560px) {
  .hero-build-banner { font-size: 13.5px; padding: 13px 15px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .bya-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .bya-hero-visual { order: -1; }
  .bya-models { grid-template-columns: 1fr; max-width: 520px; }
  .bya-steps { grid-template-columns: 1fr 1fr; }
  .bya-start-grid { grid-template-columns: 1fr; gap: 32px; }
  .workwithus-card { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; }
  .workwithus-cta { align-items: stretch; }
  .workwithus-cta .btn { justify-content: center; }
}
@media (max-width: 560px) {
  .bya-hero { padding: 120px 0 60px; }
  .bya-steps { grid-template-columns: 1fr; }
  .bya-field-row { grid-template-columns: 1fr; }
  .bya-model-choice { grid-template-columns: 1fr; }
  .bya-card { padding: 24px 20px; }
  .bya-portfolio-stack { width: 280px; transform: scale(.92); }
  .bya-progress-step { font-size: 0; gap: 0; }
  .bya-progress-step span { font-size: 13px; }
}


/* ===========================================================
   BUILD STUDIO THEME  (build-your-app.html only — .build-theme)
   Warm editorial "artisan studio" look — the 2025 warm-minimalism
   direction: cream & sand base, espresso ink, a terracotta focus
   accent, serif (Fraunces) display headings, tactile 1px borders,
   and a soft paper grain. Sakura pink stays a small secondary
   accent; the falling petals are intentionally left unchanged.
   =========================================================== */
.build-theme {
  --clay:      #C06A43;   /* terracotta focus accent */
  --clay-2:    #D98A5E;
  --clay-soft: #F3E2D4;
  --wood:      #8D6959;   /* acorn brown */
  --cream:     #FAF6EF;
  --sand:      #F1E7D7;
  --paper:     #FFFDF9;
  --ink:       #2B2620;
  --ink-dim:   #6F6357;
  --line-w:    rgba(120, 92, 60, .18);
  --grad-clay: linear-gradient(135deg, #E29A6B 0%, #C06A43 55%, #A8542F 100%);
  background: var(--cream);
}

/* Editorial serif display headings */
.build-theme .bya-title,
.build-theme .section-head h2,
.build-theme .bya-model h3,
.build-theme .bya-start-copy h2,
.build-theme .bya-step-panel h3,
.build-theme .bya-success h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  letter-spacing: -.3px;
}

/* Nav */
.build-theme .nav.scrolled {
  background: rgba(250, 246, 239, .82);
  box-shadow: 0 1px 0 var(--line-w), 0 8px 28px rgba(90, 70, 50, .12);
}
.build-theme .nav-cta { background: var(--grad-clay); box-shadow: 0 8px 20px rgba(168, 84, 47, .3); }

/* Eyebrows / pills */
.build-theme .eyebrow { color: var(--clay); letter-spacing: 2px; }
.build-theme .pill {
  background: var(--paper);
  color: var(--wood);
  border: 1px solid var(--line-w);
  box-shadow: var(--shadow-sm);
}

/* Buttons — warm clay primary (distinct from the pink site) */
.build-theme .btn-primary { background: var(--grad-clay); box-shadow: 0 10px 24px rgba(168, 84, 47, .30); }
.build-theme .btn-primary:hover { box-shadow: 0 14px 30px rgba(168, 84, 47, .42); }
.build-theme .btn-ghost { background: var(--paper); color: var(--wood); border: 1.5px solid var(--line-w); box-shadow: none; }
.build-theme .btn-ghost:hover { border-color: var(--clay); background: #fff; }

/* Warm gradient text */
.build-theme .gradient-text { background-image: linear-gradient(115deg, #E29A6B 0%, #C06A43 45%, #B5486E 105%); }

/* Hero — warm sand with soft clay + blush glow and a paper grain */
.build-theme .bya-hero {
  background:
    radial-gradient(1000px 440px at 82% -10%, rgba(192, 106, 67, .16), transparent 60%),
    radial-gradient(760px 420px at -5% 12%, rgba(255, 183, 213, .16), transparent 58%),
    linear-gradient(180deg, #F2E7D6 0%, #F7F0E4 55%, var(--cream) 100%);
}
.build-theme .bya-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.build-theme .bya-hero-grid { position: relative; z-index: 1; }
.build-theme .bya-sub { color: #5C5347; }
.build-theme .bya-sub strong, .build-theme .bya-sub em { color: var(--ink); }
.build-theme .bya-hero-points li { color: var(--ink-dim); }

/* Portfolio stack */
.build-theme .bya-pf-card { background: var(--paper); border: 1px solid var(--line-w); box-shadow: 0 22px 50px rgba(90, 70, 50, .18); }
.build-theme .bya-pf-badge { background: var(--grad-clay); color: #fff; box-shadow: 0 10px 24px rgba(168, 84, 47, .34); }

/* Engagement models — tactile bordered "spec" cards */
.build-theme .bya-model { background: var(--paper); border: 1px solid var(--line-w); box-shadow: 0 14px 40px rgba(90, 70, 50, .10); }
.build-theme .bya-model:hover { border-color: var(--clay); box-shadow: 0 22px 54px rgba(168, 84, 47, .16); }
.build-theme .bya-model-featured { border-color: var(--clay); background: linear-gradient(180deg, var(--clay-soft) 0%, var(--paper) 60%); }
.build-theme .bya-model-tag { color: var(--clay); }
.build-theme .bya-model-feats li::before { content: "✓"; background: var(--clay-soft); color: var(--clay); }
.build-theme .bya-model-best { background: var(--sand); border: 1px solid var(--line-w); color: var(--ink-dim); }
.build-theme .bya-model-badge { background: var(--grad-clay); color: #fff; }

/* Process steps */
.build-theme .bya-step { background: var(--paper); border: 1px solid var(--line-w); box-shadow: 0 12px 34px rgba(90, 70, 50, .10); }
.build-theme .bya-step-num { background: var(--grad-clay); color: #fff; box-shadow: 0 8px 20px rgba(168, 84, 47, .28); }

/* Start / form card */
.build-theme .bya-card { background: var(--paper); border: 1px solid var(--line-w); box-shadow: 0 26px 66px rgba(90, 70, 50, .16); }
.build-theme .bya-verified-note { color: #2F9E5B; }
.build-theme .bya-progress-step.is-active { color: var(--clay); }
.build-theme .bya-progress-step.is-active span { background: var(--grad-clay); color: #fff; }
.build-theme .bya-progress-step.is-done span { background: var(--wood); color: #fff; }
.build-theme .bya-input { background: var(--cream); border: 1.5px solid var(--line-w); color: var(--ink); }
.build-theme .bya-input:focus { border-color: var(--clay); background: #fff; box-shadow: 0 0 0 4px rgba(192, 106, 67, .14); }
.build-theme .bya-choice-box { background: var(--cream); border: 1.5px solid var(--line-w); }
.build-theme .bya-choice input:checked + .bya-choice-box { border-color: var(--clay); background: var(--clay-soft); box-shadow: 0 0 0 4px rgba(192, 106, 67, .14); }
.build-theme .bya-link-btn { color: var(--clay); }

/* FAQ */
.build-theme .faq-item { background: var(--paper); border: 1px solid var(--line-w); }
.build-theme .faq-item:hover, .build-theme .faq-item[open] { border-color: var(--clay); }
.build-theme .faq-item summary::after { color: var(--clay); }

/* Footer — warm espresso */
.build-theme .footer { background: #241C15; }
