/* =========================================================
   Petchive — marketing site
   Palette mirrors the iOS app DesignSystem.swift:
   warm orange primary on cream, soft pink / sage / sky accents.
   ========================================================= */

:root {
  --bg:           #FFFAF5;   /* cream white  */
  --card:         #FFFFFF;
  --primary:      #F28C28;   /* 暖阳橙 */
  --primary-soft: #FFE3C7;
  --pink:         #F4A6A0;
  --green:        #7FB069;
  --blue:         #6BA8E5;
  --text:         #2E2A27;
  --text-2:       #8A817C;
  --sep:          #EDE5DC;
  --radius-lg:    18px;
  --radius-md:    14px;
  --radius-sm:    10px;
  --maxw:         1080px;
  --shadow:       0 10px 30px rgba(46,42,39,.08);
  --shadow-sm:    0 4px 14px rgba(46,42,39,.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
          "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ----------------------------- nav ----------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,250,245,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--sep);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .2px;
}
.brand img { height: 30px; width: 30px; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: var(--text-2);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: #e07e1d; transform: translateY(-1px); }

/* language switcher（纯 HTML/CSS，无 JS） */
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--sep);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .15s ease, border-color .15s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::marker { content: ""; }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: #DFD2C3; }
.lang .globe { width: 16px; height: 16px; flex: none; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  margin: 0;
  padding: 8px;
  list-style: none;
  min-width: 186px;
  background: var(--card);
  border: 1px solid var(--sep);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.lang-menu li a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.lang-menu li a:hover { background: var(--primary-soft); }
.lang-menu li a.current { color: var(--primary); font-weight: 700; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .lang summary span { display: none; }
  .lang summary { padding: 8px 10px; }
}

/* ----------------------------- hero ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at center, var(--primary-soft), transparent 70%);
  opacity: .7;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -.5px;
  font-weight: 800;
}
.hero p.lede {
  font-size: 18px;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 30em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #e07e1d; transform: translateY(-1px); }
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--sep);
}
.btn-ghost:hover { transform: translateY(-1px); }

/* app-store badge styling */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1c1a18;
  color: #fff;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform .15s ease;
}
.badge:hover { transform: translateY(-1px); }
.badge svg { width: 22px; height: 22px; }
.badge small { display: block; font-size: 10px; font-weight: 500; opacity: .8; letter-spacing: .4px; }
.badge strong { font-size: 16px; font-weight: 700; }

/* log chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--sep);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* phone mockup */
.phone {
  justify-self: center;
  width: 280px;
  background: #1c1a18;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(46,42,39,.22);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #1c1a18;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone img {
  width: 100%;
  border-radius: 30px;
  display: block;
  background: var(--bg);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .chips { justify-content: center; }
  .phone { width: 250px; }
}

/* ----------------------------- sections ----------------------------- */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 38em; margin: 0 auto 46px; }
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -.4px;
  font-weight: 800;
}
.section-head p { color: var(--text-2); font-size: 17px; margin: 0; }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--sep);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature .ico svg { width: 24px; height: 24px; color: #fff; }
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* screens */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shot {
  background: var(--card);
  border: 1px solid var(--sep);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot img {
  border-radius: var(--radius-md);
  border: 1px solid var(--sep);
}
.shot figcaption {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 12px 4px 4px;
}
@media (max-width: 760px) { .screens-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .screens-grid { grid-template-columns: 1fr; } }

/* split (sharing) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .phone { width: 260px; }
.split ul { list-style: none; padding: 0; margin: 18px 0 0; }
.split li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px; font-size: 16px; color: var(--text);
}
.split li .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; margin-top: 2px;
}
.split h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; letter-spacing: -.4px; font-weight: 800; }
.split p { color: var(--text-2); font-size: 17px; margin: 0; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .split ul { text-align: left; max-width: 22em; margin-inline: auto; }
  .split .phone { margin-inline: auto; }
}

/* pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}
.plan {
  background: var(--card);
  border: 1px solid var(--sep);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.plan.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 14px 40px rgba(242,140,40,.18);
}
.plan .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 8px;
}
.plan h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.plan .price { font-size: 34px; font-weight: 800; margin: 6px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--text-2); }
.plan .price-note { color: var(--text-2); font-size: 14px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; font-size: 15px; }
.plan li .tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green);
  color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px;
}
.plan li.off { color: var(--text-2); }
.plan li.off .tick { background: var(--sep); color: var(--text-2); }
.plan .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--sep);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--text-2); font-size: 15px; }

/* cta band */
.cta-band {
  background: linear-gradient(120deg, #FFB25C, var(--primary));
  border-radius: 24px;
  padding: 48px 30px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(24px,3vw,32px); font-weight: 800; }
.cta-band p { margin: 0 0 24px; font-size: 17px; opacity: .95; }
.cta-band .badge { background: #1c1a18; }

/* footer */
footer {
  border-top: 1px solid var(--sep);
  padding: 40px 0 56px;
  color: var(--text-2);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .f-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }
