/*
 * What the design file could not carry across.
 *
 * The page's own look is inline on the elements, exactly as the canvas drew
 * it. This sheet adds the three things that only exist once the page is real:
 * the phone screens, the states a mouse and a keyboard can reach, and the
 * places a small screen needs to be told what to do.
 */

/* ── The app screens ──────────────────────────────────────────────────────
 * Each one is the app's own markup in an iframe, scaled to the width of its
 * column and cropped at the bottom, so it reads as a photograph of a phone
 * while staying sharp at any size and in any language.
 */
.sc-phone {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(20, 69, 58, 0.12);
  background: #14453a;
  box-shadow: 0 12px 32px -18px rgba(18, 33, 28, 0.55);
}
.sc-phone iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 412px;
  height: 892px;
  border: 0;
  transform-origin: top left;
  transform: scale(var(--sc-phone-scale, 0.7));
  pointer-events: none;
}
/* A hint that the crop is a crop, not the end of the screen. */
.sc-phone::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: linear-gradient(rgba(252, 250, 245, 0), rgba(252, 250, 245, 0.9));
  pointer-events: none;
}

/* ── The founder's photograph, until there is one ─────────────────────── */
.sc-monogram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 340px;
  border-radius: 14px;
  background: linear-gradient(160deg, #14453a, #0e332b);
  color: #fff;
  text-align: center;
  padding: 24px;
}
.sc-monogram-mark {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  background: #f3c14b;
  color: #12211c;
  display: grid;
  place-items: center;
  font-family: 'Bricolage Grotesque', Manrope, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sc-monogram-name {
  font-family: 'Noto Sans Tamil', Manrope, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
}
.sc-monogram-place {
  font-family: 'Noto Sans Tamil', Manrope, sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

/* ── The voice demo's rows ────────────────────────────────────────────── */
.sc-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: sc-row-in 0.32s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.sc-row-who { font-family: 'Noto Sans Tamil', Manrope, sans-serif; font-size: 15px; font-weight: 700; }
.sc-row-kind { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin-top: 2px; }
.sc-row-amt { font-family: 'IBM Plex Mono', monospace; font-size: 18px; font-weight: 600; white-space: nowrap; }
.sc-row-said {
  font-family: 'Noto Sans Tamil', Manrope, sans-serif;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}
@keyframes sc-row-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.sc-listening { opacity: 0.55; }

/* ── States the canvas compiled away ──────────────────────────────────── */
[data-say] { transition: background 0.18s, border-color 0.18s; }
[data-say]:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(243, 193, 75, 0.5); }
[data-submit] { transition: filter 0.18s; cursor: pointer; }
[data-submit]:hover { filter: brightness(1.08); }
a { transition: opacity 0.18s; }
a:hover { opacity: 0.86; }
input:focus { border-color: #14453a !important; }
:focus-visible { outline: 2px solid #f3c14b; outline-offset: 3px; border-radius: 6px; }

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sc-phone { height: 340px; }
  .sc-monogram { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-row { animation: none; }
  * { transition: none !important; }
}

/*
 * The founder's photograph.
 *
 * The design drew a wide box for it and the photograph is a tall portrait.
 * Cropping one into the other means picking a window over a face, and the
 * window moves with the column width — at one size it framed him, at the next
 * it cut him off at the nose. So the picture keeps its own shape and is given
 * a width instead: nothing is cropped, and nothing depends on the layout.
 */
.sc-founder {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1020 / 1275;
  object-fit: cover;
  border-radius: 14px;
  background: #14453a;
}
@media (max-width: 900px) {
  .sc-founder { max-width: 240px; }
}

/* ── The walk-through ─────────────────────────────────────────────────────
 * The block the design drew for a demo video. It plays three of the app's
 * real screens instead, which is the same thirty seconds without the file.
 */
.sc-demo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.sc-demo-phone {
  width: 190px;
  height: 400px;
  flex: none;
}
/* The crop fade belongs to the still screens, not to this one. */
.sc-demo-phone::after { display: none; }
.sc-demo-phone iframe {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.sc-demo-phone iframe[data-showing] { opacity: 1; }

/* The microphone, while it is listening.
 *
 * The app draws its own microphone button; this only rings it. The position
 * is where that button actually sits in the 412x892 screen — 359,460 — as a
 * percentage, so it stays on the button at any size the frame is scaled to.
 */
.sc-demo-mic {
  position: absolute;
  left: 87.1%;
  top: 51.6%;
  width: 8.7%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.sc-demo-mic[data-listening] { opacity: 1; }
.sc-demo-mic span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(243, 193, 75, 0.85);
}
.sc-demo-mic[data-listening]::before,
.sc-demo-mic[data-listening]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(243, 193, 75, 0.75);
  animation: sc-pulse 1.6s ease-out infinite;
}
.sc-demo-mic[data-listening]::after { animation-delay: 0.8s; }
@keyframes sc-pulse {
  from { transform: scale(1); opacity: 0.85; }
  to { transform: scale(2.4); opacity: 0; }
}

/* What it heard. */
.sc-demo-said {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(18, 33, 28, 0.92);
  color: #fff;
  font-family: 'Noto Sans Tamil', Manrope, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 20px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.sc-demo-said[data-showing] { opacity: 1; transform: none; }

/* The three steps, beside the phone. */
.sc-demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-demo-steps li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  opacity: 0.45;
  transition: opacity 0.35s, background 0.35s, border-color 0.35s;
}
.sc-demo-steps li[data-current] {
  opacity: 1;
  background: #F3EFE5;
  border-color: #DDD5C4;
}
.sc-demo-steps b {
  font-family: 'Noto Sans Tamil', Manrope, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #12211c;
}
.sc-demo-steps span {
  font-family: 'Noto Sans Tamil', Manrope, sans-serif;
  font-size: 13.5px;
  color: #4A5560;
}

[data-demo-toggle] { cursor: pointer; user-select: none; }

@media (max-width: 640px) {
  .sc-demo { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .sc-demo-steps { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-demo-phone iframe { transition: none; }
  .sc-demo-mic[data-listening]::before,
  .sc-demo-mic[data-listening]::after { animation: none; }
}
