* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fffaf4;
  color: #222;
  line-height: 1.6;
}

header {
  padding: 24px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 250, 244, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  color: #ff7a3d;
  text-decoration: none;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #444;
  font-size: 15px;
  font-weight: 600;
}

.hero {
  padding: 80px 8% 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffe5d2;
  color: #e85f22;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}

h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 19px;
  color: #555;
  margin-bottom: 32px;
  max-width: 560px;
}

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.btn-primary {
  background: #ff7a3d;
  color: white;
  box-shadow: 0 10px 25px rgba(255, 122, 61, 0.25);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-secondary {
  background: white;
  color: #ff7a3d;
  border: 1px solid #ffd2b8;
}

.mockup {
  background: white;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid #ffe2cf;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.class-name {
  font-weight: 800;
  font-size: 20px;
}

.child-card {
  background: #fff5ed;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
}

.child-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.memo-box {
  background: #222;
  color: white;
  border-radius: 18px;
  padding: 18px;
  margin: 18px 0;
  font-size: 15px;
}

.ai-result {
  background: #f0fff4;
  border: 1px solid #b7efc5;
  border-radius: 18px;
  padding: 18px;
  font-size: 15px;
}

section {
  padding: 70px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.section-title p {
  color: #666;
  font-size: 17px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: white;
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid #ffe2cf;
}

.feature .icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature p {
  color: #666;
  font-size: 15px;
}

.cta {
  text-align: center;
  background: #ff7a3d;
  color: white;
  border-radius: 36px;
  margin: 70px 8%;
  padding: 56px 24px;
}

.cta h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.cta p {
  margin-bottom: 26px;
  opacity: 0.92;
}

.cta a {
  background: white;
  color: #ff7a3d;
  padding: 15px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
}

footer {
  padding: 30px 8%;
  text-align: center;
  color: #888;
  font-size: 14px;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 28px;
  padding: 36px;
  border: 1px solid #ffe2cf;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-card p {
  color: #666;
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 16px;
}

label {
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.field-hint-ok {
  color: #059669;
  font-weight: 600;
}

.field-hint-error {
  color: #dc2626;
  font-weight: 600;
}

.error-msg {
  color: #d93025;
  font-size: 14px;
  margin-top: 12px;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.auth-footer a {
  color: #ff7a3d;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  h1 {
    font-size: 38px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}
