/* Petela Solutions. Colours come from the logo: deep teal, bright teal, orange. */
:root {
  --teal-ink: #073B48;
  --teal-deep: #0B5C70;
  --teal: #0FA3B8;
  --teal-bright: #34D3E4;
  --orange: #F2762E;
  --amber: #FFB23F;
  --text: #17323D;
  --soft: #557079;
  --bg: #FFFFFF;
  --tint: #F2FAFB;
  --line: #DCEBEE;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(7, 59, 72, 0.10);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--teal-deep); }
a:hover { color: var(--orange); }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(220, 235, 238, 0.8);
}
.bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { height: 40px; width: auto; }
.brand .word { height: 22px; width: auto; }
.nav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--teal-deep); }
.nav a:hover { color: var(--orange); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(52, 211, 228, 0.28), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(242, 118, 46, 0.16), transparent 60%),
    linear-gradient(180deg, #F6FCFD 0%, #E6F6F9 100%);
  padding: 72px 0 130px;
  text-align: center;
}
.hero .swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.hero .mark {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(11, 92, 112, 0.25));
  animation: float 6s ease-in-out infinite;
}
.hero .word { display: block; width: min(380px, 80vw); height: auto; margin: 18px auto 0; }
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 26px 0 12px;
  color: var(--teal-ink);
  letter-spacing: -0.01em;
}
.hero p { font-size: 19px; color: var(--soft); margin: 0 auto 28px; max-width: 560px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 24px rgba(242, 118, 46, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(242, 118, 46, 0.42); }
.button.ghost {
  color: var(--teal-deep);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
}
.button.ghost:hover { color: var(--orange); }

/* The glowing line that draws itself across the hero */
.glow-line {
  fill: none;
  stroke: var(--teal-bright);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(52, 211, 228, 0.9));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 4.5s 0.4s ease-in-out forwards;
}

/* ---- Sections -------------------------------------------------------- */
section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--teal-ink);
  margin: 0 0 8px;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  border-radius: 5px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}
.section-title p { color: var(--soft); margin: 0; }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.value .icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
}
.value h3 { margin: 0 0 6px; color: var(--teal-ink); font-size: 20px; }
.value p { margin: 0; color: var(--soft); font-size: 15px; }

/* App showcase */
.apps-bg { background: var(--tint); }
.showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(7, 59, 72, 0.12);
}
.showcase .info { padding: 36px 34px; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.app-head img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 8px 18px rgba(11, 92, 112, 0.22); }
.app-head h3 { margin: 0; font-size: 28px; color: var(--teal-ink); }
.app-head .tag { font-size: 14px; color: var(--soft); }
.ticks { list-style: none; padding: 0; margin: 16px 0 22px; }
.ticks li { position: relative; padding-left: 30px; margin: 8px 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  box-shadow: 0 0 10px rgba(52, 211, 228, 0.6);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(242, 118, 46, 0.1);
  margin-bottom: 14px;
}

.showcase .visual {
  position: relative;
  min-height: 360px;
  background:
    radial-gradient(420px 300px at 70% 20%, rgba(52, 211, 228, 0.35), transparent 70%),
    linear-gradient(160deg, #0B5C70 0%, #073B48 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual svg.maze { position: absolute; inset: 0; width: 100%; height: 100%; }
.creatures { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.creatures img {
  width: 108px;
  height: 108px;
  filter: drop-shadow(0 0 14px rgba(52, 211, 228, 0.55));
  animation: float 5s ease-in-out infinite;
}
.creatures img:nth-child(2) { animation-delay: -1.2s; }
.creatures img:nth-child(3) { animation-delay: -2.4s; }
.creatures img:nth-child(4) { animation-delay: -3.6s; }

/* Contact */
.contact {
  text-align: center;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-ink));
  color: #fff;
  border-radius: 28px;
  padding: 44px 24px;
  position: relative;
  overflow: hidden;
}
.contact h2 { margin: 0 0 8px; font-size: 30px; }
.contact p { margin: 0 0 22px; color: rgba(255, 255, 255, 0.8); }

/* ---- App pages ------------------------------------------------------- */
.banner {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(52, 211, 228, 0.35), transparent 70%),
    linear-gradient(160deg, #0B5C70 0%, #073B48 100%);
  color: #fff;
}
.banner .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.banner img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3); }
.banner h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); }
.banner p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.82); }
.banner .mini { margin-left: auto; display: flex; gap: 6px; }
.banner .mini img { width: 64px; height: 64px; filter: drop-shadow(0 0 10px rgba(52, 211, 228, 0.6)); }

.page { max-width: 820px; margin: 0 auto; padding: 44px 16px 64px; }
.faq { display: grid; gap: 14px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 6px 18px rgba(7, 59, 72, 0.06);
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--teal-ink); font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--orange); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 2px; color: var(--soft); }
.mail-card {
  margin-top: 26px;
  text-align: center;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 20px;
}
.mail-card h2 { margin: 0 0 6px; color: var(--teal-ink); }

.legal { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 8px 26px 18px; box-shadow: var(--shadow); }
.legal h2 { color: var(--teal-ink); font-size: 20px; margin-top: 22px; }
.legal li { margin: 6px 0; }
.updated { color: var(--soft); font-size: 14px; margin: 0 0 14px; }
.back { display: inline-block; margin-top: 18px; font-weight: 600; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--teal-ink); color: rgba(255, 255, 255, 0.75); padding: 34px 16px 40px; text-align: center; font-size: 14px; }
.site-footer img { height: 34px; width: auto; margin-bottom: 10px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)); }
.site-footer a { color: #fff; }
.site-footer .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }

/* ---- Motion ---------------------------------------------------------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .glow-line { stroke-dashoffset: 0; }
}

/* ---- Phones ---------------------------------------------------------- */
@media (max-width: 760px) {
  .nav { display: none; }
  .hero { padding: 48px 0 64px; }
  .hero .mark { width: 116px; }
  section { padding: 52px 0; }
  .showcase { grid-template-columns: 1fr; }
  .showcase .info { padding: 26px 22px; }
  .showcase .visual { min-height: 260px; order: -1; }
  .creatures { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .creatures img { width: 72px; height: 72px; }
  .banner .mini { margin-left: 0; }
}
