/* styles.css — cleaned & deduplicated
   Source files inspected: index.html, script.js, original styles.css.
   Kept all class names exactly as-is. Removed duplicate blocks. */

/* ===== Variables & base ===== */
:root {
  --bg: #fffefc;
  --card: #fff;
  --accent: #00a08a; /* Trimzy teal */
  --accent-2: #ffc857; /* saffron-ish */
  --leaf: #e6fbf6;
  --muted: #4b5a57;
  --glass: rgba(2, 8, 6, 0.04);
  --radius: 18px;
  --maxw: 980px;
  --shadow: 0 18px 40px rgba(6, 18, 14, 0.06);
  --ease: cubic-bezier(0.15, 0.9, 0.35, 1);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #fffefc, #f3fff9);
  color: #072423;
  -webkit-font-smoothing: antialiased;
  padding: 10px;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 6px;
}

/* ===== Header / brand ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.logo-bubble {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #00d6b1);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: "Baloo 2", sans-serif;
  box-shadow: var(--shadow);
}
.brand-name {
  font-family: "Baloo 2", sans-serif;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: var(--accent);
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: -4px;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 6px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fffb);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass);
}
.hero-left {
  flex: 1;
  min-width: 200px;
}
h1 {
  font-family: "Baloo 2", sans-serif;
  font-size: 34px;
  margin: 4px 0 8px 0;
  color: #063231;
  line-height: 1.02;
}
p.lead {
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 15px;
}
.sticker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(0, 160, 138, 0.08),
    rgba(255, 200, 87, 0.04)
  );
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 13px;
}

/* ===== Hero right mascot container ===== */
.hero-right {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mascot {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #eafff5);
  border: 2px solid #e0f7f1;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 18px 36px rgba(0, 120, 100, 0.06);
  transform-origin: center;
  transition: transform 0.9s var(--ease);
  animation: floaty 6s ease-in-out infinite;
}
.mascot:hover {
  transform: translateY(-6px) rotate(-2deg) scale(1.02);
}

/* ===== Bullets / chips ===== */
.bullets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chip {
  background: var(--leaf);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(0, 160, 138, 0.07);
  box-shadow: 0 6px 16px rgba(0, 160, 138, 0.04);
  font-size: 13px;
}

/* Yellow chip for "Book in seconds" */
.chip.yellow {
  background: #fff9e6;
  color: #b8860b;
  border: 1px solid rgba(255, 193, 7, 0.2);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.1);
}

/* Blue chip for "Live Availability" */
.chip.blue {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid rgba(33, 150, 243, 0.2);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.1);
}

/* ===== Buttons ===== */
.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-family: "Baloo 2", sans-serif;
  cursor: pointer;
  border: 0;
  font-size: 15px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), #00d6b1);
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 160, 138, 0.12);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px dashed rgba(0, 160, 138, 0.12);
  padding: 10px 14px;
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 160, 138, 0.16);
}

/* ===== Conversion strip & signup card ===== */
.convert-strip {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start; /* Changed from center */
  background: linear-gradient(90deg, #fffefc, #f3fff9);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  flex-wrap: wrap; /* Added */
}
.convert-left {
  flex: 1;
  min-width: 250px; /* Added */
}
.convert-right {
  flex: 1;
  min-width: 280px; /* Added */
  max-width: 400px; /* Added */
}

.signup {
  background: linear-gradient(180deg, #ffffff, #fbfff9);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(2, 8, 6, 0.04);
  box-shadow: 0 12px 28px rgba(4, 12, 10, 0.05);
  width: 100%; /* Added */
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

/* Prevent any text from overflowing boxes */
.field input,
.field label,
p,
a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

label {
  font-weight: 700;
  font-size: 13px;
  color: #0b3b35;
}
/* Fix email and long text overflow */
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(2, 8, 6, 0.06);
  font-size: 14px;
  background: #fff;
  color: #072423;
  word-break: break-all; /* Added */
  overflow-wrap: break-word; /* Added */
}
/* Specifically for email links that might overflow */
a[href^="mailto:"] {
  word-break: break-all;
  display: inline-block;
  max-width: 100%;
}

/* ===== Features grid and cards ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.feature-card {
  background: linear-gradient(180deg, #ffffff, #f8fff7);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eafff0, #dffbf4);
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}
.feature-card h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #063231;
  font-family: "Baloo 2", sans-serif;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Footer ===== */
footer {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Accessibility focus ===== */
:focus {
  outline: 3px solid rgba(0, 160, 138, 0.12);
  outline-offset: 4px;
}

/* ===== Tiny motion ===== */
@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ===== Trimzy mascot SVG / animations ===== */
.trimzy-mascot-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Strand sway */
.trimzy-mascot-svg .strand {
  transform-origin: 0 0;
  animation: strandSway 3200ms ease-in-out infinite;
  stroke-opacity: 0.95;
}
.trimzy-mascot-svg .strand.s1 {
  animation-delay: 0ms;
}
.trimzy-mascot-svg .strand.s2 {
  animation-delay: 200ms;
}
.trimzy-mascot-svg .strand.s3 {
  animation-delay: 420ms;
}

/* Scissors blades */
.trimzy-mascot-svg .scissor-blade.blade-left {
  transform-origin: 24px 12px;
  animation: scissorLeft 1400ms cubic-bezier(0.2, 0.9, 0.3, 0.95) infinite;
}
.trimzy-mascot-svg .scissor-blade.blade-right {
  transform-origin: 24px 12px;
  animation: scissorRight 1400ms cubic-bezier(0.2, 0.9, 0.3, 0.95) infinite;
}

/* Clipper slide */
.trimzy-mascot-svg #clipper {
  animation: clipperSlide 2600ms ease-in-out infinite;
}

/* Sparkle when snip */
.trimzy-mascot-svg #sparkle {
  transition: opacity 160ms ease;
}
.trimzy-mascot-svg.snip #sparkle {
  opacity: 1;
  transition: opacity 120ms ease;
}

