/* ===== EggTimer Max — site styles ===== */
:root {
  --ink:        #3D2006;
  --ink-soft:   #6B3D10;
  --ink-faint:  #8A6332;
  --brand:      #F59B23;
  --brand-deep: #C06800;
  --glass:      rgba(255, 255, 255, .65);
  --glass-strong: rgba(255, 255, 255, .88);
  --radius:     22px;
  --shadow:     0 10px 40px rgba(100, 45, 0, .22);
  --shadow-sm:  0 4px 18px rgba(100, 45, 0, .16);
  --maxw:       1040px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #F5A020;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed gradient background — reliable across all browsers incl. iOS Safari */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #FFD060 0%, #F5A020 50%, #E07800 100%);
}

/* ===== floating bubbles ===== */
.bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubbles span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%,
    rgba(255,255,210,.75), rgba(255,230,110,.38) 42%,
    rgba(255,200,50,.10) 73%, rgba(255,200,50,0) 100%);
  animation: bubbleDrift var(--dur, 9s) ease-in-out infinite var(--delay, 0s);
}

@keyframes bubbleDrift {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-22px) scale(1.05); }
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== nav ===== */
nav.bar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(200%) blur(18px);
  -webkit-backdrop-filter: saturate(200%) blur(18px);
  background: rgba(245, 165, 30, .52);
  border-bottom: 1px solid rgba(255, 255, 255, .30);
}
nav.bar .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
nav.bar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
nav.bar .brand img { width: 36px; height: 36px; border-radius: 26%; box-shadow: var(--shadow-sm); flex-shrink: 0; }
nav.bar .brand b { font-size: 1.1rem; font-weight: 800; letter-spacing: -.3px; color: var(--ink); white-space: nowrap; }
nav.bar .brand b span { color: #7A3500; }
nav.bar .links { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; overflow-x: auto; }
nav.bar .links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  padding: 8px 14px; border-radius: 99px; transition: background .15s, color .15s;
}
nav.bar .links a:hover { background: rgba(255,255,255,.40); color: var(--ink); }
nav.bar .links a.cta {
  background: var(--ink); color: #fff;
  box-shadow: 0 2px 10px rgba(61,32,6,.35);
}
nav.bar .links a.cta:hover { background: #5A2800; }

/* Language picker in the nav */
.langpick { margin-left: 4px; }
.langpick select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  background: rgba(255,255,255,.40) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%236B3D10' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 10px center;
  border: 0; border-radius: 99px; padding: 8px 30px 8px 14px; cursor: pointer;
  transition: background .15s, color .15s;
}
.langpick select:hover { background-color: rgba(255,255,255,.65); color: var(--ink); }
@media (max-width: 600px) { .langpick select { padding: 8px 26px 8px 10px; font-size: .85rem; } }

/* ===== scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.rd1 { transition-delay: .08s; }
.rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; }
.rd4 { transition-delay: .32s; }
.rd5 { transition-delay: .40s; }
.rd6 { transition-delay: .48s; }

/* ===== hero ===== */
.hero { text-align: center; padding: 80px 0 40px; }
.hero img.appicon {
  width: 124px; height: 124px; border-radius: 26%;
  box-shadow: 0 20px 52px rgba(80, 30, 0, .40); margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.05;
}
.hero h1 .accent { color: #7A3500; }
.hero p.lead {
  margin: 22px auto 0; max-width: 560px;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--ink); font-weight: 500;
  opacity: .85;
}
.hero .actions {
  margin-top: 34px; display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap; align-items: center;
}

/* App Store badge */
.badge-appstore { display: inline-block; transition: transform .14s, opacity .15s; }
.badge-appstore:hover { transform: translateY(-3px); opacity: .88; }
.badge-appstore img { height: 56px; width: auto; display: block; border-radius: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 700; font-size: 1rem; padding: 14px 28px; border-radius: 99px;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn-ghost {
  background: var(--glass); color: var(--ink); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,.55);
}
.btn-ghost:hover { background: var(--glass-strong); transform: translateY(-2px); }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 22px rgba(61,32,6,.30);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }

/* phone showcase */
.showcase {
  display: flex; justify-content: center; gap: 22px;
  margin-top: 64px; flex-wrap: wrap; align-items: flex-end;
}
.showcase img {
  width: 230px; border-radius: 34px;
  box-shadow: 0 28px 70px rgba(80, 30, 0, .36);
  border: 1px solid rgba(255,255,255,.55);
}

@keyframes floatA { 0%,100%{transform:translateY(0)}     50%{transform:translateY(-13px)} }
@keyframes floatB { 0%,100%{transform:translateY(-22px)} 50%{transform:translateY(-34px)} }
@keyframes floatC { 0%,100%{transform:translateY(0)}     50%{transform:translateY(-9px)}  }

.showcase img:nth-child(1) { animation: floatA 4.2s ease-in-out infinite; }
.showcase img:nth-child(2) { animation: floatB 4.8s ease-in-out infinite 0.4s; }
.showcase img:nth-child(3) { animation: floatC 5.4s ease-in-out infinite 0.9s; }

/* ===== feature grid ===== */
.section { padding: 80px 0 32px; }
.section h2 {
  text-align: center; font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -.8px; margin-bottom: 12px;
}
.section .sub {
  text-align: center; color: var(--ink); opacity: .78;
  max-width: 540px; margin: 0 auto 44px; font-size: 1.05rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.60);
  transition: transform .22s ease, box-shadow .22s ease, background .22s;
}
.card:hover {
  transform: translateY(-7px) scale(1.025);
  background: var(--glass-strong);
  box-shadow: 0 28px 70px rgba(80, 30, 0, .26);
}
.card .ico { width: 72px; height: 72px; margin-bottom: 14px; display: block; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(100,45,0,.18)); }
.card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: .95rem; color: var(--ink-soft); }

/* ===== content pages ===== */
.page { padding: 56px 0 40px; }
.panel {
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius); padding: 44px clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.60);
  max-width: 760px; margin: 0 auto;
}
.panel h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800;
  letter-spacing: -.6px; margin-bottom: 6px;
}
.panel .meta { color: var(--ink-faint); font-size: .9rem; margin-bottom: 28px; }
.panel h2 { font-size: 1.2rem; font-weight: 800; margin: 30px 0 10px; color: var(--ink); }
.panel p, .panel li { color: var(--ink-soft); font-size: 1rem; margin-bottom: 10px; }
.panel ul { padding-left: 22px; }
.panel a { color: var(--brand-deep); font-weight: 600; text-decoration: none; }
.panel a:hover { text-decoration: underline; }

/* ===== how-to guide ===== */
.guide-intro { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 8px; }

/* method intro line under a step heading */
.panel .lead-note {
  display: inline-block; font-size: .9rem; font-weight: 700;
  color: var(--brand-deep); background: rgba(245,155,35,.16);
  padding: 4px 12px; border-radius: 99px; margin: 4px 0 16px;
}

/* numbered steps */
.steps { list-style: none; padding: 0; margin: 0 0 8px; counter-reset: step; }
.steps > li {
  position: relative; padding: 0 0 22px 56px; margin: 0;
  counter-increment: step; color: var(--ink-soft);
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; color: #fff;
  background: linear-gradient(150deg, #F5A020, #E07800);
  box-shadow: 0 4px 12px rgba(180,90,10,.30);
}
/* connecting line between step bullets */
.steps > li::after {
  content: ''; position: absolute; left: 18px; top: 38px; bottom: 4px;
  width: 2px; background: rgba(245,155,35,.35);
}
.steps > li:last-child { padding-bottom: 4px; }
.steps > li:last-child::after { display: none; }
.steps > li b { color: var(--ink); font-weight: 800; }
.steps > li .sub { display: block; font-size: .92rem; color: var(--ink-faint); margin-top: 3px; }

/* tip callout */
.tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px; padding: 14px 18px; margin: 18px 0;
}
.tip .ic { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; }
.tip .ic svg { width: 100%; height: 100%; display: block; }
.tip p { margin: 0; font-size: .95rem; }

/* divider between guide sections */
.panel .divider { height: 1px; background: rgba(180,90,10,.16); margin: 34px 0 6px; border: 0; }

/* ===== contact form ===== */
.form { margin-top: 24px; display: grid; gap: 16px; }
.form label { font-weight: 700; font-size: .9rem; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 13px 16px;
  border: 1.5px solid rgba(192,104,0,.20); border-radius: 14px;
  background: rgba(255,255,255,.80);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(245,155,35,.20);
}
.form textarea { min-height: 130px; resize: vertical; }
.form button {
  justify-self: start; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700;
}
.form button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* success state */
.success-msg { text-align: center; padding: 48px 20px; display: none; }
.success-msg .check {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 10px 28px rgba(200,120,0,.35);
  font-size: 30px; color: #fff;
}
.success-msg h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; }
.success-msg p { color: var(--ink-soft); max-width: 320px; margin: 0 auto 28px; }

/* ===== footer ===== */
footer.site {
  margin-top: 72px; padding: 40px 0 48px; text-align: center;
  border-top: 1px solid rgba(255,255,255,.28);
  color: var(--ink-soft); font-size: .88rem;
}
footer.site .flinks {
  display: flex; gap: 22px; justify-content: center;
  margin-bottom: 14px; flex-wrap: wrap;
}
footer.site .flinks a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
footer.site .flinks a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .showcase img:nth-child(2) { animation: floatA 4.8s ease-in-out infinite; }
  .hero { padding-top: 52px; }
  nav.bar .links a { padding: 8px 10px; font-size: .85rem; }
}