/* Keyframes for mascot */
@keyframes strandSway {
  0% {
    transform: translateY(0) rotate(-2deg) scaleY(1);
  }
  40% {
    transform: translateY(3px) rotate(4deg) scaleY(1.02);
  }
  70% {
    transform: translateY(-2px) rotate(-3deg) scaleY(0.99);
  }
  100% {
    transform: translateY(0) rotate(-2deg) scaleY(1);
  }
}
@keyframes scissorLeft {
  0% {
    transform: rotate(-6deg) translate(-1px, 0);
  }
  45% {
    transform: rotate(-32deg) translate(-4px, -2px);
  }
  50% {
    transform: rotate(-30deg) translate(-4px, -2px);
  }
  55% {
    transform: rotate(-32deg) translate(-4px, -2px);
  }
  100% {
    transform: rotate(-6deg) translate(-1px, 0);
  }
}
@keyframes scissorRight {
  0% {
    transform: rotate(6deg) translate(1px, 0);
  }
  45% {
    transform: rotate(28deg) translate(4px, 2px);
  }
  50% {
    transform: rotate(30deg) translate(4px, 2px);
  }
  55% {
    transform: rotate(28deg) translate(4px, 2px);
  }
  100% {
    transform: rotate(6deg) translate(1px, 0);
  }
}
@keyframes clipperSlide {
  0% {
    transform: translate(22px, 170px) rotate(0deg);
    opacity: 0.96;
  }
  30% {
    transform: translate(34px, 154px) rotate(-8deg);
    opacity: 1;
  }
  45% {
    transform: translate(40px, 150px) rotate(-10deg);
    opacity: 1;
  }
  60% {
    transform: translate(32px, 156px) rotate(-6deg);
    opacity: 1;
  }
  100% {
    transform: translate(22px, 170px) rotate(0deg);
    opacity: 0.96;
  }
}

/* ===== Fastest Cut card: timer race animation block ===== */
.fastest-cut-card {
  position: relative;
  overflow: hidden;
}
.timer-race-animation {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 120px;
  opacity: 0.22;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.feature-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}
.speed-gauge {
  position: relative;
  width: 70px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gauge-arc-bg {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 5px solid #e0e0e0;
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
  top: 5px;
}
.gauge-arc-bg::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 60px;
  height: 60px;
  border: 5px solid transparent;
  border-radius: 50%;
  border-top-color: #4caf50;
  border-right-color: #4caf50;
  border-bottom-color: transparent;
  border-left-color: transparent;
}
.speed-needle {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 2.5px;
  height: 28px;
  background: linear-gradient(to top, #00a08a, #ff4444);
  border-radius: 2px;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-90deg);
  animation: needleSwing 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 6px rgba(0, 160, 138, 0.5);
  top: 20px;
}
.speed-needle::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #00a08a;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.gauge-labels {
  position: absolute;
  width: 100%;
  height: 100%;
}
.slow-label {
  position: absolute;
  bottom: 8px;
  left: 5px;
  font-size: 7px;
  font-weight: 800;
  color: #999;
  font-family: "Baloo 2", sans-serif;
}
.fast-label {
  position: absolute;
  bottom: 8px;
  right: 5px;
  font-size: 7px;
  font-weight: 800;
  color: #4caf50;
  font-family: "Baloo 2", sans-serif;
}
@keyframes needleSwing {
  0% {
    transform: translateX(-50%) rotate(-90deg);
  }
  25% {
    transform: translateX(-50%) rotate(-90deg);
  }
  50% {
    transform: translateX(-50%) rotate(90deg);
  }
  75%,
  100% {
    transform: translateX(-50%) rotate(90deg);
  }
}

/* ===== Head transform elements inside the card ===== */
.transform-head {
  position: relative;
  width: 55px;
  height: 58px;
  flex-shrink: 0;
}
.head-face {
  position: absolute;
  width: 45px;
  height: 50px;
  background: #ffeaa7;
  border-radius: 50% 50% 45% 45%;
  border: 2.5px solid #00a08a;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.head-face::before,
.head-face::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #333;
  border-radius: 50%;
  top: 20px;
}
.head-face::before {
  left: 12px;
}
.head-face::after {
  right: 12px;
}

.messy-strands {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 28px;
  animation: messyFadeOut 3s ease-in infinite;
}
.strand-t {
  position: absolute;
  background: #2d3436;
  border-radius: 3px;
}
.strand-t.st1 {
  width: 6px;
  height: 20px;
  top: 0;
  left: 7px;
  transform: rotate(-25deg);
}
.strand-t.st2 {
  width: 6px;
  height: 22px;
  top: -2px;
  left: 20px;
  transform: rotate(5deg);
}
.strand-t.st3 {
  width: 6px;
  height: 18px;
  top: 1px;
  right: 9px;
  transform: rotate(25deg);
}
.strand-t.st4 {
  width: 6px;
  height: 16px;
  top: 4px;
  left: 3px;
  transform: rotate(-40deg);
}
.neat-style {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 23px;
  background: #2d3436;
  border-radius: 50% 50% 0 0;
  opacity: 0;
  animation: neatAppear 3s ease-in infinite;
}
.flash-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35px;
  opacity: 0;
  animation: flashBurst 3s ease-in infinite;
}
.scissors-flash {
  position: absolute;
  top: 28px;
  right: 8px;
  font-size: 24px;
  opacity: 0;
  transform: rotate(-45deg);
  animation: scissorsQuickFlash 3s ease-in infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.done-badge {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: #00a08a;
  color: #fff;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  font-family: "Baloo 2", sans-serif;
  opacity: 0;
  animation: doneBadgeAppear 3s ease-in infinite;
}

/* Animations for head transform */
@keyframes messyFadeOut {
  0%,
  35% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  40%,
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
}
@keyframes neatAppear {
  0%,
  38% {
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
  40% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
  45%,
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
@keyframes flashBurst {
  0%,
  38% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2);
  }
  45%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
}
@keyframes scissorsQuickFlash {
  0%,
  20% {
    opacity: 0;
    transform: rotate(-45deg) translateX(30px) translateY(-10px);
  }
  25% {
    opacity: 1;
    transform: rotate(-45deg) translateX(5px) translateY(0px);
  }
  30% {
    opacity: 1;
    transform: rotate(-35deg) translateX(0px) translateY(2px);
  }
  34% {
    opacity: 1;
    transform: rotate(-45deg) translateX(5px) translateY(0px);
  }
  38% {
    opacity: 1;
    transform: rotate(-35deg) translateX(-5px) translateY(3px);
  }
  42% {
    opacity: 1;
    transform: rotate(-45deg) translateX(-5px) translateY(3px);
  }
  50%,
  100% {
    opacity: 0;
    transform: rotate(-45deg) translateX(-30px) translateY(10px);
  }
}
@keyframes doneBadgeAppear {
  0%,
  42% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1.2);
  }
  55%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ===== Reduced motion fallbacks ===== */
@media (prefers-reduced-motion: reduce) {
  .trimzy-mascot-svg .strand,
  .trimzy-mascot-svg .scissor-blade,
  .trimzy-mascot-svg #clipper,
  .timer-race-animation * {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .neat-style {
    opacity: 1 !important;
  }
  .messy-strands {
    opacity: 0 !important;
  }
  .done-badge {
    opacity: 1 !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .hero {
    flex-direction: column;
  }
  .hero-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .convert-right {
    width: 100%;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 26px;
  }
  .mascot {
    width: 180px;
    height: 180px;
  }
}
@media (max-width: 640px) {
  .convert-strip {
    flex-direction: column;
  }
  .convert-left,
  .convert-right {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

/* ============================================
   Better Form Messages & Button States
   ============================================ */

/* Better error/success messages */
.form-message {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.form-message.success {
  background: #e6fbf6;
  border: 1px solid #00c4a8;
  color: #063231;
}

.form-message.error {
  background: #fff5f5;
  border: 1px solid #ff6b6b;
  color: #c92a2a;
}

.form-message.info {
  background: #fff9db;
  border: 1px solid #ffd43b;
  color: #774400;
}
/* Loading state for buttons - FIXED VERSION */
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
  padding-right: 45px !important; /* Make room for spinner */
}

/* Add a loading spinner effect to disabled submit buttons */
button[type="submit"]:disabled::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  right: 14px;
  margin-top: -7px;
  border: 2.5px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  animation: button-loading-spinner 0.8s linear infinite;
}

/* Keyframe animation for the spinning circle */
@keyframes button-loading-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Improve form field focus states for better UX */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #00c4a8;
  outline-offset: 2px;
}

/* Better disabled input styling */
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Smooth transitions for all form elements */
input,
select,
textarea,
button {
  transition: all 0.2s ease;
}

/* Better button hover states */
button:not(:disabled):hover {
  transform: translateY(-1px);
}

button:not(:disabled):active {
  transform: translateY(0);
}
